/**
 * Digibinary IT Company Core Stylesheet
 * Pure White (#FFFFFF) Canvas, Deep Navy (#0B192C), Modern Blue (#2563EB), Cyan Accent (#0EA5E9)
 */

:root {
	--db-bg: #ffffff;
	--db-bg-alt: #f8fafc;
	--db-bg-subtle: #f1f5f9;
	--db-primary: #0b192c;
	--db-secondary: #2563eb;
	--db-secondary-hover: #1d4ed8;
	--db-accent: #0ea5e9;
	--db-text-dark: #0f172a;
	--db-text-body: #334155;
	--db-text-muted: #64748b;
	--db-border: #e2e8f0;
	--db-border-focus: #93c5fd;
	--db-radius-sm: 6px;
	--db-radius-md: 10px;
	--db-radius-lg: 16px;
	--db-radius-full: 9999px;
	--db-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
	--db-shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
	--db-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08);
	--db-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: var(--db-bg) !important;
	color: var(--db-text-body);
	font-family: var(--db-font);
	-webkit-font-smoothing: antialiased;
}

/* Base Buttons */
.db-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 24px;
	border-radius: var(--db-radius-full);
	text-decoration: none;
	transition: all 0.25s ease-in-out;
	cursor: pointer;
	border: 1px solid transparent;
	line-height: 1.3;
}

.db-btn svg {
	transition: transform 0.2s ease;
}

.db-btn:hover svg {
	transform: translateX(3px);
}

.db-btn-primary {
	background-color: var(--db-secondary);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.db-btn-primary:hover {
	background-color: var(--db-secondary-hover);
	color: #ffffff !important;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.db-btn-secondary {
	background-color: transparent;
	color: var(--db-primary) !important;
	border-color: var(--db-border);
}

.db-btn-secondary:hover {
	background-color: var(--db-bg-alt);
	border-color: var(--db-text-muted);
	color: var(--db-primary) !important;
}

.db-btn-navy {
	background-color: var(--db-primary);
	color: #ffffff !important;
}

.db-btn-navy:hover {
	background-color: #1e293b;
	color: #ffffff !important;
}

.db-btn-lg {
	padding: 15px 32px;
	font-size: 16px;
}

/* Service Grid & Cards */
.db-services-grid {
	display: grid;
	gap: 28px;
	margin: 20px 0;
}

.db-cols-2 { grid-template-columns: repeat(2, 1fr); }
.db-cols-3 { grid-template-columns: repeat(3, 1fr); }
.db-cols-4 { grid-template-columns: repeat(4, 1fr); }

.db-service-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 32px 28px;
	box-shadow: var(--db-shadow-sm);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

.db-service-card:hover {
	border-color: var(--db-secondary);
	transform: translateY(-4px);
	box-shadow: var(--db-shadow-lg);
}

.db-service-icon-box {
	width: 58px;
	height: 58px;
	border-radius: var(--db-radius-md);
	background: var(--db-bg-subtle);
	color: var(--db-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	transition: all 0.3s ease;
}

.db-service-card:hover .db-service-icon-box {
	background: var(--db-secondary);
	color: #ffffff;
}

.db-service-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 12px;
	line-height: 1.35;
}

.db-service-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.db-service-title a:hover {
	color: var(--db-secondary);
}

.db-service-excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--db-text-body);
	margin: 0 0 20px;
	flex-grow: 1;
}

.db-service-features-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	border-top: 1px dashed var(--db-border);
	padding-top: 16px;
}

.db-service-features-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: var(--db-text-body);
	margin-bottom: 8px;
}

.db-service-features-list li span {
	font-weight: 500;
}

.db-service-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--db-secondary);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.db-service-link:hover {
	color: var(--db-primary);
	gap: 10px;
}

/* Portfolio Section */
.db-portfolio-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 35px;
}

.db-filter-btn {
	background: var(--db-bg-alt);
	color: var(--db-text-body);
	border: 1px solid var(--db-border);
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--db-radius-full);
	cursor: pointer;
	transition: all 0.2s ease;
}

.db-filter-btn:hover,
.db-filter-btn.active {
	background: var(--db-primary);
	color: #ffffff;
	border-color: var(--db-primary);
}

.db-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.db-portfolio-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	overflow: hidden;
	box-shadow: var(--db-shadow-sm);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.db-portfolio-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--db-shadow-lg);
	border-color: var(--db-secondary);
}

.db-portfolio-thumb {
	position: relative;
	height: 220px;
	background: var(--db-bg-alt);
	overflow: hidden;
}

.db-portfolio-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.db-portfolio-card:hover .db-portfolio-thumb img {
	transform: scale(1.05);
}

.db-portfolio-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--db-secondary);
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.db-portfolio-thumb-placeholder span {
	font-size: 13px;
	font-weight: 600;
	color: var(--db-text-muted);
}

.db-portfolio-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 25, 44, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.db-portfolio-card:hover .db-portfolio-overlay {
	opacity: 1;
}

.db-overlay-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #ffffff;
	color: var(--db-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: transform 0.2s ease;
}

.db-overlay-btn:hover {
	transform: scale(1.1);
	color: var(--db-secondary);
}

.db-portfolio-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.db-portfolio-meta {
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--db-secondary);
	margin-bottom: 8px;
}

.db-portfolio-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 10px;
	line-height: 1.35;
}

.db-portfolio-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.db-portfolio-title a:hover {
	color: var(--db-secondary);
}

.db-portfolio-desc {
	font-size: 14px;
	color: var(--db-text-muted);
	line-height: 1.5;
	margin: 0 0 18px;
	flex-grow: 1;
}

.db-portfolio-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.db-tech-tag {
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: var(--db-radius-full);
	background: var(--db-bg-alt);
	color: var(--db-text-body);
	border: 1px solid var(--db-border);
}

/* Team Grid */
.db-team-grid {
	display: grid;
	gap: 28px;
}

.db-team-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	overflow: hidden;
	box-shadow: var(--db-shadow-sm);
	transition: all 0.3s ease;
	text-align: center;
}

.db-team-card:hover {
	transform: translateY(-4px);
	border-color: var(--db-secondary);
	box-shadow: var(--db-shadow-lg);
}

.db-team-photo-wrap {
	height: 240px;
	background: var(--db-bg-alt);
	overflow: hidden;
}

.db-team-photo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.db-team-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0b192c 0%, #2563eb 100%);
	color: #ffffff;
	font-size: 48px;
	font-weight: 800;
}

.db-team-content {
	padding: 24px 20px;
}

.db-team-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 4px;
}

.db-team-role {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--db-secondary);
	margin: 0 0 12px;
}

.db-team-bio {
	font-size: 13px;
	color: var(--db-text-muted);
	line-height: 1.5;
	margin: 0 0 16px;
}

.db-team-socials {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.db-team-socials a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--db-bg-alt);
	border: 1px solid var(--db-border);
	color: var(--db-text-body);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
}

.db-team-socials a:hover {
	background: var(--db-secondary);
	color: #ffffff;
	border-color: var(--db-secondary);
}

/* Testimonials */
.db-testimonials-grid {
	display: grid;
	gap: 28px;
}

.db-testimonial-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 30px;
	box-shadow: var(--db-shadow-sm);
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
}

.db-testimonial-card:hover {
	border-color: var(--db-secondary);
	box-shadow: var(--db-shadow-lg);
	transform: translateY(-3px);
}

.db-testimonial-rating {
	color: #f59e0b;
	font-size: 17px;
	letter-spacing: 2px;
	margin-bottom: 16px;
}

.db-testimonial-text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--db-text-body);
	margin: 0 0 20px;
	font-style: italic;
	flex-grow: 1;
}

.db-testimonial-project-badge {
	margin-bottom: 18px;
}

.db-testimonial-project-badge span {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--db-secondary);
	background: #eff6ff;
	padding: 3px 10px;
	border-radius: var(--db-radius-full);
}

.db-testimonial-author {
	display: flex;
	align-items: center;
	gap: 14px;
	border-top: 1px solid var(--db-border);
	padding-top: 18px;
}

.db-author-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--db-secondary);
	color: #ffffff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
}

.db-author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.db-author-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 2px;
}

.db-author-meta {
	font-size: 12.5px;
	color: var(--db-text-muted);
	margin: 0;
}

/* Stats Counter */
.db-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 25px 0;
}

.db-stat-item {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 32px 24px;
	text-align: center;
	box-shadow: var(--db-shadow-sm);
	transition: all 0.3s ease;
}

.db-stat-item:hover {
	border-color: var(--db-secondary);
	transform: translateY(-4px);
	box-shadow: var(--db-shadow-lg);
}

.db-stat-number {
	font-size: 44px;
	font-weight: 800;
	color: var(--db-secondary);
	line-height: 1.1;
	margin-bottom: 8px;
}

.db-stat-label {
	font-size: 16px;
	font-weight: 700;
	color: var(--db-primary);
	margin-bottom: 6px;
}

.db-stat-desc {
	font-size: 13px;
	color: var(--db-text-muted);
	line-height: 1.4;
}

/* Process Grid */
.db-process-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.db-process-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 30px 24px;
	box-shadow: var(--db-shadow-sm);
	position: relative;
	transition: all 0.3s ease;
}

.db-process-card:hover {
	border-color: var(--db-secondary);
	transform: translateY(-4px);
	box-shadow: var(--db-shadow-lg);
}

.db-process-step {
	font-size: 28px;
	font-weight: 800;
	color: var(--db-accent);
	margin-bottom: 14px;
	opacity: 0.9;
}

.db-process-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 10px;
}

.db-process-desc {
	font-size: 14px;
	color: var(--db-text-body);
	line-height: 1.6;
	margin: 0;
}

/* Tech Stack */
.db-tech-stack-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.db-tech-category {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-md);
	padding: 22px 26px;
	display: flex;
	align-items: center;
	gap: 24px;
	box-shadow: var(--db-shadow-sm);
}

.db-tech-cat-title {
	width: 140px;
	font-size: 16px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0;
	flex-shrink: 0;
}

.db-tech-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.db-tech-badge {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--db-primary);
	background: var(--db-bg-alt);
	border: 1px solid var(--db-border);
	padding: 6px 14px;
	border-radius: var(--db-radius-full);
	transition: all 0.2s ease;
}

.db-tech-badge:hover {
	background: var(--db-secondary);
	color: #ffffff;
	border-color: var(--db-secondary);
}

/* FAQ Accordion */
.db-faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 900px;
	margin: 0 auto;
}

.db-faq-item {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-md);
	overflow: hidden;
	box-shadow: var(--db-shadow-sm);
	transition: all 0.2s ease;
}

.db-faq-item.active {
	border-color: var(--db-secondary);
}

.db-faq-question {
	width: 100%;
	background: none;
	border: none;
	padding: 20px 24px;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--db-primary);
}

.db-faq-question:hover {
	color: var(--db-secondary);
}

.db-faq-icon {
	font-size: 22px;
	font-weight: 400;
	color: var(--db-secondary);
	line-height: 1;
	transition: transform 0.2s ease;
}

.db-faq-item.active .db-faq-icon {
	transform: rotate(45deg);
}

.db-faq-answer {
	padding: 0 24px 22px;
	color: var(--db-text-body);
	font-size: 15px;
	line-height: 1.65;
}

.db-faq-answer p {
	margin: 0;
}

/* CTA Box */
.db-cta-box {
	background: linear-gradient(135deg, #0b192c 0%, #1e293b 100%);
	border-radius: var(--db-radius-lg);
	padding: 60px 40px;
	color: #ffffff;
	text-align: center;
	box-shadow: var(--db-shadow-lg);
	margin: 40px 0;
}

.db-cta-title {
	font-size: 34px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 16px;
	line-height: 1.25;
}

.db-cta-subtitle {
	font-size: 17px;
	color: #cbd5e1;
	max-width: 680px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

.db-cta-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.db-cta-box .db-btn-secondary {
	color: #ffffff !important;
	border-color: rgba(255,255,255,0.3);
}

.db-cta-box .db-btn-secondary:hover {
	background: rgba(255,255,255,0.1);
	border-color: #ffffff;
}

/* Contact Info Card */
.db-contact-info-card {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 36px 30px;
	box-shadow: var(--db-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.db-info-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.db-info-icon {
	width: 44px;
	height: 44px;
	border-radius: var(--db-radius-md);
	background: var(--db-bg-subtle);
	color: var(--db-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.db-info-content h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--db-primary);
	margin: 0 0 4px;
}

.db-info-content p {
	font-size: 14.5px;
	color: var(--db-text-body);
	margin: 0;
	line-height: 1.5;
}

.db-info-content a {
	color: var(--db-secondary);
	text-decoration: none;
	font-weight: 600;
}

.db-info-content a:hover {
	text-decoration: underline;
}

.db-whatsapp-item {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	padding: 16px;
	border-radius: var(--db-radius-md);
}

.db-wa-icon {
	background: #22c55e !important;
	color: #ffffff !important;
}

.db-wa-link {
	color: #15803d !important;
	font-weight: 700 !important;
}

/* Contact Form */
.db-contact-form {
	background: #ffffff;
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-lg);
	padding: 36px;
	box-shadow: var(--db-shadow-sm);
}

.db-form-row {
	margin-bottom: 20px;
}

.db-form-cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.db-form-group {
	display: flex;
	flex-direction: column;
}

.db-form-group label {
	font-size: 14px;
	font-weight: 600;
	color: var(--db-primary);
	margin-bottom: 8px;
}

.db-form-group input,
.db-form-group select,
.db-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--db-text-dark);
	background: var(--db-bg);
	border: 1px solid var(--db-border);
	border-radius: var(--db-radius-sm);
	transition: all 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.db-form-group input:focus,
.db-form-group select:focus,
.db-form-group textarea:focus {
	border-color: var(--db-secondary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.db-form-submit {
	margin-top: 24px;
}

/* Responsive Rules */
@media (max-width: 991px) {
	.db-cols-3,
	.db-cols-4,
	.db-portfolio-grid,
	.db-process-grid,
	.db-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.db-tech-category {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.db-cta-title {
		font-size: 28px;
	}
}

@media (max-width: 640px) {
	.db-cols-2,
	.db-cols-3,
	.db-cols-4,
	.db-portfolio-grid,
	.db-process-grid,
	.db-stats-grid,
	.db-form-cols-2 {
		grid-template-columns: 1fr;
	}
	.db-cta-box {
		padding: 40px 20px;
	}
	.db-cta-title {
		font-size: 24px;
	}
	.db-contact-form {
		padding: 24px 18px;
	}
}

/* ==========================================================================
   Contact Form 7 & Input Elements Styling
   ========================================================================== */
.db-input,
.db-textarea,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background-color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	color: #0b192c;
	transition: all 0.2s ease-in-out;
	outline: none;
}

.db-input:focus,
.db-textarea:focus,
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus,
.wpcf7-form-control.wpcf7-select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wpcf7-not-valid-tip {
	color: #ef4444;
	font-size: 13px;
	margin-top: 4px;
	display: block;
}

.wpcf7-response-output {
	border-radius: 10px;
	padding: 14px 18px !important;
	font-size: 14.5px;
	margin: 20px 0 0 !important;
}

div.wpcf7-mail-sent-ok {
	border: 1px solid #86efac !important;
	background-color: #f0fdf4 !important;
	color: #166534 !important;
}

div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
	border: 1px solid #fca5a5 !important;
	background-color: #fef2f2 !important;
	color: #991b1b !important;
}
