/*
Theme Name: Empress Consulting Child
Template: kadence
Description: Empress Consulting child theme. Quiet boutique audit-firm register, deep imperial purple + warm gold + ivory paper + ink. EB Garamond display + Inter UI.
Author: Flashcloud
Version: 1.0.0
*/

/* ===== TOKEN SYSTEM ===== */
:root {
  /* Palette */
  --ec-imperial:      #4C1D95;
  --ec-imperial-deep: #360C5E;
  --ec-imperial-soft: #5b2db0;
  --ec-gold:          #B8975A;
  --ec-gold-soft:     #C9A56A;
  --ec-gold-deep:     #8E7038;
  --ec-paper:         #FBF6EE;
  --ec-paper-warm:    #F6EFE0;
  --ec-ink:           #3D2918;
  --ec-ink-muted:     #6B5A48;
  --ec-line:          rgba(184, 151, 90, 0.30);
  --ec-line-strong:   rgba(184, 151, 90, 0.55);

  /* Type */
  --ec-display: "EB Garamond", "Iowan Old Style", "Georgia", serif;
  --ec-body:    "Inter", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;

  /* Spacing */
  --ec-space-1: 0.5rem;
  --ec-space-2: 1rem;
  --ec-space-3: 1.5rem;
  --ec-space-4: 2rem;
  --ec-space-5: 3rem;
  --ec-space-6: 4rem;
  --ec-space-7: 6rem;
  --ec-space-8: 8rem;

  /* Radius */
  --ec-radius: 16px;
  --ec-radius-sm: 8px;

  /* Container */
  --ec-container: 1180px;

  /* Shadow */
  --ec-shadow-card: 0 2px 8px rgba(54, 12, 94, 0.06);
  --ec-shadow-hero: 0 30px 60px -30px rgba(54, 12, 94, 0.35);

  /* Sticky band */
  --ec-band-h: 64px;
}

/* ===== FRAME KILLERS (override Kadence defaults so we get edge-to-edge paper bg) ===== */
html, body {
  background: var(--ec-paper) !important;
}
body, .wp-site-blocks, .entry-content, .content-area, .content-container {
  background: var(--ec-paper) !important;
  color: var(--ec-ink);
  font-family: var(--ec-body);
}
.content-area,
.content-wrap { margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.content-container { margin: 0 auto !important; padding: 0 !important; }
.site-main, .entry-content-wrap, article.entry { padding-left: 0 !important; padding-right: 0 !important; }
.entry-content > * { max-width: none; }
.wp-site-blocks > main { flex: 0 0 auto !important; }
.entry-hero.page-hero-section,
.entry-hero,
.kadence-entry-hero,
body.blog .entry-hero,
body.home.blog .entry-hero { display: none !important; }
.archive-header,
body.blog .page-title { display: none !important; }
.page .entry-title, .single .entry-title { display: none !important; }
.entry-content > * + * { margin-top: 0; }

/* Body baseline */
body {
  font-family: var(--ec-body);
  font-weight: 400;
  color: var(--ec-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings = display serif by default */
h1, h2, h3, h4, h5, h6,
.has-display-font,
.wp-block-heading {
  font-family: var(--ec-display);
  font-weight: 500;
  color: var(--ec-imperial-deep);
  letter-spacing: -0.005em;
  line-height: 1.15;
}
h1, .has-h-1-font-size { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h2, .has-h-2-font-size { font-size: clamp(2rem, 3.6vw, 2.6rem); }
h3, .has-h-3-font-size { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { font-size: 1.05rem; line-height: 1.65; color: var(--ec-ink); margin: 0 0 1rem; }
a { color: var(--ec-imperial); text-decoration-color: var(--ec-line-strong); }
a:hover { color: var(--ec-imperial-deep); }

/* ===== HEADER (sticky — apply to the .site-header wrapper so it sticks past its own height) ===== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
  background: var(--ec-paper) !important;
  border-bottom: 1px solid var(--ec-line);
}
#main-header,
#mobile-header {
  background: var(--ec-paper) !important;
}
/* Ancestor overflow MUST be visible for sticky to work */
html, body,
.site, .site-container, .site-content, .content-wrap,
.wp-site-blocks, body.wp-singular { overflow: visible !important; overflow-x: clip; }

/* Header bar branding */
.site-branding .site-title-wrap,
.site-branding .site-title,
.site-branding .site-description { display: none !important; }
.site-branding img.custom-logo,
.site-branding .custom-logo-link img,
.site-branding .brand img { max-height: 112px !important; width: auto !important; }
#main-header .site-header-row,
#main-header .site-header-main-section { min-height: 128px; }
#main-header .site-header-row-container-inner { padding-top: 10px; padding-bottom: 10px; }

html body .main-navigation .menu > .menu-item > a {
  color: var(--ec-ink) !important;
  font-family: var(--ec-body) !important;
  font-weight: 500 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html body .main-navigation .menu > .menu-item.menu-item-cta > a,
html body .main-navigation .menu > .menu-item.cta > a {
  border: 1px solid var(--ec-imperial) !important;
  border-radius: 999px !important;
  padding: 0.5em 1.1em !important;
  color: var(--ec-imperial) !important;
}
html body .main-navigation .menu > .menu-item > a:hover { color: var(--ec-imperial) !important; }

/* ===== MOBILE DRAWER (Kadence) — cream paper bg, purple letters ===== */
.drawer-content-wrap,
.drawer.popup-drawer.drawer-mobile,
.popup-drawer .drawer-inner,
.drawer-content-wrap .header-mobile-navigation,
.drawer .drawer-content,
.drawer .drawer-inner-wrap { background: var(--ec-paper) !important; }
.drawer-overlay { background: rgba(54, 12, 94, 0.5) !important; }
.drawer-header {
  background: var(--ec-paper) !important;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--ec-line);
}
.drawer-header .menu-toggle-close,
.drawer .menu-toggle-close,
.drawer-header .drawer-toggle,
.drawer-header .drawer-toggle .menu-toggle-icon { color: var(--ec-imperial-deep) !important; }
.drawer-header .menu-toggle-close svg,
.drawer .menu-toggle-close svg,
.drawer-toggle svg { color: var(--ec-imperial-deep) !important; fill: var(--ec-imperial-deep) !important; }

.header-mobile-navigation { padding: 0 1.5rem; }
.header-mobile-navigation .menu { display: block; }
.header-mobile-navigation .menu-item { border-bottom: 1px solid var(--ec-line); }
.header-mobile-navigation .menu-item:last-child { border-bottom: none; }
.header-mobile-navigation .menu-item > a,
html body .drawer-inner .menu-item > a,
html body .drawer-content .menu-item > a {
  color: var(--ec-imperial-deep) !important;
  font-family: var(--ec-body) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 0 !important;
  display: block;
  background: transparent !important;
}
.header-mobile-navigation .menu-item > a:hover,
html body .drawer-inner .menu-item > a:hover { color: var(--ec-imperial) !important; background: transparent !important; }

.header-mobile-navigation .menu-item.menu-item-cta > a,
html body .drawer-inner .menu-item.menu-item-cta > a {
  color: var(--ec-imperial-deep) !important;
  border: 1px solid var(--ec-imperial-deep);
  border-radius: 999px;
  text-align: center;
  margin-top: 1rem;
  padding: 0.9rem 1.5rem !important;
}

.header-mobile-navigation .current-menu-item > a,
.header-mobile-navigation .current_page_item > a,
html body .drawer-inner .current-menu-item > a,
html body .drawer-inner .current_page_item > a { color: var(--ec-gold-deep) !important; }

/* Kill any Kadence default link blue inside the drawer */
.drawer-inner a,
.drawer-content a { color: var(--ec-imperial-deep) !important; }
.drawer-inner a:hover,
.drawer-content a:hover { color: var(--ec-imperial) !important; }

.mobile-toggle-open-button .menu-toggle-icon svg,
.menu-toggle.menu-toggle-open svg { color: var(--ec-imperial-deep) !important; fill: var(--ec-imperial-deep) !important; }

/* ===== EYEBROWS ===== */
.ec-eyebrow {
  font-family: var(--ec-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ec-gold-deep);
  margin: 0 0 var(--ec-space-2);
  display: inline-block;
}

/* ===== SECTION WRAPPERS ===== */
.ec-section {
  padding: var(--ec-space-6) var(--ec-space-3);
  position: relative;
}
@media (min-width: 768px) {
  .ec-section { padding: var(--ec-space-7) var(--ec-space-4); }
}
/* Tighten gap between hero and the section that follows it */
.ec-hero + * .ec-section:first-child,
.ec-section:has(> .ec-inner > .ec-hero) + .ec-section { padding-top: var(--ec-space-5); }
.ec-section:has(> .ec-inner > .ec-hero) { padding-bottom: var(--ec-space-5); }

/* Full-width sections — break Kadence's entry-content max-width so colour bands extend edge to edge. */
.entry-content > .ec-section,
.entry-content > .ec-service-section,
.content-area .ec-section,
.content-area .ec-service-section {
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: auto !important;
}
.ec-section-paper { background: var(--ec-paper); color: var(--ec-ink); }
.ec-section-warm  { background: var(--ec-paper-warm); color: var(--ec-ink); }
.ec-section-purple {
  background: var(--ec-imperial-deep);
  color: var(--ec-paper);
}
.ec-section-purple h1, .ec-section-purple h2, .ec-section-purple h3, .ec-section-purple h4 { color: var(--ec-paper); }
.ec-section-purple p { color: rgba(251, 246, 238, 0.85); }
.ec-section-purple .ec-eyebrow { color: var(--ec-gold-soft); }

.ec-inner { max-width: var(--ec-container); margin: 0 auto; }
.ec-inner-narrow { max-width: 720px; margin: 0 auto; }

.ec-rule {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--ec-gold);
  margin: var(--ec-space-2) 0 var(--ec-space-3);
}
.ec-rule.is-center { margin-left: auto; margin-right: auto; }
.ec-section-purple .ec-rule { background: var(--ec-gold-soft); }

/* ===== BUTTONS ===== */
.ec-btn,
.wp-block-button.ec-btn-primary .wp-block-button__link,
.wp-block-button.ec-btn-secondary .wp-block-button__link,
.wp-block-button.ec-btn-ghost .wp-block-button__link {
  font-family: var(--ec-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ec-btn-primary,
.wp-block-button.ec-btn-primary .wp-block-button__link {
  background: var(--ec-imperial);
  color: var(--ec-paper) !important;
}
.ec-btn-primary:hover,
.wp-block-button.ec-btn-primary .wp-block-button__link:hover {
  background: var(--ec-imperial-deep);
  color: var(--ec-paper) !important;
}
.ec-btn-secondary,
.wp-block-button.ec-btn-secondary .wp-block-button__link {
  background: transparent;
  color: var(--ec-imperial) !important;
  border-color: var(--ec-imperial);
}
.ec-btn-secondary:hover,
.wp-block-button.ec-btn-secondary .wp-block-button__link:hover {
  background: var(--ec-imperial);
  color: var(--ec-paper) !important;
}
.ec-btn-ghost,
.wp-block-button.ec-btn-ghost .wp-block-button__link {
  background: transparent;
  color: var(--ec-imperial) !important;
}
.ec-section-purple .ec-btn-primary {
  background: var(--ec-gold);
  color: var(--ec-imperial-deep) !important;
}
.ec-section-purple .ec-btn-primary:hover {
  background: var(--ec-gold-soft);
}

/* Inline gold arrow link */
.ec-link {
  color: var(--ec-imperial);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ec-line-strong);
  padding-bottom: 2px;
}
.ec-link:hover { color: var(--ec-imperial-deep); border-bottom-color: var(--ec-gold); }

/* ===== HERO ===== */
.ec-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .ec-hero { grid-template-columns: 1fr 1fr; gap: var(--ec-space-6); }
  .ec-hero.is-image-left .ec-hero__image { order: -1; }
}
.ec-hero__title { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 0 0 var(--ec-space-2); }
.ec-hero__title em { font-style: italic; color: var(--ec-imperial); }
.ec-hero__lead {
  font-size: 1.1rem;
  color: var(--ec-ink-muted);
  margin: var(--ec-space-2) 0 var(--ec-space-4);
  max-width: 520px;
}
.ec-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--ec-space-2); }

.ec-hero-image {
  position: relative;
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: var(--ec-shadow-hero);
  aspect-ratio: 4 / 3;
}
.ec-hero-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ec-hero-image::after {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 36px; height: 36px;
  border-left: 2px solid var(--ec-gold);
  border-bottom: 2px solid var(--ec-gold);
  border-bottom-left-radius: var(--ec-radius);
  pointer-events: none;
}

/* ===== SERVICES GRID (3 x 2, with the orphan card centred) ===== */
.ec-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: var(--ec-space-4);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 700px)  { .ec-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; } }
@media (min-width: 980px) {
  .ec-services-grid { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .ec-services-grid > .ec-card { grid-column: span 2; }
  /* When there are 5 cards, centre the 4th and 5th in the second row */
  .ec-services-grid > .ec-card:nth-of-type(4):nth-last-of-type(2) { grid-column: 2 / span 2; }
  .ec-services-grid > .ec-card:nth-of-type(5):nth-last-of-type(1) { grid-column: 4 / span 2; }
}

.ec-card {
  background: var(--ec-paper);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: 1.5rem 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
  align-items: center;
  box-shadow: var(--ec-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ec-card:hover {
  transform: translateY(-2px);
  border-color: var(--ec-gold);
  box-shadow: 0 10px 22px rgba(54,12,94,0.12);
}
.ec-card__icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--ec-paper-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ec-imperial);
  box-shadow: inset 0 0 0 1px var(--ec-line);
  grid-column: 1;
  grid-row: 1;
}
.ec-card__icon svg { width: 28px; height: 28px; }
.ec-card__title {
  font-family: var(--ec-display);
  font-size: 1.4rem;
  margin: 0;
  color: var(--ec-imperial-deep);
  line-height: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  /* Garamond cap-height sits below the line-box centre; nudge to optical centre */
  transform: translateY(-6px);
}
.ec-card__lead {
  font-size: 0.95rem;
  color: var(--ec-ink);
  line-height: 1.5;
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 2;
}
.ec-card__link {
  color: var(--ec-imperial);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ec-line-strong);
  padding-bottom: 2px;
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  margin-top: 0.3rem;
}
.ec-card__link:hover { color: var(--ec-imperial-deep); border-bottom-color: var(--ec-gold); }

/* ===== SERVICE SECTION (the deep page) ===== */
.ec-service-section {
  padding: var(--ec-space-6) var(--ec-space-3);
  border-top: 1px solid var(--ec-line);
}
.ec-service-section:first-of-type { border-top: none; }
.ec-service-section .ec-inner { max-width: 1180px; }
.ec-service-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .ec-service-section.has-image .ec-service-section__grid {
    grid-template-columns: 6fr 5fr;
    gap: var(--ec-space-6);
  }
  .ec-service-section.has-image .ec-service-section__grid.is-image-left .ec-service-section__image { order: -1; }
}
.ec-service-section__head { margin-bottom: var(--ec-space-3); }
.ec-service-section__lead { font-size: 1.1rem; color: var(--ec-ink); max-width: 60ch; }
.ec-service-section__image {
  margin: 0;
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: 0 30px 60px -30px rgba(54, 12, 94, 0.3);
  position: relative;
  aspect-ratio: 5 / 4;
}
.ec-service-section__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ec-service-section__image::after {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 36px; height: 36px;
  border-left: 2px solid var(--ec-gold);
  border-bottom: 2px solid var(--ec-gold);
  border-bottom-left-radius: var(--ec-radius);
  pointer-events: none;
}
.ec-service-bullets {
  list-style: none;
  margin: var(--ec-space-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-1) var(--ec-space-4);
}
@media (min-width: 700px) and (max-width: 899px) { .ec-service-bullets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .ec-service-section:not(.has-image) .ec-service-bullets { grid-template-columns: repeat(2, 1fr); }
}
.ec-service-bullets li {
  position: relative;
  padding: 0.4em 0 0.4em 1.6em;
  font-size: 1rem;
  color: var(--ec-ink);
  line-height: 1.5;
}
.ec-service-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--ec-gold);
}
.ec-service-enquire {
  margin-top: var(--ec-space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* ===== PROSE BAND (about, blog intro) ===== */
.ec-prose-band { overflow: hidden; }
.ec-prose { max-width: 720px; margin: 0 auto; position: relative; }
.ec-prose > * { position: relative; z-index: 1; }
.ec-prose p { font-size: 1.1rem; line-height: 1.7; }
.ec-prose .ec-watermark { display: none !important; }
.ec-prose__image {
  margin: var(--ec-space-3) 0 var(--ec-space-4);
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: 0 30px 60px -30px rgba(54, 12, 94, 0.3);
  position: relative;
  aspect-ratio: 16 / 9;
}
.ec-prose__image::after {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 36px; height: 36px;
  border-left: 2px solid var(--ec-gold);
  border-bottom: 2px solid var(--ec-gold);
  border-bottom-left-radius: var(--ec-radius);
}
.ec-prose__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== PREFOOTER CTA ===== */
.ec-prefooter {
  text-align: center;
}
.ec-prefooter__title {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  margin: 0 auto var(--ec-space-2);
  max-width: none;
}
.ec-prefooter__lead {
  max-width: 50ch;
  margin: 0 auto var(--ec-space-4);
}
.ec-prefooter__bracket {
  position: relative;
  display: inline-block;
  padding: var(--ec-space-3) var(--ec-space-4);
  max-width: 720px;
}
.ec-prefooter__bracket::before,
.ec-prefooter__bracket::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--ec-gold);
  border-style: solid;
  border-width: 0;
}
.ec-prefooter__bracket::before {
  top: 0; left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.ec-prefooter__bracket::after {
  bottom: 0; right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ===== CONTACT SECTION ===== */
.ec-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .ec-contact { grid-template-columns: 5fr 6fr; gap: var(--ec-space-6); }
}
.ec-contact__studio { font-size: 1rem; }
.ec-contact__studio dl { margin: 0; display: grid; gap: 0.6em; }
.ec-contact__studio dt {
  font-family: var(--ec-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ec-gold-deep);
}
.ec-contact__studio dd { margin: 0 0 0.6em 0; font-size: 1.02rem; color: var(--ec-ink); }
.ec-contact__form {
  background: var(--ec-paper);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: var(--ec-space-4) var(--ec-space-4);
  box-shadow: var(--ec-shadow-card);
}

/* ===== TRUST BAND ===== */
.ec-trust { text-align: center; }
.ec-trust__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ec-space-3);
  margin-top: var(--ec-space-4);
}
@media (min-width: 800px) { .ec-trust__row { grid-template-columns: repeat(4, 1fr); } }
.ec-trust__stat {
  font-family: var(--ec-display);
  font-size: 2rem;
  color: var(--ec-imperial-deep);
}
.ec-trust__label {
  font-size: 0.85rem;
  color: var(--ec-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== QUOTE BAND ===== */
blockquote.ec-quote,
.ec-quote {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--ec-space-3) 0 !important;
  font-family: var(--ec-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--ec-imperial-deep);
  border: none !important;
  border-left: 0 !important;
  background: transparent !important;
  position: relative;
}
.ec-quote::before, .ec-quote::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--ec-gold);
  margin: 0 auto var(--ec-space-3);
}
.ec-quote::after { margin: var(--ec-space-3) auto 0; }
.ec-quote__cite {
  display: block;
  margin-top: var(--ec-space-3);
  font-family: var(--ec-body);
  font-style: normal;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ec-gold-deep);
}

/* ===== TESTIMONIAL BAND (empty schema, ready for later) ===== */
.ec-testimonials { display: grid; gap: var(--ec-space-4); }
@media (min-width: 800px) { .ec-testimonials { grid-template-columns: repeat(3, 1fr); } }
.ec-testimonial {
  background: var(--ec-paper-warm);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  padding: var(--ec-space-3);
}
.ec-testimonial blockquote { margin: 0; font-family: var(--ec-display); font-style: italic; }
.ec-testimonial cite {
  display: block;
  margin-top: var(--ec-space-2);
  font-family: var(--ec-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ec-ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== INTRO BAND ===== */
.ec-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ec-intro__lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ec-ink);
  margin: var(--ec-space-2) 0 var(--ec-space-3);
}

/* ===== FOOTER ===== */
.site-footer,
.site-footer .site-footer-row-container-inner,
.site-footer .site-footer-section,
.site-footer .footer-widget-area-inner,
.site-footer-wrap,
.site-footer-row {
  background: var(--ec-imperial-deep) !important;
  color: var(--ec-paper) !important;
  border-top: none;
}
.site-footer .site-footer-row-container-inner { padding: var(--ec-space-5) 0 !important; }
.site-footer .footer-widget-area { padding: 0 var(--ec-space-3); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--ec-paper) !important; }

.site-footer h4 {
  font-family: var(--ec-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ec-gold-soft) !important;
  margin: 0 0 var(--ec-space-2);
}
.site-footer p, .site-footer li, .site-footer a {
  color: rgba(251, 246, 238, 0.82) !important;
  font-size: 0.95rem;
  line-height: 1.7;
}
.site-footer a:hover { color: var(--ec-gold-soft) !important; }
.site-footer .footer-html { font-size: 0.85rem; color: rgba(251, 246, 238, 0.65) !important; }
.site-footer .footer-html a { color: var(--ec-gold) !important; font-weight: 600; }
.site-bottom-footer-wrap {
  border-top: 1px solid rgba(184, 151, 90, 0.25) !important;
  padding: 0 !important;
  background: var(--ec-imperial-deep) !important;
}
.site-bottom-footer-wrap .site-footer-row-container-inner,
.site-bottom-footer-wrap .site-footer-section,
.site-bottom-footer-wrap .footer-html {
  padding: 12px 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}
.ec-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ec-space-3);
  font-size: 0.82rem;
  color: rgba(251, 246, 238, 0.65);
  width: 100%;
  flex-wrap: wrap;
}
.ec-footer-bottom .ec-attribution a { color: var(--ec-gold) !important; }
@media (max-width: 700px) {
  .ec-footer-bottom { justify-content: center; text-align: center; }
}

.ec-footer-brand { display: flex; flex-direction: column; gap: var(--ec-space-2); }
.ec-footer-brand img { max-width: 200px; height: auto; }
.ec-social { display: flex; gap: 0.5rem; margin-top: var(--ec-space-2); }
.ec-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--ec-gold);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ec-gold) !important;
  transition: background .15s, color .15s;
}
.ec-social a:hover { background: var(--ec-gold); color: var(--ec-imperial-deep) !important; }
.ec-social svg { width: 16px; height: 16px; }

/* ===== WPFORMS DARK CALM OVERRIDE ===== */
.ec-contact__form .wpforms-container,
.ec-contact__form .wpforms-form {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.ec-contact__form .wpforms-field { padding: 10px 0 !important; margin: 0 !important; }
.ec-contact__form .wpforms-field-label,
.wpforms-form .wpforms-field-label {
  font-family: var(--ec-body) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ec-gold-deep) !important;
  margin-bottom: 0.5rem !important;
}
.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form input[type=tel],
.wpforms-form input[type=url],
.wpforms-form select,
.wpforms-form textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--ec-line-strong) !important;
  border-radius: 0 !important;
  color: var(--ec-ink) !important;
  font-family: var(--ec-body) !important;
  font-size: 1.02rem !important;
  padding: 0.55em 0 !important;
  width: 100% !important;
  box-shadow: none !important;
}
.wpforms-form textarea { min-height: 110px; }
.wpforms-form input::placeholder, .wpforms-form textarea::placeholder { color: var(--ec-ink-muted) !important; opacity: 0.7; }
.wpforms-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B8975A' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  padding-right: 1.5rem !important;
}
.wpforms-form input:focus, .wpforms-form select:focus, .wpforms-form textarea:focus {
  outline: none !important;
  border-bottom-color: var(--ec-imperial) !important;
}
.wpforms-form button[type=submit],
.wpforms-form .wpforms-submit {
  background: var(--ec-imperial) !important;
  color: var(--ec-paper) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.95em 1.6em !important;
  font-family: var(--ec-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  margin-top: var(--ec-space-2) !important;
  cursor: pointer;
  transition: background .15s ease;
}
.wpforms-form button[type=submit]:hover { background: var(--ec-imperial-deep) !important; }
.wpforms-form .wpforms-required-label { color: var(--ec-gold-deep) !important; margin-left: 0.25em; }
.wpforms-confirmation-container-full {
  background: var(--ec-paper-warm) !important;
  border: 1px solid var(--ec-line) !important;
  border-radius: var(--ec-radius) !important;
  padding: var(--ec-space-3) !important;
  color: var(--ec-ink) !important;
}

/* ===== BLOG ===== */
.loop-entry .entry-taxonomies,
.loop-entry .posted-by,
.loop-entry .meta-author,
.loop-entry .entry-meta,
.entry-meta-divider { display: none !important; }
.loop-entry { background: var(--ec-paper); border: 1px solid var(--ec-line); border-radius: var(--ec-radius); padding: 0 !important; overflow: hidden; }
.loop-entry .post-thumbnail { margin: 0 !important; }
.loop-entry .post-thumbnail img { display: block; width: 100%; height: auto; }
.loop-entry .entry-content-wrap,
.loop-entry .entry-content { padding: 1.25rem 1.5rem 1.5rem !important; }
.loop-entry .entry-title { font-family: var(--ec-display); font-size: 1.35rem; color: var(--ec-imperial-deep) !important; margin: 0 0 0.5rem !important; }
.loop-entry .entry-title a { color: var(--ec-imperial-deep) !important; text-decoration: none; }
.loop-entry .entry-title a:hover { color: var(--ec-imperial) !important; }
.loop-entry .entry-summary { color: var(--ec-ink); font-size: 0.95rem; line-height: 1.55; }
.loop-entry .more-link { color: var(--ec-imperial) !important; font-weight: 600; border-bottom: 1px solid var(--ec-line-strong); padding-bottom: 2px; }
.navigation.post-navigation, .nav-links, .post-navigation-sub { display: none !important; }

/* Hide loop entry meta + bylines globally */
body.blog .entry-byline,
body.single .entry-byline,
body.single .entry-meta,
body.single .entry-taxonomies,
body.single .entry-header .entry-meta,
body.blog .entry-meta,
body.archive .entry-meta { display: none !important; }

/* ===== SINGLE POST (editorial) ===== */
.ec-single .ec-single__title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0.6rem 0;
  color: var(--ec-imperial-deep);
}
.ec-single__head { padding-bottom: 0 !important; padding-top: var(--ec-space-5) !important; }
.ec-single__featured {
  margin: 0;
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-line);
  box-shadow: 0 30px 60px -30px rgba(54, 12, 94, 0.3);
  aspect-ratio: 16 / 9;
}
.ec-single__featured img,
.ec-single__featured .ec-single__hero { display: block; width: 100%; height: 100%; object-fit: cover; }
.ec-single__body { max-width: 720px; }
.ec-single__body h2 { margin-top: var(--ec-space-4); }
.ec-single__body p { font-size: 1.1rem; line-height: 1.75; color: var(--ec-ink); }
.ec-single__body a { color: var(--ec-imperial); border-bottom: 1px solid var(--ec-line-strong); }

/* Related posts grid */
.ec-single__related { background: var(--ec-paper-warm) !important; }
.ec-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ec-space-3);
  margin-top: var(--ec-space-4);
}
@media (min-width: 700px) { .ec-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ec-related-card {
  display: flex;
  flex-direction: column;
  background: var(--ec-paper);
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.ec-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--ec-gold);
  box-shadow: 0 10px 22px rgba(54,12,94,0.12);
}
.ec-related-card__image { aspect-ratio: 16 / 9; overflow: hidden; }
.ec-related-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-related-card__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.ec-related-card__date {
  font-family: var(--ec-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ec-gold-deep);
}
.ec-related-card__title {
  font-family: var(--ec-display);
  font-size: 1.2rem;
  color: var(--ec-imperial-deep);
  margin: 0;
  line-height: 1.25;
}
.ec-related-card__excerpt {
  font-size: 0.95rem;
  color: var(--ec-ink);
  line-height: 1.55;
  margin: 0;
}
.ec-related-card__more {
  color: var(--ec-imperial);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ec-line-strong);
  align-self: flex-start;
  margin-top: 0.3rem;
  padding-bottom: 2px;
}

/* ===== UTILS ===== */
.is-center-text { text-align: center; }
.has-display-font { font-family: var(--ec-display) !important; }
.has-body-font { font-family: var(--ec-body) !important; }
