/*
Theme Name: SKB Theme
Theme URI: https://skblawfirm.co.uk
Author: SKB Law / Unbranded Digital
Author URI: https://unbranded.digital
Description: Bespoke theme for SKB Law — family law expertise. Built with ACF flexible content components.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skb_theme
*/

/* =====================================================================
   SKB Law — Design System tokens
   ===================================================================== */
:root {
    /* Brand purples */
    --c-purple-deep: #19003f;
    --c-purple-700: #3f0082;
    --c-purple-600: #6c2dc9;
    --c-purple-500: #8200db;
    --c-purple-400: #9810fa;
    --c-purple-50: #f3eeff;

    /* Neutrals */
    --c-ink: #0d071a;
    --c-text: #4a5565;
    --c-text-muted: #6a7282;
    --c-text-subtle: #99a1af;
    --c-text-strong: #364153;
    --c-border: #dedde1;
    --c-bg: #ffffff;
    --c-bg-soft: #f2f1f3;

    /* Status */
    --c-green-50: #e6f6ec;
    --c-green-700: #1f7a3a;
    --c-rose-50: #fdeaf2;
    --c-rose-700: #b1276b;

    /* Type */
    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container-max: 1440px;
    --container-pad: 24px;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 180ms;
    --t-base: 280ms;
    --t-slow: 480ms;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(13, 7, 26, 0.06), 0 1px 2px rgba(13, 7, 26, 0.04);
    --shadow-md: 0 8px 24px rgba(13, 7, 26, 0.08), 0 2px 6px rgba(13, 7, 26, 0.04);
    --shadow-lg: 0 18px 48px rgba(63, 0, 130, 0.18);
}

@media (min-width: 768px) {
    :root { --container-pad: 40px; }
}

@media (min-width: 1200px) {
    :root { --container-pad: 64px; }
}

/* -------- Reset / base -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* -------- Typography helpers -------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11.2px;
    letter-spacing: 1.34px;
    text-transform: uppercase;
    color: var(--c-purple-600);
}

.eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--c-purple-600);
}

.eyebrow.is-light { color: rgba(255, 255, 255, 0.5); }
.eyebrow.is-light::before { background: var(--c-purple-600); }
.eyebrow.is-center { justify-content: center; }

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: -1.08px;
    line-height: 1.1;
    font-size: clamp(28px, 4vw, 36px);
    margin-top: 16px;
    margin-bottom: 16px;
}

.section-title.is-light { color: #fff; }
.section-title .accent { color: var(--c-purple-600); }
.section-title .soft { font-weight: 600; }

.section-lede {
    font-size: 16px;
    line-height: 1.5;
    color: var(--c-text-muted);
    margin-top: 16px;
    max-width: 620px;
}

.section-lede.is-center { margin-inline: auto; text-align: center; }



/* -------- Buttons -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    transition: transform var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
    will-change: transform;
}

.btn--lg { padding: 16px 28px; font-size: 16px; }

.btn--primary { background: var(--c-purple-700); color: #fff; }
.btn--primary:hover {
    background: var(--c-purple-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: transparent;
    color: var(--c-purple-700);
    border: 1px solid var(--c-purple-700);
}
.btn--ghost:hover {
    background: var(--c-purple-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}
.btn--bright {
    background:  var(--c-purple-500);
    border: 1px solid var(--c-purple-500);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn--bright:hover {
    background: var(--c-purple-50);
    border: 1px solid #fff;
    color: var(--c-ink);
    transform: translateY(-2px);
}
.btn--inverse { background: #fff; color: var(--c-purple-500); }
.btn--inverse:hover {
    background: var(--c-purple-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn .icon { width: 16px; height: 16px; flex: none; }

/* -------- Tag / pill -------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    background: var(--c-purple-50);
    color: var(--c-purple-600);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.33;
}

/* -------- Card base -------- */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 28px;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
}

a.card,
.card.is-link { cursor: pointer; }

a.card:hover,
.card.is-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-purple-600);
}

/* -------- Section -------- */
.section { padding-block: 96px; position: relative; }

@media (max-width: 767px) {
    .section { padding-block: 64px; }
}

.section--soft  { background: var(--c-purple-50); }
.section--muted { background: var(--c-bg-soft); }
.section--dark  { background: var(--c-purple-deep); color: rgba(255, 255, 255, 0.85); }

.section-header { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.section-header.is-center { align-items: center; text-align: center; }
.section-header.is-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.section-header.is-split .header-text { max-width: 560px; }

/* -------- Card link arrow -------- */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-purple-500);
    transition: gap var(--t-fast) var(--ease-out);
}

.card-link svg { width: 16px; height: 14px; transition: transform var(--t-fast) var(--ease-out); }

a.card:hover .card-link svg,
.card.is-link:hover .card-link svg { transform: translateX(4px); }

/* -------- Reveal animations -------- */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--t-slow) var(--ease-out),
                transform var(--t-slow) var(--ease-out);
}

.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

/* -------- Skip link -------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--c-purple-700);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }


/* -------- General -------- */

.mobile-only{
	display:none;
}

@media screen and (max-width:859px){

	.mobile-only{
		display:block;
	}
	
}


.final-cta__panel, .cta-flat, .page--hub .final-cta, .final-cta.section{
	background: #250459!important;
}

.page--hub .final-cta{
	padding-top:0!important;
}

.split-info__grid header{
	margin-bottom:15px;
}

.split-info__grid .split-info__col p{
	margin-bottom:15px;
}

.split-info__grid {
   align-items: start;
}


.newsletter-signup__form{
	margin-top:15px;
}

.newsletter-signup__form form#gform_11 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: end;
}

.newsletter-signup__form form#gform_11 .gform-body.gform_body {
    width: calc(100% - 130px);
    margin-right: 15px;
}

.newsletter-signup__form form#gform_11 input#gform_submit_button_11 {
    margin-bottom: 0;
}


/* -------- Gravity Forms -------- */

p.gform_required_legend{
	display: none;
}
.gform_wrapper.gravity-theme .gfield_required {
    color: var(--c-purple-400)!important;
}

  .gform_wrapper {                                                                 
    margin: 0;                                              
    padding: 0;
  }
                                                                                                             
  .gform_wrapper .gform_body {
    padding: 0;                                                                                              
  }                                                         

  .gform_wrapper label.gfield_label,                                               
  .gform_wrapper .gfield .gfield_label {
    font-family: 'Inter', sans-serif;                                                                        
    font-weight: 700;
    font-size: 0.9em;
    line-height: 18px;                                                                                       
    color: #3d304c;                                         
    margin-bottom: 8px;                                                                                      
  }
                                                                                                             
  .gform_wrapper input[type="text"],
  .gform_wrapper input[type="email"],
  .gform_wrapper input[type="tel"],                                                
  .gform_wrapper select,
  .gform_wrapper textarea {                                                        
    background: #fbf8ff;                                                                                     
    border: 1px solid #eee6f7;
    border-radius: 24px!important;                                                                                     
    padding: 12px 14px!important;                                     
    font-family: 'Inter', sans-serif;
    font-size: 14px;                                                                                         
    color: #171022;                                        
    transition: border-color 0.2s;                                                                           
    width: 100%;                                                                                             
    box-sizing: border-box;                                                                                  
  }                                                                                                          
                                                            
  .gform_wrapper input[type="text"]:focus,
  .gform_wrapper input[type="email"]:focus,
  .gform_wrapper input[type="tel"]:focus,                                          
  .gform_wrapper select:focus,
  .gform_wrapper textarea:focus {                                                  
    border-color: #6c2dc9;                                                                                   
    outline: none;
  }                                                                                                          
                                                            
  .gform_wrapper textarea {
    min-height: 152px;
    resize: vertical;                                                                                        
  }
                                                                                                             
  .gform_wrapper select {         
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23171022' stroke-width='2' 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 16px center;                 
    background-size: 12px;
    padding-right: 40px;                                                                                     
  }
                                                                                                             
  .gform_wrapper .gfield {        
    margin-bottom: 16px;
  }

  .gform_wrapper .gform_fields {                                                   
    display: grid;
    grid-template-columns: 1fr 1fr;                                                                          
    gap: 0 16px;                                            
  }                                                                                                          
  
  .gform_wrapper .gfield--width-full,                                              
  .gform_wrapper .gfield.gfield--width-full {
    grid-column: 1 / -1;                                                                                     
  }
                                                                                                             
  .gform_wrapper .gfield_consent_description {                                     
    display: none;
  }                                                                                                          
                                                            
  .gform_wrapper .gfield_consent_label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;                                                                                        
    font-size: 14px;
    line-height: 18px;                                                                                       
    color: #6f687b;                                         
  }                                                                                                          
  
  .gform_wrapper .gform_footer,                                                    
  .gform_wrapper .gform_page_footer {
    display: flex;                                                                                           
    align-items: center;
    justify-content: flex-end;                                                                               
    gap: 16px;                                              
    margin-top: 8px;
  }                                                                                                          
  
  .gform_wrapper input[type="submit"],                                             
  .gform_wrapper .gform_button,
  .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button,
  .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button{  
    background: #3f0082;                                                                                     
    color: #fff;
    font-family: 'DM Sans', sans-serif;                                                                      
    font-weight: 700;                                                                                        
    font-size: 14px;
    line-height: 21px;                                                                                       
    border: none;                                           
    border-radius: 9999px;
    padding: 12px 28px;
    cursor: pointer;                                                                                         
    transition: background 0.2s;
  }                 

	.gform_wrapper.gravity-theme .gform_previous_button.button, 
	.gform_wrapper.gravity-theme .gform_save_link.button {
		background-color: #f6eeff!important;    
	}
                                                            
  .gform_wrapper input[type="submit"]:hover,
  .gform_wrapper .gform_button:hover {
    background: #2d005e;                                                                              
    transition: background 0.2s;                                                                                   
  }

	.gform_wrapper button.gpnf-add-entry {
		background: #4CAF50;
		padding: 10px 16px;
		border-radius: 24px;
		color: #fff;
	}



/* -------- Quick Exit Button -------- */
  #quick-exit-button {
      position: fixed;
      right: 35px;
      bottom: 35px;
      z-index: 999999;
      background: #d10000;
      color: #ffffff;
      padding: 14px 18px;
      border-radius: 999px;
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
      box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    }

    #quick-exit-button:hover,
    #quick-exit-button:focus {
      background: #a80000;
      color: #ffffff;
      outline-offset: 3px;
    }

    @media (max-width: 600px) {
      #quick-exit-button {
        right: 12px;
        bottom: 12px;
        font-size: 15px;
        padding: 13px 16px;
      }
    }




/* =====================================================================
   Case Stories archive — hero with stats + anonymisation notice,
   sticky filter chips, featured story with outcome callout, two-column
   stories grid, "Recognise your situation" section
   ===================================================================== */

/* ---------- Case hero ---------- */
.case-hero {
    background: var(--c-purple-deep);
    color: #fff;
    padding-block: 80px 96px;
    overflow: hidden;
}

.case-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.case-hero__content {
    max-width: 720px;
}

.case-hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 60px);
    line-height: 1;
    letter-spacing: -1.8px;
    color: #fff;
    margin-top: 24px;
}

.case-hero__lede {
    font-size: 18px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 24px;
    max-width: 600px;
}

.case-hero__notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.case-hero__notice svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: rgba(255, 255, 255, 0.6);
}

.case-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-self: start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-stat {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 24px;
    text-align: center;
    transition: background var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
}

.case-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.case-stat__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.48px;
    color: #fff;
}

.case-stat__value--sm {
    font-size: 24px;
}

.case-stat__label {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

@media (min-width: 768px) {
    .case-hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .case-hero__inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 64px;
    }

    .case-hero__stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .case-hero {
        padding-block: 56px 64px;
    }
}

/* ---------- Filter chips (sticky) ---------- */
.stories-filter-bar {
    position: sticky;
    top: 65px;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding-block: 24px;
}

.stories-filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.stories-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: var(--c-purple-50);
    color: var(--c-purple-700);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
}

.stories-filter-chip:hover {
    background: #e8defc;
    transform: translateY(-1px);
}

.stories-filter-chip.is-active {
    background: var(--c-purple-700);
    border-color: var(--c-purple-700);
    color: #fff;
}

.stories-filter-chip.is-active:hover {
    background: var(--c-purple-500);
    border-color: var(--c-purple-500);
    color: #fff;
}

@media (max-width: 859px) {
    .stories-filter-bar {
        top: 0;
    }
}

/* ---------- Featured case ---------- */
.featured-section {
    background: var(--c-purple-50);
    padding-block: 64px 80px;
}

.featured-section__inner {
    max-width: 960px;
    margin-inline: auto;
}

.story-featured {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    margin-top: 28px;
    cursor: pointer;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}

.story-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.story-featured__icon {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #19003f 0%, #3f0082 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    text-align: center;
}

.story-featured__icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: transform var(--t-base) var(--ease-out);
}

.story-featured:hover .story-featured__icon-circle {
    transform: scale(1.05);
}

.story-featured__icon-circle svg {
    width: 36px;
    height: 36px;
}

.story-featured__icon-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.33;
    letter-spacing: -0.48px;
    color: #fff;
    margin-top: 8px;
}

.story-featured__icon-sub {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

.story-featured__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.story-featured__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-featured__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 2.6vw, 25.6px);
    line-height: 1.25;
    letter-spacing: -0.512px;
    color: var(--c-ink);
    margin-top: 16px;
}

.story-featured__copy {
    font-size: 15.2px;
    line-height: 1.65;
    color: var(--c-text);
    margin-top: 16px;
    max-width: 56ch;
}

.outcome-callout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding: 16px 16px 16px 18px;
    background: var(--c-purple-50);
    border-left: 3px solid var(--c-purple-700);
    border-radius: 12px;
    width: 100%;
}

.outcome-callout__label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--c-purple-700);
}

.outcome-callout__copy {
    font-size: 14.4px;
    line-height: 1.6;
    color: var(--c-ink);
}

.story-featured__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.story-featured__actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.article-card__media::after {
    background: #3f0082!important;
	    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.45;
}

.btn--soft {
    background: var(--c-purple-50);
    color: var(--c-purple-700);
}

.btn--soft:hover {
    background: #e8defc;
    transform: translateY(-2px);
}

@media (min-width: 860px) {
    .story-featured {
        flex-direction: row;
    }

    .story-featured__icon {
        flex: 0 0 42%;
        aspect-ratio: auto;
    }

    .story-featured__body {
        padding: 40px;
        flex: 1;
        justify-content: center;
    }
}

/* ---------- Category badges + tag pills ---------- */
.cat-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.1px;
}

.cat-badge--children {
    background: #eff6ff;
    color: #1d4ed8;
}

.cat-badge--divorce {
    background: #f5f3ff;
    color: #6d28d9;
}

.cat-badge--financial {
    background: #ecfdf5;
    color: #065f46;
}

.cat-badge--mediation {
    background: #f0fdf4;
    color: #166534;
}

.cat-badge--legacy {
    background: #fff7ed;
    color: #9a3412;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    background: var(--c-purple-50);
    color: var(--c-purple-700);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 12px;
    line-height: 1.35;
}

/* ---------- Stories grid ---------- */
.stories-section {
    background: #fff;
    padding-block: 80px 96px;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(30, 11, 75, 0.06);
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
    height: 100%;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-purple-600);
}

.story-card__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 0 24px;
}

.story-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--c-purple-700);
    color: #fff;
    flex: none;
    transition: transform var(--t-fast) var(--ease-out);
}

.story-card:hover .story-card__icon {
    transform: scale(1.05);
}

.story-card__icon svg {
    width: 22px;
    height: 22px;
}

.story-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 24px 24px;
}

.story-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16.8px;
    line-height: 1.35;
    letter-spacing: -0.168px;
    color: var(--c-ink);
}

.story-card__copy {
    font-size: 14.4px;
    line-height: 1.65;
    color: var(--c-text);
    margin-top: 16px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.story-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--c-purple-50);
    color: var(--c-purple-700);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out);
}

.story-card__cta svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t-fast) var(--ease-out);
}

.story-card:hover .story-card__cta {
    background: #e8defc;
    color: var(--c-purple-700);
}

.story-card:hover .story-card__cta svg {
    transform: translateX(3px);
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Hide items filtered out by the chip bar */
.stories-grid > li.is-hidden {
    display: none;
}

/* ---------- Recognise section ---------- */
.recognise-section {
    background: var(--c-purple-50);
    border-top: 1px solid var(--c-border);
    padding-block: 72px;
    text-align: center;
}

.recognise-section__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: var(--c-purple-700);
    color: #fff;
    margin-inline: auto;
}

.recognise-section__icon svg {
    width: 24px;
    height: 24px;
}

.recognise-section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.5;
    letter-spacing: -0.64px;
    color: var(--c-ink);
    margin-top: 32px;
}

.recognise-section__copy {
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    margin-top: 16px;
    max-width: 720px;
    margin-inline: auto;
}

.recognise-section__fine-print {
    font-size: 14.4px;
    line-height: 1.65;
    color: var(--c-text-subtle);
    margin-top: 16px;
    max-width: 700px;
    margin-inline: auto;
}

.recognise-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.recognise-section__buttons .btn {
    padding: 13px 24px;
    border-radius: 8px;
}


div#rswidget_w3PGB {
    max-height: 220px;
    overflow: hidden;
}

.reviews-section__inner{
	padding: 90px 0;
}



@media screen and (max-width: 859px) {
	
	div#rswidget_w3PGB {
		max-height: 360px;
	}
}

@media screen and (max-width: 848px) {
	
	div#rswidget_w3PGB {
		max-height: 405px;
	}
}

@media screen and (max-width: 768px) {
	
   .reviews-section__inner{
		padding: 60px 0;
	}
	
}


@media (max-width: 520px){
	
	.spotify_embed > a {
		flex-direction: column !important;
	}
	
	.spotify_embed > a img{
		width:100%!important;
		margin: 0 0 15px 0!important;
	}
	
	div#rswidget_0QfPE .rssw__widget--bg img {
    	width: 20px!important;
	}
	
	div#rswidget_0QfPE .rssw__widget-inner {
    	width: 35px !important;
		height: 170px !important;
	}
	
}

@media (max-width: 484px) {
	
	div#rswidget_w3PGB {
		max-height: 530px;
	}
}

@media (max-width: 333px) {
	
	div#rswidget_w3PGB {
		max-height: 655px;
	}
}
