/*
 * Perceptions Studio Custom Styles
 * A comprehensive utility framework for GeneratePress
 */

/* ============================================================
 * CSS CUSTOM PROPERTIES (VARIABLES)
 * ============================================================ */

:root {
	/* PS Color System - Semantic color variables */
	--ps-primary: var(--contrast);
	--ps-primary-dark: var(--contrast-2);
	--ps-primary-light: var(--contrast-3);
	--ps-primary-mid: var(--contrast-4);
	
	--ps-secondary: var(--base);
	--ps-secondary-dark: var(--base-2);
	--ps-secondary-light: var(--base-3);
	
	--ps-accent: var(--accent);
	--ps-accent-dark: var(--accent-2);
	--ps-accent-light: var(--accent-3);
	
	--ps-white: #ffffff;
	--ps-black: #000000;
	
	--ps-gray-50: #f8f9fa;
	--ps-gray-100: #f1f3f5;
	--ps-gray-200: #e9ecef;
	--ps-gray-300: #dee2e6;
	--ps-gray-400: #ced4da;
	--ps-gray-500: #adb5bd;
	--ps-gray-600: #6c757d;
	--ps-gray-700: #495057;
	--ps-gray-800: #343a40;
	--ps-gray-900: #212529;
	
	--ps-success: #28a745;
	--ps-info: #17a2b8;
	--ps-warning: #ffc107;
	--ps-danger: #dc3545;
	
	/* Spacing Scale */
	--ps-space-xs: 0.25rem;   /* 4px */
	--ps-space-sm: 0.5rem;    /* 8px */
	--ps-space-md: 1rem;      /* 16px */
	--ps-space-lg: 1.5rem;    /* 24px */
	--ps-space-xl: 2rem;      /* 32px */
	--ps-space-2xl: 3rem;     /* 48px */
	--ps-space-3xl: 4rem;     /* 64px */
	
	/* Border Radius Scale */
	--ps-radius-sm: 0.125rem; /* 2px */
	--ps-radius-md: 0.25rem;  /* 4px */
	--ps-radius-lg: 0.5rem;   /* 8px */
	--ps-radius-xl: 1rem;     /* 16px */
	--ps-radius-2xl: 1.5rem;  /* 24px */
	--ps-radius-full: 9999px;
	
	/* Typography Scale */
	--ps-text-xs: 0.75rem;    /* 12px */
	--ps-text-sm: 0.875rem;   /* 14px */
	--ps-text-base: 1rem;     /* 16px */
	--ps-text-lg: 1.125rem;   /* 18px */
	--ps-text-xl: 1.25rem;    /* 20px */
	--ps-text-2xl: 1.5rem;    /* 24px */
	--ps-text-3xl: 1.875rem;  /* 30px */
	--ps-text-4xl: 2.25rem;   /* 36px */
	--ps-text-5xl: 3rem;      /* 48px */
	--ps-text-display-1: clamp(3rem, 8vw + 1rem, 6rem);
	--ps-text-display-2: clamp(2.5rem, 6vw + 1rem, 5rem);
	--ps-text-display-3: clamp(2rem, 5vw + 1rem, 4rem);
	
	/* Line Heights */
	--ps-leading-none: 1;
	--ps-leading-tight: 1.25;
	--ps-leading-snug: 1.375;
	--ps-leading-normal: 1.5;
	--ps-leading-relaxed: 1.625;
	--ps-leading-loose: 2;
	
	/* Font Weights */
	--ps-font-light: 300;
	--ps-font-normal: 400;
	--ps-font-medium: 500;
	--ps-font-semibold: 600;
	--ps-font-bold: 700;
	--ps-font-extrabold: 800;
	
	/* Shadows */
	--ps-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--ps-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--ps-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--ps-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--ps-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--ps-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	
	/* Transitions */
	--ps-transition-fast: 150ms ease-in-out;
	--ps-transition-base: 250ms ease-in-out;
	--ps-transition-slow: 350ms ease-in-out;
	
	/* Container Widths */
	--ps-container-sm: 640px;
	--ps-container-md: 768px;
	--ps-container-lg: 1024px;
	--ps-container-xl: 1280px;
	--ps-container-2xl: 1536px;
	
	/* Text Width (in ch units for optimal readability) */
	--ps-prose-sm: 45ch;
	--ps-prose-base: 65ch;
	--ps-prose-lg: 75ch;
}

/* ============================================================
 * BACKGROUND COLOR UTILITIES
 * ============================================================ */

.ps-bg-primary { background-color: var(--ps-primary) !important; }
.ps-bg-primary-dark { background-color: var(--ps-primary-dark) !important; }
.ps-bg-primary-light { background-color: var(--ps-primary-light) !important; }

.ps-bg-secondary { background-color: var(--ps-secondary) !important; }
.ps-bg-secondary-dark { background-color: var(--ps-secondary-dark) !important; }
.ps-bg-secondary-light { background-color: var(--ps-secondary-light) !important; }

.ps-bg-accent { background-color: var(--ps-accent) !important; }
.ps-bg-accent-dark { background-color: var(--ps-accent-dark) !important; }
.ps-bg-accent-light { background-color: var(--ps-accent-light) !important; }

.ps-bg-white { background-color: var(--ps-white) !important; }
.ps-bg-black { background-color: var(--ps-black) !important; }

.ps-bg-gray-50 { background-color: var(--ps-gray-50) !important; }
.ps-bg-gray-100 { background-color: var(--ps-gray-100) !important; }
.ps-bg-gray-200 { background-color: var(--ps-gray-200) !important; }
.ps-bg-gray-300 { background-color: var(--ps-gray-300) !important; }
.ps-bg-gray-400 { background-color: var(--ps-gray-400) !important; }
.ps-bg-gray-500 { background-color: var(--ps-gray-500) !important; }
.ps-bg-gray-600 { background-color: var(--ps-gray-600) !important; }
.ps-bg-gray-700 { background-color: var(--ps-gray-700) !important; }
.ps-bg-gray-800 { background-color: var(--ps-gray-800) !important; }
.ps-bg-gray-900 { background-color: var(--ps-gray-900) !important; }

.ps-bg-success { background-color: var(--ps-success) !important; }
.ps-bg-info { background-color: var(--ps-info) !important; }
.ps-bg-warning { background-color: var(--ps-warning) !important; }
.ps-bg-danger { background-color: var(--ps-danger) !important; }

.ps-bg-transparent { background-color: transparent !important; }

/* ============================================================
 * TEXT COLOR UTILITIES
 * ============================================================ */

.ps-text-primary { color: var(--ps-primary) !important; }
.ps-text-primary-dark { color: var(--ps-primary-dark) !important; }
.ps-text-primary-light { color: var(--ps-primary-light) !important; }

.ps-text-secondary { color: var(--ps-secondary) !important; }
.ps-text-secondary-dark { color: var(--ps-secondary-dark) !important; }
.ps-text-secondary-light { color: var(--ps-secondary-light) !important; }

.ps-text-accent { color: var(--ps-accent) !important; }
.ps-text-accent-dark { color: var(--ps-accent-dark) !important; }
.ps-text-accent-light { color: var(--ps-accent-light) !important; }

.ps-text-white { color: var(--ps-white) !important; }
.ps-text-black { color: var(--ps-black) !important; }

.ps-text-gray-50 { color: var(--ps-gray-50) !important; }
.ps-text-gray-100 { color: var(--ps-gray-100) !important; }
.ps-text-gray-200 { color: var(--ps-gray-200) !important; }
.ps-text-gray-300 { color: var(--ps-gray-300) !important; }
.ps-text-gray-400 { color: var(--ps-gray-400) !important; }
.ps-text-gray-500 { color: var(--ps-gray-500) !important; }
.ps-text-gray-600 { color: var(--ps-gray-600) !important; }
.ps-text-gray-700 { color: var(--ps-gray-700) !important; }
.ps-text-gray-800 { color: var(--ps-gray-800) !important; }
.ps-text-gray-900 { color: var(--ps-gray-900) !important; }

.ps-text-success { color: var(--ps-success) !important; }
.ps-text-info { color: var(--ps-info) !important; }
.ps-text-warning { color: var(--ps-warning) !important; }
.ps-text-danger { color: var(--ps-danger) !important; }

/* ============================================================
 * TYPOGRAPHY UTILITIES
 * ============================================================ */

/* Body Text Sizes */
.ps-body-sm {
	font-size: var(--ps-text-sm);
	line-height: var(--ps-leading-normal);
}

.ps-body-base {
	font-size: var(--ps-text-base);
	line-height: var(--ps-leading-normal);
}

.ps-body-lg {
	font-size: var(--ps-text-lg);
	line-height: var(--ps-leading-relaxed);
}

/* Overline Text */
.ps-overline {
	font-size: var(--ps-text-xs);
	font-weight: var(--ps-font-semibold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: var(--ps-leading-tight);
}

/* Text Width Constraints (for optimal readability) */
.ps-prose-sm {
	max-width: var(--ps-prose-sm);
}

.ps-prose,
.ps-prose-base {
	max-width: var(--ps-prose-base);
}

.ps-prose-lg {
	max-width: var(--ps-prose-lg);
}

/* Responsive Heading Styles with Clamp */
.ps-h1 {
	font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
	line-height: var(--ps-leading-tight);
	font-weight: var(--ps-font-bold);
	margin-bottom: var(--ps-space-lg);
}

.ps-h2 {
	font-size: clamp(1.75rem, 4vw + 0.75rem, 2.75rem);
	line-height: var(--ps-leading-tight);
	font-weight: var(--ps-font-bold);
	margin-bottom: var(--ps-space-md);
}

.ps-h3 {
	font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
	line-height: var(--ps-leading-snug);
	font-weight: var(--ps-font-semibold);
	margin-bottom: var(--ps-space-md);
}

.ps-h4 {
	font-size: clamp(1.25rem, 2vw + 0.5rem, 1.875rem);
	line-height: var(--ps-leading-snug);
	font-weight: var(--ps-font-semibold);
	margin-bottom: var(--ps-space-sm);
}

.ps-h5 {
	font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
	line-height: var(--ps-leading-normal);
	font-weight: var(--ps-font-medium);
	margin-bottom: var(--ps-space-sm);
}

.ps-h6 {
	font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
	line-height: var(--ps-leading-normal);
	font-weight: var(--ps-font-medium);
	margin-bottom: var(--ps-space-sm);
}

/* Display Headings (Extra Large) */
.ps-display-1 {
	font-size: var(--ps-text-display-1);
	line-height: var(--ps-leading-none);
	font-weight: var(--ps-font-extrabold);
	letter-spacing: -0.02em;
}

.ps-display-2 {
	font-size: var(--ps-text-display-2);
	line-height: var(--ps-leading-none);
	font-weight: var(--ps-font-extrabold);
	letter-spacing: -0.02em;
}

.ps-display-3 {
	font-size: var(--ps-text-display-3);
	line-height: var(--ps-leading-tight);
	font-weight: var(--ps-font-bold);
	letter-spacing: -0.01em;
}

/* ============================================================
 * UTILITY CLASSES
 * ============================================================ */

/* Border Radius */
.ps-rounded-sm { border-radius: var(--ps-radius-sm); }
.ps-rounded-md { border-radius: var(--ps-radius-md); }
.ps-rounded-lg { border-radius: var(--ps-radius-lg); }
.ps-rounded-xl { border-radius: var(--ps-radius-xl); }
.ps-rounded-2xl { border-radius: var(--ps-radius-2xl); }
.ps-rounded-full { border-radius: var(--ps-radius-full); }
.ps-rounded-none { border-radius: 0; }

/* Shadows */
.ps-shadow-sm { box-shadow: var(--ps-shadow-sm); }
.ps-shadow { box-shadow: var(--ps-shadow); }
.ps-shadow-md { box-shadow: var(--ps-shadow-md); }
.ps-shadow-lg { box-shadow: var(--ps-shadow-lg); }
.ps-shadow-xl { box-shadow: var(--ps-shadow-xl); }
.ps-shadow-2xl { box-shadow: var(--ps-shadow-2xl); }
.ps-shadow-none { box-shadow: none; }

/* Transitions */
.ps-transition { transition: all var(--ps-transition-base); }
.ps-transition-fast { transition: all var(--ps-transition-fast); }
.ps-transition-slow { transition: all var(--ps-transition-slow); }

/* Text Alignment */
.ps-text-left { text-align: left; }
.ps-text-center { text-align: center; }
.ps-text-right { text-align: right; }
.ps-text-justify { text-align: justify; }

/* Font Weights */
.ps-font-light { font-weight: var(--ps-font-light); }
.ps-font-normal { font-weight: var(--ps-font-normal); }
.ps-font-medium { font-weight: var(--ps-font-medium); }
.ps-font-semibold { font-weight: var(--ps-font-semibold); }
.ps-font-bold { font-weight: var(--ps-font-bold); }
.ps-font-extrabold { font-weight: var(--ps-font-extrabold); }

/* ============================================================
 * BLOCK ADJUSTMENTS
 * ============================================================ */

/* Search Block - Remove default margin when inside GenerateBlocks elements */
[class^="gb-element"] .wp-block-search__button {
	margin-left: 0;
}

.ps-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-button-arrow::after {
    content: "";
    width:18px;
    height:18px;
    background-color: currentColor;
    -webkit-mask-image: url("/wp-content/uploads/2025/12/arrow-tr.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("/wp-content/uploads/2025/12/arrow-tr.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    margin-left:4px;
    transition: transform 0.3s ease;
}

.ps-button-arrow:hover::after {
    transform: rotate(45deg);
}

.archive.category .paging-navigation .nav-links, .search-results .paging-navigation .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.archive.category .paging-navigation a.prev.page-numbers, .search-results .paging-navigation a.prev.page-numbers {
    display: none;
}

.archive.category .paging-navigation a.next.page-numbers, .search-results .paging-navigation a.next.page-numbers {
    display: none;
}

.archive.category .paging-navigation .page-numbers, .search-results .paging-navigation .page-numbers {
    border: none;
    background-color: var(--accent-3);
    aspect-ratio: 1 / 1;
    padding: 0;
    height: 32px;
    width: 32px;
    justify-content: center;
    align-items: center;
    display: flex;
}

.archive.category .paging-navigation .page-numbers.current, .search-results .paging-navigation .page-numbers.current {
    background-color: var(--accent-2);
    color: var(--accent-3);
}

.archive.category .grid-container{
	padding-left:20px;
	padding-right:20px;
}

/* novashare button */
.ns-buttons.ns-inline.ns-inline-below {
    margin-top: 50px;
    margin-bottom: 50px;
}	

.ns-buttons .ns-buttons-wrapper .ns-button {
    border:1px solid #05334a33;
    border-radius:100px;
    width:46px;
    height:46px;
}

.ns-buttons .ns-buttons-wrapper .ns-border{
    border:0;
}

.paging-navigation {
    text-align: center;
    padding-bottom: 20px;
}
.paging-navigation .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.paging-navigation .page-numbers {
    font-size: 20px;
    color: #710004;
    text-decoration: none;
    font-weight: 400;
    font-family: var(--gp-font--lato);
}
.paging-navigation .page-numbers.current {
    color: #000;
}
.paging-navigation .prev,
.paging-navigation .next {
    position: relative;
    font-size: 0;
    color: #000;
}
.paging-navigation .prev::before {
    content: "«";
    font-size: 28px;
}
.paging-navigation .next::after {
    content: "»";
    font-size: 28px;
}
.post-type-archive-ebook .inside-article {
    padding: 20px;
}
.post-type-archive-ebook .post-image img {
    object-fit: contain;
}
.post-type-archive-ebook .ebook {
    margin-bottom: 0;
}
.post-type-archive-ebook .entry-summary,
.post-type-archive-ebook .post-image {
    margin-top: 10px;
}
.blog .grid-container {
    padding: 0 20px;
}

.ps-ebook-form-wrap .hs-form.stacked {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
}
.ps-ebook-form-wrap .hs-form.stacked > * {
	width: 100%;
}
.ps-ebook-form-wrap .hs-form.stacked > .hs_firstname,
.ps-ebook-form-wrap .hs-form.stacked > .hs_lastname {
	width: calc(50% - 4px);
}
.ps-ebook-form-wrap .hs-form .hs-input:not([type="checkbox"]) {
	width: 100% !important;
}
.ps-ebook-form-wrap .hs-form.stacked,
.ps-hs-inline-form .hs-form.stacked {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
}

.ps-ebook-form-wrap .hs-form.stacked > *,
.ps-hs-inline-form .hs-form.stacked > * {
	width: 100%;
}
.ps-ebook-form-wrap .hs-form.stacked > .hs_firstname,
.ps-ebook-form-wrap .hs-form.stacked > .hs_lastname,
.ps-hs-inline-form .hs-form.stacked > .hs_firstname,
.ps-hs-inline-form .hs-form.stacked > .hs_lastname {
	width: calc(50% - 4px);
}
.ps-ebook-form-wrap .hs-form .hs-input:not([type="checkbox"]),
.ps-hs-inline-form .hs-form .hs-input:not([type="checkbox"]) {
	width: 100% !important;
}
.post-type-archive .gb-element-48c9d22f {
	background: linear-gradient(180deg, rgba(252, 240, 215, 0.8) 0%, rgba(252, 240, 215, 0.6) 100%),
		url('/wp-content/uploads/2025/12/sunlight-streaming-cathedral-through-window-1.png') center / cover no-repeat !important;
}

@media (max-width: 1240px) {
    .post-type-archive-ebook .entry-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
	.ps-ebook-form-wrap .hs-form.stacked > .hs_firstname,
	.ps-ebook-form-wrap .hs-form.stacked > .hs_lastname {
		width: 100%;
	}
	
	.ps-ebook-form-wrap .hs-form.stacked > .hs_firstname,
	.ps-ebook-form-wrap .hs-form.stacked > .hs_lastname,
	.ps-hs-inline-form .hs-form.stacked > .hs_firstname,
	.ps-hs-inline-form .hs-form.stacked > .hs_lastname {
		width: 100%;
	}
}