/************************************************************
  DICKARD CONSULTING — WORDPRESS.COM ADDITIONAL CSS (CLEAN)
  ---------------------------------------------------------
  TABLE OF CONTENTS
  00) Imports & Variables
  01) WordPress Chrome Cleanup (hide default theme chrome)
  02) Global / Typography / Animations
  03) Mobile Header + Toggle Buttons (hamburger/X)
  04) Side Navigation Rail
  05) Hero Section
  06) Main Content Wrapper (.d-wrap)
  07) Content Modules (services, values, contact card)
  08) Responsive (Tablet & Mobile)
  09) Utilities / A11y / Print
  10) Footer (custom) + Hide default WP footer
  11) Menu Close: prevent jump to top
************************************************************/


/* =========================
   00) IMPORTS & VARIABLES
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Rufina:wght@400;700&display=swap');

:root {
  --rail: 200px;         /* left sidebar width (desktop) */
  --gutter: 24px;        /* space between rail and content */
  --accent: #eb2a8b;
  --ink: #364c85;
  --paper: #ffffff;
  --hover: #9ab0db;
  --line: #333333;
  --padY: 22px;          /* vertical padding inside the rail */
  --fz-link: 18px;
  --marker: 3px;
  --topbar: 60px;        /* mobile header height */
}


/* ============================================
   01) WORDPRESS CHROME CLEANUP (hide defaults)
   ============================================ */

body.wp-admin-bar-front.logged-in .site-title,
body .site-title,
body .site-description, 
body #site-title, 
body #site-description,
body .entry-title, 
body .page-title, 
body h1.entry-title,
body .wp-block-site-title,
body .wp-site-blocks > h1:first-child,
body .wp-site-blocks > .wp-block-heading:first-child,
body .search-form,
body #searchform,
body input[type="search"],
body .search-field,
body .wp-block-search,
body header.site-header,
body .site-header,
body .header,
body #header,
body #masthead,
body .entry-content > h1:first-child,
body .post-content > h1:first-child,
body button[type="submit"],
body input[placeholder*="Search"],
body input[placeholder*="search"],
body .wp-site-blocks > .wp-block-group:first-child h1,
body .wp-site-blocks > .wp-block-group:first-child h2,
body .entry-content > .wp-block-group:first-child h1,
body .entry-content > .wp-block-heading:first-child,
body .has-text-align-center.wp-block-heading,
body .wp-block-post-title,
body .wp-block-site-logo,
body .wp-block-navigation {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  z-index: -99999 !important;
}


/* ==========================
   02) GLOBAL / TYPOGRAPHY
   ========================== */

html {
  scroll-behavior: smooth !important;
  font-size: 18px !important;
}

body, .site, .site-content, .wp-site-blocks,
#primary, .content, .content-area, .site-main, .entry-content {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3 {
  color: var(--ink) !important;
  font-family: 'Rufina', Georgia, serif !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 1rem !important;
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem) !important; }
h2 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem) !important; }
h3 { font-size: clamp(1.2rem, 1.2vw + 1rem, 1.6rem) !important; }

/* Animations */
@keyframes slideUp   { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }
@keyframes slideRight{ from {opacity:0; transform:translateX(30px);} to {opacity:1; transform:translateX(0);} }
@keyframes fadeIn    { from {opacity:0;} to {opacity:1;} }
@keyframes gradientShift { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }


/* ============================================
   03) MOBILE HEADER + TOGGLE (hamburger / X)
   ============================================ */

.mobile-header {
  display: none;                 /* shown on mobile in responsive section */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.mobile-logo { height: 40px; width: auto; }

/* Header buttons: shared look */
.mobile-menu-open,
.mobile-menu-toggle-close {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 45px; height: 45px;
  background: var(--ink); color: #fff;
  border-radius: 50%;
  display: none;                 /* revealed on mobile */
  align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10003;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.mobile-menu-open:hover,
.mobile-menu-toggle-close:hover { background: var(--hover); transform: translateY(-50%) scale(1.05); }
.mobile-menu-open::after         { content: "☰"; line-height: 1; }
.mobile-menu-toggle-close::after { content: "✕"; font-weight: 700; line-height: 1; }

/* Close button inside the rail */
.mobile-menu-close {
  position: absolute !important;
  right: 20px !important; top: 20px !important;
  width: 40px !important; height: 40px !important;
  background: var(--ink) !important; color: #fff !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 20px !important; font-weight: bold !important;
  text-decoration: none !important; line-height: 1 !important;
  z-index: 10005 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
  transition: all .3s ease !important;
  opacity: 0 !important; visibility: hidden !important; transform: scale(.8) !important;
}
.mobile-menu-close:hover { background: var(--hover) !important; transform: scale(1.1) !important; }

/* Mobile overlay (dim background) */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease;
}


/* =======================
   04) SIDE NAVIGATION
   ======================= */

.d-rail {
  position: fixed !important;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  background: var(--paper) !important; color: var(--ink) !important;
  z-index: 10000;
  display: flex; flex-direction: column; align-items: center;
  padding-top: var(--padY); padding-bottom: var(--padY);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.d-brand { display: block; text-decoration: none; margin-bottom: 12px; color: var(--ink); animation: fadeIn 1s ease-out .5s both; }
.d-brand img { width: 200px; max-width: 100%; height: auto; display: block; padding: 0 12px; }

/* Menu links */
.d-nav {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.d-nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: var(--fz-link);
  border-left: var(--marker) solid transparent;
  padding: 8px 16px; transition: all .3s ease;
  font-family: 'Montserrat', sans-serif; animation: slideRight .55s ease-out both;
}
.d-nav a:nth-of-type(1){animation-delay:.20s;} .d-nav a:nth-of-type(2){animation-delay:.35s;}
.d-nav a:nth-of-type(3){animation-delay:.50s;} .d-nav a:nth-of-type(4){animation-delay:.65s;}
.d-nav a:nth-of-type(5){animation-delay:.80s;}
.d-nav a:hover, .d-nav a[aria-current] { border-left-color: var(--line); color: var(--hover); transform: translateX(3px); }


/* ===============
   05) HERO
   =============== */

.hero-section {
  margin-left: calc(var(--rail) + var(--gutter));
  height: 70vh;
  background:
    linear-gradient(135deg, rgba(54,76,133,0.8), rgba(154,176,219,0.6)),
    url('https://dickardconsulting.com/wp-content/uploads/2025/09/20250913_1715_Women-Working-Together_remix_01k52j974zezpvtysxs4zt9wa4.png')
    center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; animation: fadeIn 1.5s ease-out .2s both;
}
.hero-content { text-align: center; color: #fff; max-width: 800px; padding: 0 20px; }
.hero-content h1 {
  font-family: 'Rufina', serif; font-weight: 700; color: #fff !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important; margin-bottom: 20px;
  animation: slideUp 1s ease-out .8s both;
}
.highlight-word {
  display:inline-block; background: linear-gradient(45deg,#333,#364c85,#9ab0db,#c5c850,#364c85,#333);
  background-size:200% 200%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  animation: gradientShift 3s ease-in-out infinite; font-weight: 800 !important;
}
.hero-content p {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  max-width: 65ch;
  line-height: 1.5;
  text-wrap: balance;
  color:#fff;
  animation: slideUp 1s ease-out 1.2s both;
  margin-inline: auto;
}


/* ================================
   06) MAIN CONTENT WRAPPER (.d-wrap)
   ================================ */

.d-wrap {
  margin-left: calc(var(--rail) + var(--gutter)) !important;
  margin-right: auto;
  max-width: 960px;
  padding: 30px 6vw 30px;   /* outer padding */
  box-sizing: border-box;
  background: var(--paper);
}
.d-wrap > * { max-width: 880px; margin-left: auto; margin-right: auto; }

/* *** UNIFIED SECTION SPACING CONTROL *** 
   Adjust the 30px here to globally change vertical rhythm */
.d-wrap section {
  padding: 30px 0 !important;        /* was 96/80/60 in older rules */
  border-bottom: 1px solid rgba(51,51,51,0.1);
  scroll-margin-top: 24px;
}
.d-wrap section:last-of-type { border-bottom: none; }

/* Tighten the initial gap after the hero (hero → first section) */
.d-wrap section:first-of-type { padding-top: 30px !important; }


/* ===============================
   07) CONTENT MODULES / COMPONENTS
   =============================== */

/* Text helpers */
.d-kicker { font-size: .85rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink); margin-bottom:1rem; opacity:.8; }
.d-lead   { font-size:1.05rem !important; line-height:1.7; max-width:75ch; font-weight:500; margin-bottom:1.5rem; }

.d-wrap a { color: var(--ink) !important; text-decoration: underline !important; text-underline-offset: 2px !important; transition: color .3s ease; }
.d-wrap a:hover { color: var(--hover) !important; }

/* Services grid */
.services-grid { display:grid; gap:32px; margin-top:40px; }
@media (min-width: 900px){ .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background:#fff; border-radius:12px; padding:30px;
  box-shadow:0 5px 20px rgba(54,76,133,0.1);
  position:relative; overflow:hidden; transition: transform .4s ease, box-shadow .4s ease;
}
.service-card::before{
  content:''; position:absolute; top:0; left:-100%; width:100%; height:3px;
  background: linear-gradient(90deg, var(--ink), var(--hover)); transition:left .6s ease;
}
.service-card:hover::before{ left:0; }
.service-card:hover{ transform: translateY(-5px); box-shadow:0 15px 40px rgba(54,76,133,0.2); }

.service-icon{ width:60px; height:60px; border-radius:12px; margin-bottom:20px; object-fit:cover; transition: transform .3s ease; }
.service-card:hover .service-icon{ transform: scale(1.1); }

.service-card h3{ font-family:'Rufina', serif; font-size:1.4rem !important; color:var(--ink) !important; margin-bottom:15px; transition: color .3s ease; }
.service-card:hover h3{ color: var(--hover) !important; }
.service-card p{ color:var(--ink); opacity:.8; line-height:1.6; margin:0; transition: opacity .3s ease; }
.service-card:hover p{ opacity:1; }

/* Values list */
.values-list{ list-style:none; padding:0; margin:20px 0; }
.values-list li{
  padding:15px 0; border-bottom:1px solid rgba(54,76,133,0.1); transition: all .3s ease;
}
.values-list li:hover{
  background: rgba(154,176,219,0.1); transform: translateX(5px); border-radius:5px; padding-left:10px;
}

/* Contact card */
.contact-card{
  background: linear-gradient(135deg, var(--ink), var(--hover));
  color:#fff; padding:40px; border-radius:16px; text-align:center;
  transition: transform .5s ease, box-shadow .5s ease; margin-top:20px;
}
.contact-card:hover{ transform: translateY(-5px) scale(1.02); box-shadow:0 15px 40px rgba(54,76,133,0.3); }
.contact-card p{ color:#fff; margin-bottom:15px; }
.contact-card a{
  color:#fff !important; text-decoration:none !important; font-weight:600;
  padding:12px 24px; background:rgba(255,255,255,0.2); border-radius:25px; display:inline-block; margin-top:15px; transition: all .3s ease;
}
.contact-card a:hover{ background:rgba(255,255,255,0.3); transform: translateY(-2px); }
.d-wrap strong,
.d-wrap b {
  font-weight: 700 !important;
}
.d-wrap p {
  margin-bottom: 1.4em !important;
}

/* ==========================
   08) RESPONSIVE ADJUSTMENTS
   ========================== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --rail: 160px; --gutter: 20px; }
  .d-brand img { width:150px; }
  .d-nav a { font-size:16px; padding:6px 12px; }
  .hero-section { height: 64vh; }               /* only height changes; spacing stays 30px */
  /* NOTE: We intentionally do NOT change .d-wrap section padding here. */
}

/* Mobile */
@media (max-width: 768px) {
  /* Show mobile header */
  .mobile-header { display: flex !important; }

  /* Header toggle: hamburger by default; show X when menu is open */
  .mobile-menu-open { display: flex !important; }
  body:has(#mobile-menu:target) .mobile-menu-open { display: none !important; }
  body:has(#mobile-menu:target) .mobile-menu-toggle-close { display: flex !important; }

  /* Slide-in menu */
  .d-rail{
    position: fixed !important;
    left: -280px !important; top: 0 !important; bottom: 0 !important;
    width: 280px !important; height: 100vh !important;
    transition: left .3s cubic-bezier(.4,0,.2,1) !important;
    z-index: 10000 !important; padding-top: 80px !important;
    background: var(--paper) !important; box-shadow: 2px 0 20px rgba(0,0,0,0.3) !important;
  }
  .d-rail:target { left: 0 !important; }

  /* Reveal close button & overlay when open */
  .d-rail:target .mobile-menu-close { opacity:1 !important; visibility:visible !important; transform:scale(1) !important; z-index:10006 !important; }
  .d-rail:target ~ .mobile-overlay { display:block !important; opacity:1 !important; }

  /* Nav layout on mobile */
  .d-rail .d-brand{ display:none !important; }
  .d-nav{ position: static !important; transform:none !important; width:100% !important; margin-top:20px !important; }
  .d-nav a{
    animation:none !important; padding:18px 25px !important; border-left:none !important;
    border-bottom:1px solid rgba(54,76,133,0.1) !important; width:calc(100% - 50px) !important; text-align:left !important; font-size:16px !important; display:block !important;
  }
  .d-nav a:hover, .d-nav a:active{
    background: rgba(154,176,219,0.1) !important; transform: translateX(8px) !important; border-left:4px solid var(--hover) !important; padding-left:21px !important;
  }

  /* Content offset for top bar; spacing remains 30px globally */
  .hero-section { margin-left:0 !important; margin-top:var(--topbar) !important; height:60vh !important; }
  .d-wrap { margin-left:0 !important; padding: 30px 16px 30px !important; }
  .d-wrap > * { max-width: none !important; }
}

/* Lock page scroll when the menu is open (modern browsers) */
html:has(#mobile-menu:target),
body:has(#mobile-menu:target) {
  overflow: hidden !important;
  touch-action: none !important;
}


/* =========================
   09) UTILITIES / A11Y / PRINT
   ========================= */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print */
@media print {
  .d-rail, .mobile-header, .hero-section, .mobile-overlay { display: none !important; }
  .d-wrap { margin-left: 0 !important; max-width: none !important; }
  body { font-size: 12pt !important; line-height: 1.4 !important; }
  h1, h2, h3 { color: #000 !important; }
}


/* ============================================
   10) FOOTER (CUSTOM) + HIDE DEFAULT WP FOOTER
   ============================================ */

/* Custom footer aligned with content column */
.custom-footer {
  margin-left: calc(var(--rail) + var(--gutter)) !important;
  background: var(--paper);
  border-top: 1px solid rgba(51,51,51,0.1);
  padding: 24px 6vw;
  display: block !important; visibility: visible !important; position: relative; z-index: 1;
  margin-top: 12px;
}
.custom-footer__inner {
  max-width: 880px; margin: 0 auto; text-align: center;
  color: var(--ink); font-size: 0.9rem; line-height: 1.6;
}
@media (max-width: 768px) {
  .custom-footer { margin-left: 0 !important; padding: 20px 16px; }
}

/* Hide default WordPress.com/footer template parts */
body .site-footer,
body #colophon,
body footer.site-footer,
body .wp-block-template-part__footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}


/* ==================================
   11) MENU CLOSE: PREVENT JUMP TO TOP
   ================================== */

/* Anchor target used to clear :target state without scrolling */
#close {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 0 !important; height: 0 !important;
  overflow: hidden !important; pointer-events: none !important;
}
/* (kept for completeness) — some browsers readjust layout on :target */
#close:target { scroll-margin-top: 0 !important; }

.partner-intro {
  display: block;          /* puts it on its own line */
  font-weight: 700;        /* bold */
  margin-top: 1.2em;       /* spacing before */
  color: var(--ink);       /* keeps consistent text color */
}
