/*
Theme Name: KMJ Counselling
Theme URI: https://kmjcounselling.com
Author: KMJ Counselling
Description: Custom theme for KMJ Counselling — warm, calm, person-centred counselling practice site.
Version: 1.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kmj-counselling
*/

/* ============ PALETTE ============
   Paper/card: #EFF0EB   Blue-grey accent: #96AAB0
   Neutral mid: #C3C8C4  Dark slate (text): #5C615D
   Rule used throughout for AA contrast with only 4 colours:
     - text sits on #EFF0EB or #5C615D (both pass 4.5:1 with the other)
     - #96AAB0 and #C3C8C4 are used as accents/borders/large decorative
       fields, never as a background directly behind body text
   Crisis/safety callouts intentionally use a red outside this palette —
   that colour carries real safety meaning and must stay visually distinct. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #EFF0EB;
  color: #5C615D;
  font-family: 'Josefin Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: #96AAB0; color: #EFF0EB; }
button { font-family: 'Josefin Sans', sans-serif; }

.screen-reader-text {
  position: absolute; left: -9999px; top: 8px;
  background: #5C615D; color: #EFF0EB; padding: 10px 16px;
  border-radius: 8px; text-decoration: none; z-index: 200;
}
.screen-reader-text:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #5C615D; outline-offset: 2px; border-radius: 4px;
}

/* ============ LAYOUT HELPERS ============ */
.kmj-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.kmj-wrap--medium { max-width: 1060px; }
.kmj-wrap--narrow { max-width: 900px; }
.kmj-wrap--text { max-width: 820px; }
.kmj-wrap--form { max-width: 1080px; }
.kmj-section { padding: 0 0 clamp(48px, 7vw, 84px); }
.kmj-section--top { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.kmj-center { text-align: center; }

.kmj-eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #5C615D; margin: 0 0 16px;
}
.kmj-h1 {
  font-family: 'Forum', serif; font-weight: 400;
  font-size: clamp(38px, 5.5vw, 64px); line-height: 1.06; color: #5C615D; margin: 0;
}
.kmj-h2 {
  font-family: 'Forum', serif; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px); color: #5C615D; margin: 0 0 16px;
}

/* ============ BUTTONS ============ */
.kmj-btn, .wp-block-button__link {
  display: inline-block; background: #5C615D !important; color: #EFF0EB !important;
  text-decoration: none !important; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px !important; border: none;
}
.kmj-btn--outline, .is-style-outline .wp-block-button__link {
  background: #EFF0EB !important; color: #5C615D !important;
  border: 1.5px solid #96AAB0 !important;
}

/* ============ HEADER ============ */
.kmj-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,240,235,0.94); backdrop-filter: blur(10px);
}
.kmj-header-inner {
  position: relative; width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kmj-logo { text-decoration: none; display: flex; align-items: center; }
.kmj-logo img { height: 52px; width: auto; display: block; }

.kmj-menu-toggle {
  display: none; background: #EFF0EB; border: 1px solid #C3C8C4; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; color: #5C615D; font-weight: 600; font-size: 14px;
}
.kmj-nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.kmj-nav-list li { margin: 0; }
.kmj-nav-list a {
  font-family: 'Josefin Sans', sans-serif; font-size: 16px; text-decoration: none; white-space: nowrap;
  padding: 6px 2px; color: #5C615D; font-weight: 500; border-bottom: 2px solid transparent;
}
.kmj-nav-list li.current-menu-item > a,
.kmj-nav-list a[aria-current="page"] {
  font-weight: 700; border-bottom: 2px solid #96AAB0;
}
.kmj-nav-list li:last-child a {
  background: #5C615D; color: #EFF0EB; font-weight: 600; padding: 11px 22px;
  border-radius: 999px; border-bottom: none;
}

@media (max-width: 880px) {
  .kmj-menu-toggle { display: inline-block; }
  .kmj-nav-list {
    position: absolute; top: 100%; left: 0; right: 0; background: #EFF0EB;
    border-bottom: 1px solid #C3C8C4; box-shadow: 0 12px 24px rgba(92,97,93,0.14);
    flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 24px 20px;
    display: none;
  }
  .kmj-nav-list.is-open { display: flex; }
  .kmj-nav-list a { padding: 10px 2px; display: block; width: 100%; }
}

/* ============ HERO ============ */
.kmj-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.kmj-hero-image {
  aspect-ratio: 16/9; width: 100%; border-radius: 28px; overflow: hidden; background: #C3C8C4;
  margin-top: clamp(32px, 5vw, 52px);
}
.kmj-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============ PILLARS ============ */
.kmj-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.kmj-pillar-card { background: #EFF0EB; border: 3px solid #C3C8C4; border-radius: 24px; padding: 32px; }
.kmj-pillar-card img { width: 44px; height: auto; margin-bottom: 18px; }
.kmj-pillar-card h2 { font-family: 'Forum', serif; font-weight: 400; font-size: 28px; color: #5C615D; margin: 0 0 10px; }
.kmj-pillar-card p { font-size: 15px; line-height: 1.7; color: #5C615D; margin: 0; }

/* ============ FEATURE PANEL (What I Provide) ============
   Blue-grey used as an outer decorative frame; the readable text sits on
   an inner EFF0EB card so contrast stays compliant. */
.kmj-panel {
  background: #96AAB0; border-radius: 32px; padding: clamp(10px, 2vw, 16px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(10px,2vw,16px); align-items: stretch;
}
.kmj-panel-text { background: #EFF0EB; border-radius: 24px; padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; justify-content: center; }
.kmj-panel-text h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(28px,4vw,44px); line-height: 1.1; margin: 0 0 18px; color: #5C615D; }
.kmj-panel-text p { color: #5C615D; font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.kmj-panel-image { width: 100%; height: 100%; min-height: 260px; border-radius: 24px; overflow: hidden; background: #C3C8C4; }
.kmj-panel-image img { width: 100%; height: 100%; object-fit: cover; }

/* ============ TAGS (Areas I work with) ============ */
.kmj-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.kmj-tags li { background: #EFF0EB; border: 1px solid #96AAB0; color: #5C615D; font-weight: 500; font-size: 15px; padding: 11px 20px; border-radius: 999px; }

/* ============ LOCATIONS ============ */
.kmj-locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 20px; }
.kmj-locations .card { background: #EFF0EB; border: 1px solid #C3C8C4; border-top: 4px solid #96AAB0; border-radius: 24px; padding: 30px; text-align: center; }
.kmj-locations h3 { font-family: 'Forum', serif; font-weight: 400; font-size: 24px; margin: 0 0 8px; color: #5C615D; }
.kmj-locations p { margin: 0; color: #5C615D; line-height: 1.65; font-size: 15px; }

/* ============ CTA BAND ============ */
.kmj-cta { background: #5C615D; border-radius: 32px; padding: clamp(36px, 6vw, 72px); text-align: center; }
.kmj-cta h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(30px,4.6vw,50px); color: #EFF0EB; margin: 0 0 16px; line-height: 1.1; }
.kmj-cta p { font-size: 17px; line-height: 1.7; color: #EFF0EB; margin: 0 auto 30px; max-width: 54ch; opacity: .92; }

/* ============ STEPS (What happens next) ============
   Same card-on-accent pattern as the feature panel. */
.kmj-steps-panel { background: #96AAB0; border-radius: 32px; padding: clamp(10px, 2vw, 16px); }
.kmj-steps-panel-inner { background: #EFF0EB; border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.kmj-steps-panel h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(28px,4vw,44px); color: #5C615D; margin: 0 0 30px; text-align: center; }
.kmj-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.kmj-steps .step { background: #EFF0EB; border: 3px solid #96AAB0; border-radius: 22px; padding: 30px; }
.kmj-steps .step .num { font-family: 'Forum', serif; font-weight: 400; font-size: 40px; color: #96AAB0; margin: 0 0 8px; line-height: 1; }
.kmj-steps .step h3 { font-family: 'Forum', serif; font-weight: 400; font-size: 24px; color: #5C615D; margin: 0 0 10px; }
.kmj-steps .step p { font-size: 15px; line-height: 1.7; color: #5C615D; margin: 0; }

/* ============ PRICE BOX (Fees) ============ */
.kmj-price-box { background: #EFF0EB; border: 5px solid #96AAB0; border-radius: 28px; padding: clamp(30px,5vw,52px); text-align: center; margin-bottom: 24px; }
.kmj-price-box .label { font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #5C615D; margin: 0 0 12px; }
.kmj-price-box .amount { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(48px,8vw,76px); color: #5C615D; margin: 0; line-height: 1; }
.kmj-price-box .per { font-size: 17px; color: #5C615D; margin: 8px 0 0; }

/* ============ CONTACT LAYOUT ============ */
.kmj-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(24px,4vw,40px); align-items: start; }
.kmj-contact-main { background: #EFF0EB; border: 1px solid #C3C8C4; border-radius: 24px; padding: clamp(24px,4vw,36px); }
.kmj-aside-card { background: #EFF0EB; border: 1px solid #C3C8C4; border-top: 4px solid #96AAB0; border-radius: 24px; padding: 26px; margin-bottom: 18px; }
.kmj-aside-card h2 { font-family: 'Forum', serif; font-weight: 400; font-size: 24px; color: #5C615D; margin: 0 0 10px; }
.kmj-aside-card p { font-size: 15px; line-height: 1.7; color: #5C615D; margin: 0; }
.kmj-crisis-box, .kmj-content .kmj-crisis { border: 1.5px solid #b9563f; border-radius: 24px; padding: clamp(24px,4vw,34px); background: #f6ece8; }
.kmj-crisis-box h2, .kmj-content .kmj-crisis h2, .kmj-content .kmj-crisis h3 { color: #8f3d2b; }
.kmj-crisis-box p, .kmj-content .kmj-crisis p, .kmj-content .kmj-crisis li { color: #5a2c1e; }
.kmj-crisis-box a, .kmj-content .kmj-crisis a { color: #8f3d2b; font-weight: 700; }

/* ============ CONTENT (the_content output — Gutenberg-authored pages) ============ */
.kmj-content { font-size: 17px; line-height: 1.8; color: #5C615D; }
.kmj-content h1 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(32px,4.6vw,48px); color: #5C615D; line-height: 1.1; }
.kmj-content h2 { font-family: 'Forum', serif; font-weight: 400; font-size: clamp(24px,3vw,30px); color: #5C615D; margin: 36px 0 14px; padding-bottom: 12px; border-bottom: 2px solid #96AAB0; }
.kmj-content h3 { font-family: 'Forum', serif; font-weight: 400; font-size: 21px; color: #5C615D; margin: 24px 0 10px; }
.kmj-content p { margin: 0 0 18px; }
.kmj-content ul, .kmj-content ol { padding-left: 20px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.kmj-content li { line-height: 1.65; }
.kmj-content a { color: #5C615D; font-weight: 600; text-decoration: none; border-bottom: 2px solid #96AAB0; }
.kmj-content strong { color: #5C615D; }
.kmj-content .wp-block-group.has-background { border-radius: 24px; padding: 26px 30px; }
.kmj-content .kmj-outline-box { border: 1.5px solid #96AAB0; border-radius: 20px; padding: 24px 28px; }
.kmj-content .kmj-outline-box::before {
  content: ""; display: block; width: 30px; height: 30px; margin-bottom: 14px;
  background-image: url('assets/images/kmj-mark-blue.png');
  background-size: contain; background-repeat: no-repeat;
}
.kmj-content .kmj-blue-box { background: #EFF0EB; border: 3px solid #96AAB0; border-radius: 20px; padding: 24px 28px; }
.kmj-content .kmj-blue-box h1, .kmj-content .kmj-blue-box h2, .kmj-content .kmj-blue-box h3 { border-bottom: none; }
.kmj-content figure.wp-block-image { border-radius: 24px; overflow: hidden; margin: 0 0 20px; }
.kmj-content blockquote {
  font-family: 'Forum', serif; font-style: italic; font-size: 22px; color: #5C615D;
  text-align: right; border: none; margin: 26px 0 0; padding: 0;
}
.kmj-content blockquote p { margin: 0; }
.kmj-content .wp-block-buttons { margin: 20px 0 0; gap: 14px; }

/* ============ ABOUT LAYOUT ============ */
.kmj-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(28px,5vw,52px); align-items: start; }
.kmj-about-photo { aspect-ratio: 4/5; width: 100%; max-width: 400px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #C3C8C4; }
.kmj-about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FOOTER ============ */
.kmj-footer { background: #5C615D; color: #EFF0EB; padding: clamp(48px,7vw,72px) 0 40px; }
.kmj-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(239,240,235,0.2); }
.kmj-footer-logo { display: block; margin-bottom: 14px; }
.kmj-footer-logo img { height: 44px; width: auto; }
.kmj-footer p { font-size: 14px; line-height: 1.7; margin: 0; max-width: 34ch; color: #EFF0EB; }
.kmj-footer h2 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #EFF0EB; margin: 0 0 14px; font-weight: 700; }
.kmj-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.kmj-footer a { color: #EFF0EB; text-decoration: none; font-size: 15px; }
.kmj-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; }
.kmj-footer-bottom p { font-size: 13px; color: #EFF0EB; opacity: .85; margin: 0; max-width: none; }

/* ============ WPForms harmonising ============ */
.kmj-content .wpforms-container input[type="text"],
.kmj-content .wpforms-container input[type="email"],
.kmj-content .wpforms-container input[type="tel"],
.kmj-content .wpforms-container input[type="date"],
.kmj-content .wpforms-container textarea,
.kmj-content .wpforms-container select {
  font-family: 'Josefin Sans', sans-serif !important; font-size: 16px !important;
  padding: 12px 14px !important; border: 1px solid #C3C8C4 !important;
  border-radius: 10px !important; background: #fff !important; color: #5C615D !important;
}
.kmj-content .wpforms-container label.wpforms-field-label {
  font-size: 14px !important; font-weight: 600 !important; color: #5C615D !important;
}
.kmj-content .wpforms-container button[type="submit"] {
  background: #5C615D !important; color: #EFF0EB !important; border: none !important;
  font-weight: 600 !important; font-size: 16px !important; padding: 15px 30px !important;
  border-radius: 999px !important; cursor: pointer;
}
