/*
Theme Name: Polinc Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Custom theme for Polinc site (landing, blog, pricing, contact) using Tailwind CSS.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polinc-theme
*/

/*
 * Core theme styles.
 * Tailwind utility classes are loaded via CDN in header.php,
 * so you do NOT need any build step to see styling changes.
 */

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Custom checkmark list for asset section (from main1.html) */
.asset-list li {
	position: relative;
	padding-left: 28px;
	font-weight: 400;
	font-size: 1.125rem;
	line-height: 1.6;
	color: #4b5563; /* text-gray-600 */
}

.asset-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 4px;
	color: #29618d; /* pol-primary */
	font-weight: 700;
	font-size: 1rem;
}

/* FAQ accordion behaviour (paired with JS in assets/js/main.js) */
.faq-question svg {
	transition: transform 0.2s ease-in-out;
}

.faq-question.active svg {
	transform: rotate(180deg);
}

.faq-answer {
	transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
	max-height: 0;
	overflow: hidden;
}

.faq-question.active + .faq-answer {
	max-height: 200px;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* Blog content styling */
.blog-content {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #374151; /* text-gray-700 */
}

.blog-content h2 {
	margin-top: 3rem !important;
	margin-bottom: 1.5rem !important;
	font-size: 1.875rem !important;
	font-weight: 700 !important;
	color: #111827 !important; /* text-gray-900 */
	line-height: 1.2 !important;
}

.blog-content h3 {
	margin-top: 2rem !important;
	margin-bottom: 1rem !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #1f2937 !important; /* text-gray-800 */
	line-height: 1.3 !important;
}

.blog-content h4 {
	margin-top: 1.5rem !important;
	margin-bottom: 0.75rem !important;
	font-size: 1.25rem !important;
	font-weight: 600 !important;
	color: #1f2937 !important;
	line-height: 1.4 !important;
}

.blog-content p {
	margin-bottom: 1.5rem !important;
	line-height: 1.7 !important;
}

.blog-content ul,
.blog-content ol {
	margin-bottom: 1.5rem !important;
	padding-left: 1.5rem !important;
}

.blog-content ul {
	list-style-type: disc !important;
}

.blog-content ol {
	list-style-type: decimal !important;
}

.blog-content li {
	margin-bottom: 0.5rem !important;
	line-height: 1.6 !important;
}

.blog-content blockquote {
	margin: 2rem 0 !important;
	padding: 1rem 1.5rem !important;
	border-left: 4px solid #e5e7eb !important;
	background-color: #f9fafb !important;
	font-style: italic !important;
}

.blog-content img {
	margin: 2rem 0 !important;
	border-radius: 0.75rem !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.blog-content hr {
	margin: 2rem 0 !important;
	border: 0 !important;
	border-top: 1px solid #e5e7eb !important;
}

/* WordPress block spacing fixes */
.blog-content .wp-block-group,
.blog-content .wp-block-columns {
	margin-bottom: 1.5rem !important;
}

.blog-content .wp-block-column {
	margin-bottom: 1rem !important;
}

.blog-content .wp-block-spacer {
	margin-bottom: 1rem !important;
}

/* Featured image responsive height control */
.featured-image-container {
	position: relative;
	max-height: 60vh; /* Maximum 60% of viewport height */
	min-height: 300px; /* Minimum height for proper display */
	overflow: hidden;
}

.featured-image {
	min-height: 100%;
	max-height: 100%;
	width: 100%;
	transition: transform 0.3s ease;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
	.featured-image-container {
		max-height: 50vh; /* Reduce height on mobile */
		min-height: 250px;
	}
}

@media (max-width: 480px) {
	.featured-image-container {
		max-height: 40vh; /* Further reduce on small screens */
		min-height: 200px;
	}
}

/* Optional: Add a subtle gradient overlay for very tall images */
.featured-image-container::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 20%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.featured-image-container:hover .featured-image {
	transform: scale(1.02);
}

/* Optional: Add a subtle gradient overlay for very tall images */
.featured-image-container::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 20%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.featured-image-container:hover .featured-image {
	transform: scale(1.02);
}

