/*!
Theme Name: Positive Dyslexia
Theme URI: https://positivedyslexia.co.uk
Author: Positive Dyslexia
Author URI: https://positivedyslexia.co.uk
Description: Custom theme for Positive Dyslexia - diagnostic assessments and accredited training for dyslexia and dyscalculia.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pd_theme
*/

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
  --purple-dark: #452e86;
  --purple-mid: #6b4ec7;
  --purple-light: #eae7ff;
  --purple-bg: #f1efff;
  --purple-bg-light: #f8f8fe;
  --purple-deep: #2d0d67;
  --purple-text: #361b73;
  --purple-section: #f4f2ff;
  --red: #de4e4b;
  --red-btn: #df202e;
  --red-light: #ffc4bd;
  --red-hot: #f97770;
  --red-bg: #ffe8e4;
  --red-badge-bg: #ffd6d1;
  --red-badge-text: #ac1922;
  --blue: #a8e1fd;
  --blue-dark: #0087bc;
  --green: #a9e8c6;
  --green-dark: #228f61;
  --green-bg: #dcfbe9;
  --orange-bg: #ffeede;
  --orange-accent: #ffdab6;
  --orange-dark: #cc7722;
  --text-dark: #13161d;
  --text-body: #545460;
  --text-muted: #676874;
  --text-label: #6f6f89;
  --border: #dedde6;
  --border-light: #e7e6f5;
  --border-faq: #e4e3f1;
  --dark-bg: #23134d;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1472px;
  --side-padding: 24px;
}

/* ============ BASE RESET ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: #ffffff;
  overflow-x: hidden;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

ul, ol {
  list-style: none;
}

/* ============ ACCESSIBILITY ============ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal[data-delay="1"] { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[data-delay="1"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ SHARED BUTTON STYLES ============ */
.btn-primary {
	text-wrap: nowrap;
  display: inline-block;
  background: var(--red-btn);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 9999px;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #c9403d;
  box-shadow: 0 6px 20px -4px rgba(222, 78, 75, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--purple-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 9999px;
  border: 2px solid var(--purple-dark);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.25s ease,
              color 0.25s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background-color: var(--purple-dark);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(69, 46, 134, 0.25);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ============ SHARED SECTION ELEMENTS ============ */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.2px;
  text-transform: uppercase;
  letter-spacing: 1.12px;
  color: var(--red-badge-text);
  background: var(--red-badge-bg);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.badge--hero {
  background: rgba(222, 78, 75, 0.15);
  color: var(--red);
}

.badge--red {
  background: var(--red-badge-bg);
  color: var(--red-badge-text);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.2px;
  text-transform: uppercase;
  letter-spacing: 1.12px;
  color: var(--purple-dark);
  background: var(--purple-light);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  color: var(--purple-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.667;
  color: var(--text-body);
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ============ WORDPRESS CONTENT STYLES ============ */
.entry-content a {
  color: var(--purple-dark);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--purple-mid);
}

.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}



/* ============ BLOG ============ */
.news-archive__grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.news-archive__grid article {
	cursor: pointer;
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	padding: 10px 10px 0;
	border: 1px solid var(--border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	position: relative;
	transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-archive__grid article:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14), 0 4px 8px -2px rgba(0, 0, 0, 0.12);
}

.news-card__image img{
    width: 100%;
    height: 240px;
	border-radius: 12px;
	object-fit: cover;
}

.news-card__body{
	    padding: 25px 15px;
}

.news-card__meta {
    font-weight: 500;
    color: var(--purple-mid);
	font-size: 0.9em;
}

.news-card__body h2{
    color: var(--purple-dark);
    margin: 5px 0 10px;
	    font-size: 1.2em;
}

p.news-card__excerpt {
    margin-bottom: 12px;
    color: var(--text-muted);
	font-size: 0.9em;
}

span.news-card__cta {
    color: var(--red);
	font-size: 0.9em;
    text-transform: uppercase;
    font-weight: 600;
}

span.news-single__date {
    color: var(--red);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
}

.page-hero__desc {
    font-size: 1em;
}

.news-single__section{
	margin-top: 30px;
}

.news-single__section p{
	    font-size: 1em;
}

.news-single__section ul {
    list-style: disc;
    margin: 20px 0 20px 20px;
}

.single-news .container--narrow {
    max-width: 1000px;
	margin-bottom: 70px;
}

.single-news .container--narrow .top-wrapper{
	display: flex;
	justify-content: space-between;
	column-gap: 40px;
	row-gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

nav.breadcrumb.news-single__breadcrumb {
    font-size: 0.9em;
	color: var(----purple-dark);
}

 .single-news  .attachment-large.size-large.wp-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
}


.contact-info__form .gform_wrapper.gravity-theme .gfield.gfield--input-type-consent{
	margin-bottom:25px!important;
}

@media (max-width: 1100px) { 
	.news-archive__grid{
    grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) { 
	.news-archive__grid{
    grid-template-columns: 1fr;
	}
}