/*
Theme Name: TeamForce
Theme URI: https://teamforce.com.au
Description: A clean, modern WordPress theme for TeamForce Services
Version: 1.0
Author: TeamForce
Author URI: https://teamforce.com.au
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teamforce
Domain Path: /languages
*/

/* Import Tailwind and custom styles */
@import url('https://cdn.tailwindcss.com');
@import url('https://unpkg.com/lucide@latest');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
	font-family: 'Inter', sans-serif;
}

html {
	scroll-behavior: smooth;
}

/* Organic Blob Shape Animation */
.icon-blob {
	border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.service-card:hover .icon-blob {
	border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	background-color: #67c4e8;
	transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon {
	color: #ffffff;
}

.service-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Reveal Animation */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* Prose Content Styling */
.prose {
	--tw-prose-body: #475569;
	--tw-prose-headings: #1e2a4a;
	--tw-prose-lead: #64748b;
	--tw-prose-links: #67c4e8;
	--tw-prose-bold: #1e2a4a;
	--tw-prose-counters: #64748b;
	--tw-prose-bullets: #cbd5e1;
	--tw-prose-hr: #e2e8f0;
	--tw-prose-quotes: #64748b;
	--tw-prose-quote-borders: #67c4e8;
	--tw-prose-captions: #64748b;
	--tw-prose-code: #1e2a4a;
	--tw-prose-pre-code: #f1f5f9;
	--tw-prose-pre-bg: #1e293b;
	--tw-prose-th-borders: #cbd5e1;
	--tw-prose-td-borders: #e2e8f0;
	--tw-prose-invert-body: #d1d5db;
	--tw-prose-invert-headings: #f3f4f6;
	--tw-prose-invert-lead: #9ca3af;
	--tw-prose-invert-links: #67c4e8;
	--tw-prose-invert-bold: #f3f4f6;
	--tw-prose-invert-counters: #9ca3af;
	--tw-prose-invert-bullets: #4b5563;
	--tw-prose-invert-hr: #374151;
	--tw-prose-invert-quotes: #9ca3af;
	--tw-prose-invert-quote-borders: #67c4e8;
	--tw-prose-invert-captions: #9ca3af;
	--tw-prose-invert-code: #f3f4f6;
	--tw-prose-invert-pre-code: #f3f4f6;
	--tw-prose-invert-pre-bg: rgba(0, 0, 0, 0.5);
	--tw-prose-invert-th-borders: #4b5563;
	--tw-prose-invert-td-borders: #374151;
}

.prose p {
	margin-bottom: 1.5em;
	line-height: 1.75;
}

.prose h2 {
	margin-top: 2em;
	margin-bottom: 0.75em;
	color: #1e2a4a;
	font-weight: 600;
}

.prose h3 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	color: #1e2a4a;
	font-weight: 600;
}

.prose h4 {
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	color: #1e2a4a;
	font-weight: 600;
}

.prose ul,
.prose ol {
	margin-bottom: 1.5em;
	padding-left: 1.5em;
}

.prose li {
	margin-bottom: 0.5em;
}

.prose a {
	color: #67c4e8;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.prose a:hover {
	color: #5bb0d1;
	text-decoration: underline;
}

.prose strong {
	color: #1e2a4a;
	font-weight: 600;
}

.prose blockquote {
	border-left: 4px solid #67c4e8;
	padding-left: 1.5em;
	margin: 1.5em 0;
	color: #64748b;
	font-style: italic;
}

.prose code {
	background-color: #f1f5f9;
	color: #1e2a4a;
	padding: 0.25em 0.5em;
	border-radius: 0.25em;
	font-size: 0.9em;
}

.prose pre {
	background-color: #1e293b;
	color: #f1f5f9;
	padding: 1.5em;
	border-radius: 0.5em;
	overflow-x: auto;
	margin-bottom: 1.5em;
}

.prose pre code {
	background-color: transparent;
	color: inherit;
	padding: 0;
}

/* Contact Form 7 Styling */
.wpcf7-form {
	display: block;
}

.wpcf7-form p {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0;
}

/* Form Groups */
.wpcf7-form-group {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Hide BR tags in CF7 forms */
.wpcf7-form br {
	display: none !important;
}

/* Individual form control spacing */
.wpcf7-form-control-wrap {
	margin-bottom: 0 !important;
	display: block !important;
}

.wpcf7-form-control-wrap:last-child {
	margin-bottom: 0 !important;
}

/* Additional spacing for form controls */
.wpcf7-form-control {
	margin-bottom: 0 !important;
}

.wpcf7-form-control:last-of-type {
	margin-bottom: 0 !important;
}

/* Two-column layout for form groups */
.wpcf7-form-group.wpcf7-form-group-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

/* Labels */
.wpcf7-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #475569;
	margin-bottom: 0.5rem;
}

.wpcf7-form label .wpcf7-form-control-wrap {
	display: block;
}

/* Text inputs, email, tel, url */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	background-color: rgba(240, 246, 250, 0.5);
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	transition: all 0.3s ease;
	color: #1e2a4a;
}

.wpcf7-form input[type="text"]::placeholder,
.wpcf7-form input[type="email"]::placeholder,
.wpcf7-form input[type="tel"]::placeholder,
.wpcf7-form input[type="url"]::placeholder,
.wpcf7-form input[type="number"]::placeholder,
.wpcf7-form textarea::placeholder {
	color: #94a3b8;
}

/* Focus states */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: none;
	ring: 2px;
	ring-color: #67c4e8;
	border-color: transparent;
	box-shadow: 0 0 0 2px #67c4e8;
}

/* Textarea */
.wpcf7-form textarea {
	resize: vertical;
	min-height: 120px;
}

/* Select dropdown */
.wpcf7-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}

/* Submit button */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
	padding: 1rem 2rem;
	background-color: #67c4e8;
	color: white;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	width: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
	background-color: #5bb0d1;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form button[type="submit"]:active {
	transform: scale(0.98);
}

/* Form validation messages */
.wpcf7-form-control.has-error input,
.wpcf7-form-control.has-error textarea,
.wpcf7-form-control.has-error select {
	border-color: #ef4444;
	box-shadow: 0 0 0 2px #fecaca;
}

.wpcf7-form-control.has-error label {
	color: #dc2626;
}

/* Validation error message */
.wpcf7-form-control-wrap .wpcf7-not-valid-tip {
	color: #dc2626;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: block;
}

/* Success message */
.wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-acceptance {
	margin-top: 1rem;
}

/* Response message */
.wpcf7-response-output {
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.wpcf7-mail-success-message {
	background-color: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
}

.wpcf7-mail-failure-message {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Spinner/Loading state */
.wpcf7-spinner {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-left: 0.5rem;
	border: 2px solid #67c4e8;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Acceptance checkbox */
.wpcf7-form-control.wpcf7-acceptance {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1rem;
}

.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"] {
	width: auto;
	margin-top: 0.25rem;
	cursor: pointer;
}

.wpcf7-form-control.wpcf7-acceptance label {
	margin-bottom: 0;
	font-size: 0.875rem;
	cursor: pointer;
}

/* Modal wrapper specific styling */
.wpcf7-modal-wrapper .wpcf7-form {
	gap: 1.5rem;
}

.wpcf7-modal-wrapper .wpcf7-form-group {
	gap: 1.5rem;
}

/* Ensure proper spacing in modal */
.wpcf7-modal-wrapper .wpcf7-form-control-wrap {
	width: 100%;
	margin-bottom: 1.5rem;
}

.wpcf7-modal-wrapper .wpcf7-form-control-wrap:last-child {
	margin-bottom: 0;
}

/* Modal animations */
#quoteModal {
	transition: opacity 0.3s ease;
}

#quoteModal.hidden {
	opacity: 0;
	pointer-events: none;
}

#quoteModal:not(.hidden) {
	opacity: 1;
	pointer-events: auto;
}

/* Animate only the modal panel */
#quoteModal > div {
	animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Make submit button full width on mobile, auto on desktop */
.wpcf7-modal-wrapper .wpcf7-form input[type="submit"],
.wpcf7-modal-wrapper .wpcf7-form button[type="submit"] {
	width: 100%;
}

@media (min-width: 640px) {
	.wpcf7-modal-wrapper .wpcf7-form input[type="submit"],
	.wpcf7-modal-wrapper .wpcf7-form button[type="submit"] {
		width: auto;
	}
}

