/*
Theme Name: JDS Carer
Theme URI: https://jdscareprovider.com.au
Author: Druk Coder
Author URI: https://drukcoder.com
Description: A professional, accessible NDIS disability support theme for JDS Care Provider - Perth, WA. Built with Tailwind CSS.
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jds-carer
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, translation-ready, accessibility-ready, business, medical
*/

/* =========================================================================
   DESIGN TOKENS
   ========================================================================= */
   :root {
    --brand:       #813A97;
    --brand-dark:  #6B2E7E;
    --text-1:      #111827;
    --text-2:      #4b5563;
    --text-3:      #9ca3af;
    --border:      #e5e7eb;
    --surface:     #ffffff;
    --surface-2:   #f9fafb;
    --radius-sm:   0.375rem;
    --radius-md:   0.625rem;
    --radius-lg:   0.875rem;
    --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --ease:        0.2s ease;
  }
  
  /* =========================================================================
     BASE
     ========================================================================= */
  body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: var(--text-2);
    -webkit-font-smoothing: antialiased;
  }
  
  /* =========================================================================
     TYPOGRAPHY
     ========================================================================= */
  .jdscarer-page-content h1,
  .jdscarer-page-content h2,
  .jdscarer-page-content h3,
  .jdscarer-page-content h4,
  .jdscarer-page-content h5,
  .jdscarer-page-content h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.875rem;
  }
  
  .jdscarer-page-content h1 { font-size: 2.25rem; }
  .jdscarer-page-content h2 { font-size: 1.75rem; margin-top: 2.75rem; }
  .jdscarer-page-content h3 { font-size: 1.375rem; margin-top: 2.25rem; }
  .jdscarer-page-content h4 { font-size: 1.125rem; margin-top: 1.75rem; }
  .jdscarer-page-content h5 { font-size: 1rem;     margin-top: 1.5rem; }
  .jdscarer-page-content h6 { font-size: 0.9375rem; margin-top: 1.5rem; color: var(--text-2); font-weight: 600; }
  
  .jdscarer-page-content h2:first-child,
  .jdscarer-page-content h3:first-child,
  .jdscarer-page-content h1:first-child { margin-top: 0; }
  
  /* H2 — clean left border accent, no gradient */
  .jdscarer-page-content h2 {
    padding-left: 0.875rem;
    border-left: 3px solid var(--brand);
  }
  
  /* Paragraph */
  .jdscarer-page-content p {
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1.25rem;
  }
  .jdscarer-page-content p:last-child { margin-bottom: 0; }
  
  /* Links */
  .jdscarer-page-content a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--ease), color var(--ease);
  }
  .jdscarer-page-content a:hover {
    color: var(--brand-dark);
    text-decoration-color: currentColor;
  }
  
  /* Inline */
  .jdscarer-page-content strong { color: var(--text-1); font-weight: 650; }
  .jdscarer-page-content em { font-style: italic; }
  
  /* Inline code */
  .jdscarer-page-content code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.85em;
    background: #f3f4f6;
    color: var(--brand-dark);
    padding: 0.15em 0.45em;
    border-radius: 0.25rem;
    border: 1px solid var(--border);
  }
  
  /* HR */
  .jdscarer-page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
  }
  
  /* =========================================================================
     LISTS
     ========================================================================= */
  
  /* ── Unordered — SVG tick via background-image ── */
  .jdscarer-page-content ul,
  .jdscarer-page-content ul.wp-block-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
  }
  
  .jdscarer-page-content ul li,
  .jdscarer-page-content ul.wp-block-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.55rem;
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.7;
    /* Tick icon as inline SVG data URI */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7.5' fill='%23813A97' fill-opacity='0.1' stroke='%23813A97' stroke-opacity='0.25' stroke-width='0.5'/%3E%3Cpath d='M5 8.5l2 2 4-4' stroke='%23813A97' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0 0.275em;
    background-size: 1.1rem 1.1rem;
  }
  
  /* Nested ul */
  .jdscarer-page-content ul li ul,
  .jdscarer-page-content ul.wp-block-list li ul {
    margin: 0.4rem 0 0.25rem;
  }
  .jdscarer-page-content ul li ul li {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M5 8.5l2 2 4-4' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color: var(--text-3);
    font-size: 0.9375rem;
  }
  
  /* ── Ordered — clean counter ── */
  .jdscarer-page-content ol,
  .jdscarer-page-content ol.wp-block-list {
    list-style: none;
    counter-reset: jds-ol;
    padding: 0;
    margin: 1.25rem 0;
  }
  
  .jdscarer-page-content ol li,
  .jdscarer-page-content ol.wp-block-list li {
    counter-increment: jds-ol;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
    color: var(--text-2);
    line-height: 1.7;
  }
  
  .jdscarer-page-content ol li::before {
    content: counter(jds-ol);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
  }
  
  /* =========================================================================
     BLOCKQUOTE / WP QUOTE
     ========================================================================= */
  .jdscarer-page-content blockquote,
  .jdscarer-page-content .wp-block-quote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--brand);
    background: var(--surface-2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: none;
  }
  
  .jdscarer-page-content blockquote p,
  .jdscarer-page-content .wp-block-quote p {
    font-size: 1.0625rem;
    color: var(--text-1);
    line-height: 1.75;
    font-style: normal;
    margin-bottom: 0.625rem;
  }
  .jdscarer-page-content blockquote p:last-of-type,
  .jdscarer-page-content .wp-block-quote p:last-of-type { margin-bottom: 0; }
  
  .jdscarer-page-content blockquote cite,
  .jdscarer-page-content .wp-block-quote cite {
    display: block;
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.03em;
  }
  
  /* =========================================================================
     PULLQUOTE
     ========================================================================= */
  .jdscarer-page-content .wp-block-pullquote {
    margin: 2.5rem 0;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
  }
  
  .jdscarer-page-content .wp-block-pullquote blockquote {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  
  .jdscarer-page-content .wp-block-pullquote p {
    font-size: 1.375rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--text-1);
    line-height: 1.55;
    letter-spacing: -0.01em;
    margin: 0;
  }
  
  .jdscarer-page-content .wp-block-pullquote cite {
    display: inline-block;
    margin-top: 1.125rem;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  /* =========================================================================
     CODE BLOCK
     ========================================================================= */
  .jdscarer-page-content .wp-block-code {
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #1f2937;
    box-shadow: var(--shadow-sm);
  }
  
  /* Window chrome dots */
  .jdscarer-page-content .wp-block-code::before {
    content: '';
    display: flex;
    height: 2.25rem;
    background: #1f2937;
    background-image:
      radial-gradient(circle, #ef4444 5px, transparent 5px),
      radial-gradient(circle, #f59e0b 5px, transparent 5px),
      radial-gradient(circle, #22c55e 5px, transparent 5px);
    background-size: 10px 10px;
    background-position: 14px center, 30px center, 46px center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #374151;
  }
  
  .jdscarer-page-content .wp-block-code code {
    display: block;
    background: #111827;
    color: #d1d5db;
    padding: 1.375rem 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.75;
    overflow-x: auto;
    border-radius: 0;
    background-color: #111827;
    border: none;
  }
  
  /* =========================================================================
     PREFORMATTED / VERSE
     ========================================================================= */
  .jdscarer-page-content .wp-block-preformatted,
  .jdscarer-page-content .wp-block-verse {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    white-space: pre-wrap;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-1);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    overflow-x: auto;
  }
  
  /* =========================================================================
   SEPARATOR BLOCK 
   ========================================================================= */

/* Default — gradient fade line with centre diamond */
.jdscarer-page-content .wp-block-separator:not(.is-style-wide):not(.is-style-dots),
.jdscarer-page-content hr {
  border: none;
  height: 1px;
  margin: 2.75rem auto;
  width: 50rem;
  max-width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    var(--brand) 40%,
    var(--brand) 60%,
    transparent
  );
  position: relative;
  overflow: visible;
}

/* Diamond centrepiece */
.jdscarer-page-content .wp-block-separator:not(.is-style-wide):not(.is-style-dots)::after,
.jdscarer-page-content hr::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--brand);
  border-radius: 1px;
}

/* Wide — two-tone gradient full-width divider */
.jdscarer-page-content .wp-block-separator.is-style-wide {
  border: none;
  height: 2px;
  margin: 2.75rem 0;
  max-width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    var(--brand) 20%,
    var(--brand-dark) 50%,
    var(--brand) 80%,
    transparent
  );
  opacity: 0.5;
  border-radius: 999px;
}

/* Dots — styled brand-coloured dots with glow */
.jdscarer-page-content .wp-block-separator.is-style-dots {
  border: none;
  background: none !important;
  height: auto;
  text-align: center;
  margin: 2.75rem 0;
  max-width: 100%;
  padding: 0;
  position: relative;
  overflow: visible;
}

.jdscarer-page-content .wp-block-separator.is-style-dots::before {
  content: '';
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  width: 10rem;
  /* Three dots via radial gradients */
  height: 0.5rem;
  background:
    radial-gradient(circle, var(--brand) 3.5px, transparent 3.5px) 0% 50%,
    radial-gradient(circle, var(--brand) 4.5px, transparent 4.5px) 50% 50%,
    radial-gradient(circle, var(--brand) 3.5px, transparent 3.5px) 100% 50%;
  background-repeat: no-repeat;
  background-size: 33.3% 100%;
  filter: drop-shadow(0 0 4px rgba(129, 58, 151, 0.45));
}
  
  /* =========================================================================
     IMAGES
     ========================================================================= */
  .jdscarer-page-content img {
    max-width: 100%;
    height: auto;
    #border-radius: var(--radius-md);
    #box-shadow: var(--shadow-sm);
    display: block;
  }
  
  .jdscarer-page-content .wp-block-image { margin: 2rem 0; }
  .jdscarer-page-content .wp-block-image img { width: 100%; }
  .jdscarer-page-content .wp-block-image figcaption {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-3);
    text-align: center;
    font-style: italic;
  }
  
  /* Alignment */
  .jdscarer-page-content .alignleft  { float: left;  margin: 0.25rem 1.75rem 1rem 0; }
  .jdscarer-page-content .alignright { float: right; margin: 0.25rem 0 1rem 1.75rem; }
  .jdscarer-page-content .aligncenter { display: block; margin: 0 auto; }
  .jdscarer-page-content::after { content: ''; display: table; clear: both; }
  
  /* =========================================================================
     GALLERY
     ========================================================================= */
  .jdscarer-page-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
  }
  
  .jdscarer-page-content .wp-block-gallery .wp-block-image {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
  }
  
  .jdscarer-page-content .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: opacity var(--ease);
  }
  .jdscarer-page-content .wp-block-gallery .wp-block-image img:hover { opacity: 0.88; }
  
  .jdscarer-page-content .wp-block-gallery figcaption {
    padding: 0.5rem 0.625rem;
    font-size: 0.78rem;
    color: var(--text-3);
    font-style: italic;
  }
  
  /* =========================================================================
     TABLE
     ========================================================================= */
  .jdscarer-page-content .wp-block-table { margin: 2rem 0; overflow-x: auto; }
  
  .jdscarer-page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  
  .jdscarer-page-content th {
    background: var(--surface-2);
    color: var(--text-1);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.875rem 1.125rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
  
  .jdscarer-page-content td {
    padding: 0.875rem 1.125rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
  }
  .jdscarer-page-content tr:last-child td { border-bottom: none; }
  .jdscarer-page-content tbody tr:hover td { background: #fafafa; }
  
  /* =========================================================================
     BUTTONS
     ========================================================================= */
  .jdscarer-page-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0;
  }
  
  .jdscarer-page-content .wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.625rem;
    background: var(--brand);
    color: #fff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    text-decoration: none;
    transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
    box-shadow: var(--shadow-xs);
    letter-spacing: 0.01em;
  }
  .jdscarer-page-content .wp-block-button .wp-block-button__link:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
  }
  
  /* Outline */
  .jdscarer-page-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: var(--brand);
    color: var(--brand) !important;
    box-shadow: none;
  }
  .jdscarer-page-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--brand);
    color: #fff !important;
    transform: translateY(-1px);
  }
  
  /* =========================================================================
     COLUMNS
     ========================================================================= 
  */

.jdscarer-page-content .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 2rem 0;
  align-items: start;
  box-sizing: border-box;
  container-type: inline-size;
}

.jdscarer-page-content .wp-block-column {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* Honour explicit WP width ratios (e.g. style="flex-basis:33.33%") */
.jdscarer-page-content .wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
  max-width: 100%;
}

@media (max-width: 781px) {
  .jdscarer-page-content .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-direction: column;
  }

  .jdscarer-page-content .wp-block-columns:not(.is-not-stacked-on-mobile) .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}

  
  /* =========================================================================
     MEDIA & TEXT
     ========================================================================= */
  .jdscarer-page-content .wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .jdscarer-page-content .wp-block-media-text.has-media-on-the-right {
    direction: rtl;
  }
  .jdscarer-page-content .wp-block-media-text.has-media-on-the-right > * { direction: ltr; }
  .jdscarer-page-content .wp-block-media-text__media { min-height: 260px; }
  .jdscarer-page-content .wp-block-media-text__media img,
  .jdscarer-page-content .wp-block-media-text__media video {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
  .jdscarer-page-content .wp-block-media-text__content {
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
  }
  
  @media (max-width: 600px) {
    .jdscarer-page-content .wp-block-media-text.is-stacked-on-mobile {
      grid-template-columns: 1fr !important;
      direction: ltr;
    }
  }
  
  /* =========================================================================
     COVER
     ========================================================================= */
  .jdscarer-page-content .wp-block-cover {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .jdscarer-page-content .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 640px;
  }
  .jdscarer-page-content .wp-block-cover__inner-container * { color: inherit; }
  
  /* =========================================================================
     FILE DOWNLOAD
     ========================================================================= */
  .jdscarer-page-content .wp-block-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.375rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    margin: 1.375rem 0;
    transition: border-color var(--ease);
  }
  .jdscarer-page-content .wp-block-file:hover { border-color: #c4b5ce; }
  
  .jdscarer-page-content .wp-block-file a:first-of-type {
    font-weight: 600;
    color: var(--text-1);
    font-size: 0.9375rem;
  }
  .jdscarer-page-content .wp-block-file .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.125rem;
    background: var(--brand);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--ease);
    white-space: nowrap;
  }
  .jdscarer-page-content .wp-block-file .wp-block-file__button:hover {
    background: var(--brand-dark);
    text-decoration: none;
  }
  
  /* =========================================================================
     EMBED
     ========================================================================= */
  .jdscarer-page-content .wp-block-embed {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .jdscarer-page-content .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .jdscarer-page-content .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
  .jdscarer-page-content .wp-block-embed figcaption {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-3);
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    text-align: center;
    font-style: italic;
  }
  
  /* =========================================================================
     DETAILS (DISCLOSURE) — Numbered Accordion Style
     =========================================================================
     Each <details> gets a numbered badge (via CSS counter), a title, subtitle,
     and a +/− toggle. Stack details elements directly in HTML for the effect.
     ========================================================================= */
  
  /* Auto-counter wrapper — apply .jds-accordion to a parent div wrapping
     multiple <details> blocks, or use standalone with data-step attribute   */
  .jdscarer-page-content .wp-block-details {
    counter-increment: jds-accordion;
    margin: 0 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
  }
  
  /* Reset counter on first sibling group */
  .jdscarer-page-content .wp-block-details:first-of-type {
    counter-reset: jds-accordion;
    counter-increment: jds-accordion;
  }
  
  .jdscarer-page-content .wp-block-details:hover {
    border-color: #c4b5ce;
    box-shadow: var(--shadow-sm);
  }
  
  .jdscarer-page-content .wp-block-details[open] {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
  }
  
  /* ── Summary row ── */
  .jdscarer-page-content .wp-block-details summary {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: var(--surface);
    transition: background var(--ease);
  }
  .jdscarer-page-content .wp-block-details summary::-webkit-details-marker { display: none; }
  .jdscarer-page-content .wp-block-details summary:hover { background: #fdfcfe; }
  
  /* Number badge — pulls auto counter */
  .jdscarer-page-content .wp-block-details summary::before {
    content: counter(jds-accordion, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
    transition: background var(--ease);
  }
  .jdscarer-page-content .wp-block-details[open] summary::before {
    background: var(--brand-dark);
  }
  
  /* +/− toggle — SVG for consistent alignment */
  .jdscarer-page-content .wp-block-details summary::after {
    content: '';
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af' stroke='%239ca3af' stroke-width='2'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") no-repeat center;
    background-size: 1rem;
    transition: border-color var(--ease), background var(--ease);
  }
  .jdscarer-page-content .wp-block-details[open] summary::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23813A97' stroke='%23813A97' stroke-width='2'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") no-repeat center;
    background-size: 1rem;
    border-color: var(--brand);
  }
  
  /* Title + subtitle text block sitting between badge and toggle */
  .jdscarer-page-content .wp-block-details summary .jds-summary-text,
  .jdscarer-page-content .wp-block-details summary > span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  
  /* When WP renders plain text in summary, treat first line as title */
  .jdscarer-page-content .wp-block-details summary {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-1);
    line-height: 1.3;
    letter-spacing: -0.01em;
  }
  
  /* Subtitle — editors add a <small> or <span class="subtitle"> inside summary */
  .jdscarer-page-content .wp-block-details summary small,
  .jdscarer-page-content .wp-block-details summary .subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-3);
    letter-spacing: 0;
    line-height: 1.4;
    margin-top: 0.2rem;
  }
  
  /* ── Open state: summary border ── */
  .jdscarer-page-content .wp-block-details[open] summary {
    border-bottom: 1px solid var(--border);
    color: var(--text-1);
  }
  
  /* ── Content panel ── */
  .jdscarer-page-content .wp-block-details > *:not(summary) {
    padding: 1rem 1.125rem 1.125rem calc(2.75rem + 0.875rem + 1.125rem);
    /* Indent content to align with title (badge width + gap + left padding) */
    background: var(--surface);
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.8;
  }
  
  /* =========================================================================
     GROUP BLOCK
     ========================================================================= */
  .jdscarer-page-content .wp-block-group { margin: 2rem 0; }
  .jdscarer-page-content .wp-block-group.has-background {
    padding: 2rem 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }
  
  /* =========================================================================
     SPACER / ALIGNMENT HELPERS
     ========================================================================= */
  /* =========================================================================
     SPACER
     ========================================================================= */
  .jdscarer-page-content .wp-block-spacer {
    clear: both;
  }
  .jdscarer-page-content .has-text-align-left    { text-align: left; }
  .jdscarer-page-content .has-text-align-center  { text-align: center; }
  .jdscarer-page-content .has-text-align-right   { text-align: right; }
  .jdscarer-page-content .has-text-align-justify { text-align: justify; }
  .jdscarer-page-content .alignwide  { max-width: 75rem; margin-left: auto; margin-right: auto; }
  .jdscarer-page-content .alignfull  { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
  
  /* =========================================================================
     ACCORDION BLOCK (plugin) — same numbered style as Details above
     ========================================================================= */
  .jdscarer-page-content .wp-block-accordion {
    margin: 2rem 0;
    counter-reset: jds-accordion;
  }
  
  .jdscarer-page-content .wp-block-accordion-item {
    counter-increment: jds-accordion;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    background: var(--surface);
    overflow: hidden;
    transition: border-color var(--ease), box-shadow var(--ease);
  }
  .jdscarer-page-content .wp-block-accordion-item:hover {
    border-color: #c4b5ce;
    box-shadow: var(--shadow-sm);
  }
  
  /* Hover covers entire header — applied to heading wrapper */
  .jdscarer-page-content .wp-block-accordion-heading {
    margin: 0;
    width: 100%;
    background: var(--surface);
    transition: background var(--ease);
  }
  .jdscarer-page-content .wp-block-accordion-heading:hover {
    background: #fdfcfe;
  }
  
  .jdscarer-page-content .wp-block-accordion-heading__toggle {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1.125rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 0.875rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-1);
    min-height: 0;
    transition: background var(--ease);
  }
  /* Hide the built-in icon — we use our styled ::after on the right instead */
  .jdscarer-page-content .wp-block-accordion-heading__toggle .wp-block-accordion-heading__toggle-icon {
    display: none !important;
  }
  .jdscarer-page-content .wp-block-accordion-heading__toggle::before {
    content: counter(jds-accordion, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  /* +/− icon on the right — our styled circular design */
  .jdscarer-page-content .wp-block-accordion-heading__toggle::after {
    content: '';
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af' stroke='%239ca3af' stroke-width='2'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") no-repeat center;
    background-size: 1rem;
    transition: border-color var(--ease), background var(--ease);
    grid-column: 3;
    align-self: center;
  }
  .jdscarer-page-content .wp-block-accordion-heading__toggle[aria-expanded="true"]::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23813A97' stroke='%23813A97' stroke-width='2'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") no-repeat center;
    background-size: 1rem;
    border-color: var(--brand);
  }
  
  .jdscarer-page-content .wp-block-accordion-panel {
    padding: 1rem 1.125rem 1.125rem calc(2.75rem + 0.875rem + 1.125rem);
    background: var(--surface);
    color: var(--text-2);
    border-top: 1px solid var(--border);
    line-height: 1.8;
    font-size: 0.9375rem;
  }

  /* =========================================================================
   CONTACT FORM 7 — Premium Modern Style (No Floating Labels)
   ========================================================================= 
   */

.wpcf7 {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ── Field Wrapper ── */
.wpcf7 .cf7-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.375rem;
}

/* ── Label ── */
.wpcf7 .cf7-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.01em;
}

/* ── Required asterisk ── */
.wpcf7 .cf7-field label .required {
  color: var(--brand);
  margin-left: 0.2rem;
}

/* ── Input hint / helper text ── */
.wpcf7 .cf7-field .cf7-hint {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.3rem;
  padding-left: 0.25rem;
}

/* =========================================================================
   CORE INPUT / TEXTAREA / SELECT
========================================================================= */
.wpcf7 .cf7-field input[type="text"],
.wpcf7 .cf7-field input[type="email"],
.wpcf7 .cf7-field input[type="tel"],
.wpcf7 .cf7-field input[type="url"],
.wpcf7 .cf7-field input[type="number"],
.wpcf7 .cf7-field input[type="date"],
.wpcf7 .cf7-field input[type="password"],
.wpcf7 .cf7-field input[type="search"],
.wpcf7 .cf7-field select,
.wpcf7 .cf7-field textarea {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--text-1);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  box-sizing: border-box;
  box-shadow: var(--shadow-xs);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color   0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-left-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow     0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Placeholder */
.wpcf7 .cf7-field input::placeholder,
.wpcf7 .cf7-field textarea::placeholder {
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.9rem;
}

/* ── Hover — subtle lift ── */
.wpcf7 .cf7-field input[type="text"]:hover,
.wpcf7 .cf7-field input[type="email"]:hover,
.wpcf7 .cf7-field input[type="tel"]:hover,
.wpcf7 .cf7-field input[type="url"]:hover,
.wpcf7 .cf7-field input[type="number"]:hover,
.wpcf7 .cf7-field input[type="date"]:hover,
.wpcf7 .cf7-field input[type="password"]:hover,
.wpcf7 .cf7-field input[type="search"]:hover,
.wpcf7 .cf7-field select:hover,
.wpcf7 .cf7-field textarea:hover {
  border-color: #c4b5ce;
  box-shadow: var(--shadow-sm);
}

/* ── Focus — brand accent bar + glow ── */
.wpcf7 .cf7-field input[type="text"]:focus,
.wpcf7 .cf7-field input[type="email"]:focus,
.wpcf7 .cf7-field input[type="tel"]:focus,
.wpcf7 .cf7-field input[type="url"]:focus,
.wpcf7 .cf7-field input[type="number"]:focus,
.wpcf7 .cf7-field input[type="date"]:focus,
.wpcf7 .cf7-field input[type="password"]:focus,
.wpcf7 .cf7-field input[type="search"]:focus,
.wpcf7 .cf7-field select:focus,
.wpcf7 .cf7-field textarea:focus {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: #fefcff;
  box-shadow:
    0 0 0 3.5px rgba(129, 58, 151, 0.1),
    0 2px 8px rgba(129, 58, 151, 0.08),
    var(--shadow-xs);
}

/* ── Textarea ── */
.wpcf7 .cf7-field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.75;
  padding-top: 0.875rem;
}

/* ── Select — custom chevron ── */
.wpcf7 .cf7-field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

/* =========================================================================
   CHARACTER COUNTER (optional — add a <span class="cf7-counter"> via JS)
   ========================================================================= */
.wpcf7 .cf7-field .cf7-counter {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.wpcf7 .cf7-field .cf7-counter.near-limit { color: #f59e0b; }
.wpcf7 .cf7-field .cf7-counter.at-limit    { color: #ef4444; font-weight: 600; }

/* =========================================================================
   CHECKBOX & RADIO — Custom Styled
   ========================================================================= */
.wpcf7 .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 1rem 0.5rem 0;
  cursor: pointer;
}

/* Hide native */
.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom box / circle */
.wpcf7 .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.wpcf7 .wpcf7-list-item-label::before {
  content: '';
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: 0.25rem;           /* Square for checkbox */
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.18s ease,
    background   0.18s ease,
    box-shadow   0.18s ease;
}

/* Radio — circular */
.wpcf7 .wpcf7-list-item input[type="radio"] ~ .wpcf7-list-item-label::before {
  border-radius: 50%;
}

/* Checked state */
.wpcf7 .wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before {
  background: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  box-shadow: 0 0 0 3px rgba(129, 58, 151, 0.15);
}

.wpcf7 .wpcf7-list-item input[type="radio"]:checked ~ .wpcf7-list-item-label::before {
  border-color: var(--brand);
  background: radial-gradient(circle, var(--brand) 38%, transparent 40%), var(--surface);
  box-shadow: 0 0 0 3px rgba(129, 58, 151, 0.15);
}

/* =========================================================================
   FILE INPUT
   ========================================================================= */
.wpcf7 .cf7-field input[type="file"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wpcf7 .cf7-field input[type="file"]:hover {
  border-color: #c4b5ce;
  background: #fdfcff;
}

/* =========================================================================
   SUBMIT BUTTON
   ========================================================================= */
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(129, 58, 151, 0.35),
    0 1px 4px  rgba(129, 58, 151, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition:
    transform   0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow  0.2s cubic-bezier(0.4, 0, 0.2, 1),
    filter      0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Sheen sweep on hover */
.wpcf7 input[type="submit"]::before,
.wpcf7 button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.wpcf7 input[type="submit"]:hover::before,
.wpcf7 button[type="submit"]:hover::before {
  left: 130%;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(129, 58, 151, 0.4),
    0 3px 8px  rgba(129, 58, 151, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.15);
  filter: brightness(1.04);
}

.wpcf7 input[type="submit"]:active,
.wpcf7 button[type="submit"]:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 8px rgba(129, 58, 151, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  filter: brightness(0.97);
}

/* =========================================================================
   VALIDATION STATES
   ========================================================================= */

/* Invalid field */
.wpcf7 .cf7-field .wpcf7-not-valid {
  border-color: #ef4444 !important;
  border-left-color: #ef4444 !important;
  background: #fff8f8 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.1) !important;
}

/* Error label */
.wpcf7 .cf7-field:has(.wpcf7-not-valid) label {
  color: #ef4444;
}

/* Validation tip */
.wpcf7 .wpcf7-not-valid-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
}

/* Exclamation icon before tip text */
.wpcf7 .wpcf7-not-valid-tip::before {
  content: '';
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Ccircle cx='12' cy='16' r='0.5' fill='%23b91c1c'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* ── Response output ── */
.wpcf7 .wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1.5px solid;
  border-left-width: 4px;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: #f0fdf4;
  border-color: #86efac;
  border-left-color: #22c55e;
  color: #15803d;
}

.wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output.wpcf7-spam-blocked {
  background: #fef2f2;
  border-color: #fca5a5;
  border-left-color: #ef4444;
  color: #b91c1c;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
  .wpcf7 input[type="submit"],
  .wpcf7 button[type="submit"] {
    width: 100%;
  }
}


  /* =========================================================================
     RESPONSIVE
     ========================================================================= */
  @media (max-width: 640px) {
    .jdscarer-page-content h1 { font-size: 1.875rem; }
    .jdscarer-page-content h2 { font-size: 1.5rem; }
    .jdscarer-page-content h3 { font-size: 1.25rem; }
    .jdscarer-page-content .wp-block-pullquote p { font-size: 1.15rem; }
    .jdscarer-page-content .wp-block-media-text { grid-template-columns: 1fr; }
  }
  
  /* =========================================================================
     PRINT
     ========================================================================= */
  @media print {
    .jdscarer-page-content img,
    .jdscarer-page-content .wp-block-code { box-shadow: none; }
    .jdscarer-page-content a { text-decoration: underline; }
    .jdscarer-page-content .wp-block-button .wp-block-button__link {
      background: none !important;
      color: var(--brand) !important;
      border: 1px solid var(--brand);
      box-shadow: none;
    }
  }