
/*
Theme Name: VP Associates
Theme URI: https://vpassociates.co/
Author: Antigravity
Description: A custom WordPress theme for VP Associates.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vpassociates
*/

/* Reset and basic styles are handled in assets/css/main.css */
/*
 * VP Associates Main Stylesheet
 * Premium Blue & White Theme
 */

:root {
	/* Color Palette */
	--primary-blue: #003366; /* Deep rich blue */
	--secondary-blue: #005bb5; /* Vibrant blue */
	--light-blue: #f0f7ff; /* Very light blue background */
	--accent-blue: #007bff;
	--white: #ffffff;
	--text-dark: #1a2b3c;
	--text-light: #4a5b6c;
	--border-color: #e1e9f0;

	/* Typography */
	--font-main: 'Inter', sans-serif;
	
	/* Spacing */
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;
	--spacing-xl: 6rem;

	/* Shadows */
	--shadow-sm: 0 2px 4px rgba(11, 59, 96, 0.05);
	--shadow-md: 0 10px 20px rgba(11, 59, 96, 0.08);
	--shadow-lg: 0 20px 40px rgba(11, 59, 96, 0.12);

	/* Transitions */
	--transition-fast: 0.2s ease-in-out;
	--transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-main);
	color: var(--text-dark);
	background-color: var(--white);
	line-height: 1.6;
	font-size: 16px;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--primary-blue);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
	margin-bottom: var(--spacing-sm);
	color: var(--text-light);
}

a {
	color: var(--secondary-blue);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--primary-blue);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

.section-padding {
	padding: var(--spacing-xl) 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white h1, .text-white h2, .text-white h3, .text-white p { color: var(--white); }

.bg-primary-blue { background-color: var(--primary-blue); }
.bg-light-blue { background-color: var(--light-blue); }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.two-column-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg);
}

.align-items-center {
	align-items: center;
}

@media (min-width: 768px) {
	.two-column-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.rounded-image {
	border-radius: 12px;
	overflow: hidden;
}

.shadow-image {
	box-shadow: var(--shadow-lg);
}

.card {
	background: var(--white);
	border-radius: 12px;
	padding: var(--spacing-md);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-normal), box-shadow var(--transition-normal);
	border: 1px solid var(--border-color);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all var(--transition-normal);
	cursor: pointer;
	border: 2px solid transparent;
}

.primary-button {
	background-color: var(--secondary-blue);
	color: var(--white);
}

.primary-button:hover {
	background-color: var(--primary-blue);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(30, 108, 179, 0.3);
}

.secondary-button {
	background-color: transparent;
	color: var(--white);
	border-color: var(--white);
}

.secondary-button:hover {
	background-color: var(--white);
	color: var(--primary-blue);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 15px 0;
	transition: padding var(--transition-fast);
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-branding .logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-blue);
	text-decoration: none;
	letter-spacing: 1px;
}

.main-navigation ul {
	display: flex;
	gap: 2rem;
}

.main-navigation a {
	color: var(--text-dark);
	font-weight: 600;
	font-size: 0.95rem;
	position: relative;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--secondary-blue);
	transition: width var(--transition-fast);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
	width: 100%;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--secondary-blue);
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
}

.hamburger {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	background-color: var(--primary-blue);
	transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	
	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: var(--white);
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	}

	.main-navigation.toggled ul {
		display: flex;
	}
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
	background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
	color: var(--white);
	padding: 8rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	100% { transform: rotate(360deg); }
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
}

.hero-content h1 {
	color: var(--white);
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
}

.hero-content p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

/* ==========================================================================
   Page Header (Internal Pages)
   ========================================================================== */
.page-header {
	background-size: cover;
	background-position: center;
	color: var(--white);
	padding: 5rem 0;
	text-align: center;
	position: relative;
}

.page-header h1.page-title,
.page-header h1 {
	color: var(--white);
	font-size: 3.5rem;
	margin-bottom: 1rem;
}

.page-header p {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto;
}

/* ==========================================================================
   Features / Services
   ========================================================================== */
.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 3rem;
}

@media (min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-card {
	background: var(--white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	transition: all var(--transition-normal);
	border-top: 4px solid var(--accent-blue);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-lg);
}

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	display: inline-block;
	padding: 15px;
	background: var(--light-blue);
	border-radius: 50%;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 3rem;
}

@media (min-width: 768px) {
	.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
	background: var(--white);
	padding: 2.5rem;
	border-radius: 12px;
	box-shadow: var(--shadow-sm);
	position: relative;
	border: 1px solid var(--border-color);
}

.testimonial-card .stars {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	letter-spacing: 2px;
}

.testimonial-card p {
	font-style: italic;
	margin-bottom: 1.5rem;
}

.testimonial-card h4 {
	font-size: 1rem;
	color: var(--secondary-blue);
	margin-bottom: 0;
}

/* ==========================================================================
   Contact Forms
   ========================================================================== */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-family: var(--font-main);
	font-size: 1rem;
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--secondary-blue);
	box-shadow: 0 0 0 3px rgba(30, 108, 179, 0.1);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 1.5rem;
	background: var(--white);
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
}

.faq-item h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.faq-item p {
	margin-bottom: 0;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
	.blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-thumbnail img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 12px 12px 0 0;
}

.post-content {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--text-light);
	margin-bottom: 1rem;
}

.entry-summary {
	flex-grow: 1;
}

.single-post-container {
	max-width: 800px;
	margin: 0 auto;
}

.single-post-container .post-thumbnail img {
	border-radius: 12px;
	box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background-color: var(--primary-blue);
	color: var(--white);
	padding-top: 4rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
	color: var(--white);
	text-decoration: underline;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}

@media (min-width: 600px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-widgets { grid-template-columns: repeat(4, 1fr); } }

.footer-widget h3 {
	color: var(--white);
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 10px;
}

.footer-widget h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 30px;
	height: 2px;
	background-color: var(--accent-blue);
}

.footer-widget p {
	color: rgba(255, 255, 255, 0.8);
}

.footer-links li, .social-links li {
	margin-bottom: 0.5rem;
}

.site-info {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
	animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	opacity: 0;
	transform: translateY(30px);
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* FAQ Accordion Styling Updates */
details.faq-item { cursor: pointer; transition: all 0.3s ease; }
details.faq-item summary { font-size: 1.1rem; font-weight: 700; color: var(--primary-blue); list-style: none; position: relative; padding-right: 30px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; transition: transform 0.3s; }
details[open].faq-item summary::after { content: '-'; transform: translateY(-50%) rotate(180deg); }
details.faq-item p { cursor: text; line-height: 1.8; }


/* FAQ Details Accordion */
details.faq-item {
	background: var(--white);
	border-radius: 8px;
	margin-bottom: 1rem;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

details.faq-item summary {
	padding: 1.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary-blue);
	cursor: pointer;
	list-style: none; /* Hide default arrow */
	position: relative;
	transition: background-color var(--transition-fast);
}

details.faq-item summary::-webkit-details-marker {
	display: none; /* Safari */
}

details.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 1.5rem;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--secondary-blue);
	transition: transform var(--transition-fast);
}

details.faq-item[open] summary::after {
	content: "-";
}

details.faq-item[open] summary {
	border-bottom: 1px solid var(--border-color);
	background-color: var(--light-blue);
}

details.faq-item .faq-answer {
	padding: 1.5rem;
	color: var(--text-light);
}

details.faq-item .faq-answer p:last-child {
	margin-bottom: 0;
}


/* ==========================================================================
   Comments Section Styling
   ========================================================================== */
.comments-area { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--border-color); }
.comments-title, .comment-reply-title { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 2rem; font-weight: 700; }
.comment-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.comment-list .comment { margin-bottom: 2rem; }
.comment-body { background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; padding: 2rem; box-shadow: var(--shadow-sm); }
.comment-meta { display: flex; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid var(--light-blue); padding-bottom: 1rem; }
.comment-author img { border-radius: 50%; margin-right: 1rem; }
.comment-author b { font-size: 1.1rem; color: var(--text-color); }
.comment-metadata { margin-left: auto; font-size: 0.85rem; }
.comment-metadata a { color: var(--text-light); }
.comment-content { color: var(--text-light); line-height: 1.6; }
.reply { margin-top: 1rem; }
.reply a { display: inline-block; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--primary-blue); background: var(--light-blue); border-radius: 4px; text-decoration: none; transition: all 0.3s ease; }
.reply a:hover { background: var(--primary-blue); color: var(--white); }
.comment-respond { background: var(--white); padding: 2.5rem; border-radius: 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.comment-form { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-form p { margin-bottom: 0; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-color); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; transition: border-color 0.3s ease; box-sizing: border-box;}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary-blue); }
.comment-form .form-submit { margin-top: 1rem; }
.comment-form #submit { background: var(--accent-blue); color: var(--white); border: none; padding: 12px 30px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.comment-form #submit:hover { background: var(--primary-blue); }

/* ==========================================================================
   Premium Design Polish Overrides
   ========================================================================== */
:root {
	--shadow-sm: 0 4px 6px -1px rgba(11, 59, 96, 0.1), 0 2px 4px -1px rgba(11, 59, 96, 0.06);
	--shadow-md: 0 10px 15px -3px rgba(11, 59, 96, 0.1), 0 4px 6px -2px rgba(11, 59, 96, 0.05);
	--shadow-lg: 0 20px 25px -5px rgba(11, 59, 96, 0.1), 0 10px 10px -5px rgba(11, 59, 96, 0.04);
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.card, .feature-card, .testimonial-card, .blog-card, .faq-item, .contact-info-container, .contact-form-container {
	border-radius: 16px !important;
	border: 1px solid rgba(11, 59, 96, 0.08) !important;
}

.feature-card {
	padding: 2.5rem 2rem !important;
}

.button {
	border-radius: 8px !important;
}

.primary-button {
    box-shadow: 0 4px 6px -1px rgba(30, 108, 179, 0.2), 0 2px 4px -1px rgba(30, 108, 179, 0.1);
}

.primary-button:hover {
	box-shadow: 0 10px 20px rgba(30, 108, 179, 0.3) !important;
}


.rounded-image {
	border-radius: 16px;
}

.shadow-image {
	box-shadow: var(--shadow-md);
}

/* Increased image heights for Why Choose Us & Service Detail sections */
.why-choose-us .rounded-image,
.service-detail .rounded-image {
	min-height: 600px;
	object-fit: cover;
	width: 100%;
}

.service-detail .image-col img {
	min-height: 400px;
	object-fit: cover;
}

/* Font Awesome icons in feature cards */
.feature-icon i {
	font-size: 2rem;
	color: var(--secondary-blue);
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */

/* Full-width Elementor layouts: remove wrapper constraints */
body.elementor-page .site-main > .elementor {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* Elementor Canvas template: hide header/footer */
body.elementor-template-canvas .site-header,
body.elementor-template-canvas .site-footer {
	display: none;
}

/* Ensure Elementor sections stretch full width */
body.elementor-page .elementor-section.elementor-section-stretched {
	max-width: 100vw;
}

/* Fix Elementor widget text inheriting theme colors */
body.elementor-page .elementor-widget-text-editor p {
	color: inherit;
}

body.elementor-page .elementor-widget-heading .elementor-heading-title {
	color: inherit;
}

/* Make Elementor buttons match theme style when not custom-styled */
body.elementor-page .elementor-button {
	font-family: var(--font-main);
	transition: all var(--transition-normal);
}

/* WP Admin bar offset for Elementor sticky sections */
body.admin-bar .elementor-sticky--active {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar .elementor-sticky--active {
		top: 46px !important;
	}
}
