/* ============================================================
   Freshly Couch Cleaning Melbourne — Main CSS
   ============================================================ */

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

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

@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes shimmer {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

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

/* ── Header ─────────────────────────────────────────────── */
.header {
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(27,108,168,0.08);
	transition: all 0.3s ease;
}

.header.scrolled {
	box-shadow: 0 4px 32px rgba(27,108,168,0.12);
}

.logo-icon {
	transition: transform 0.3s ease;
}
.logo:hover .logo-icon {
	transform: rotate(-5deg) scale(1.05);
}

.nav-link {
	position: relative;
	font-weight: 600;
	font-size: 0.9rem;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: linear-gradient(135deg, #1B6CA8, #00D4AA);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.current-menu-item::after {
	width: 80%;
}

.nav-link.current-menu-item {
	color: #1B6CA8 !important;
	background: #e8f3fb !important;
}

/* Social hover */
.social-btn:hover {
	background: rgba(0,212,170,0.2) !important;
	transform: translateY(-2px);
}

/* ── Hero / Page Hero ───────────────────────────────────── */
.hero-gradient {
	background: linear-gradient(135deg, #0d1b2a 0%, #1B6CA8 60%, #00D4AA 100%);
}

.hero-pattern {
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero {
	background: linear-gradient(135deg, #0d1b2a 0%, #1B6CA8 100%);
}

/* ── Contact Form ───────────────────────────────────────── */
.fc-input {
	border: 1.5px solid #e2eaf4;
	background: #fafcff;
	transition: all 0.25s ease;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.fc-input:focus {
	border-color: #1B6CA8;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(27,108,168,0.12);
	outline: none;
}

.fc-input.error {
	border-color: #ef4444;
	background: #fff5f5;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.fc-submit {
	background: linear-gradient(135deg, #1B6CA8, #00D4AA);
	position: relative;
	overflow: hidden;
}

.fc-submit::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.fc-submit:hover::after {
	opacity: 1;
}

#fc-result.success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

#fc-result.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ── Cards ─────────────────────────────────────────────── */
.service-card {
	cursor: default;
}

.blog-card {
	display: flex;
	flex-direction: column;
}

.blog-card > div:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.blog-card .read-more {
	margin-top: auto;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
	transition: border-color 0.3s ease;
}

.faq-item.active {
	border-color: #1B6CA8 !important;
}

.faq-icon {
	transition: transform 0.3s ease;
}

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

.faq-answer {
	animation: slideUp 0.3s ease forwards;
}

/* ── Swiper / Testimonials ──────────────────────────────── */
.swiper-testimonials .swiper-pagination-bullet {
	background: #1B6CA8;
	opacity: 0.3;
}

.swiper-testimonials .swiper-pagination-bullet-active {
	background: #1B6CA8;
	opacity: 1;
}

/* ── Prose / Blog Content ───────────────────────────────── */
.blog-content h2,
.blog-content h3,
.blog-content h4 {
	color: #1a1a2e;
	font-weight: 800;
	margin-top: 2rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.blog-content h2 { font-size: 1.75rem; }
.blog-content h3 { font-size: 1.35rem; }

.blog-content p {
	color: #4a5568;
	line-height: 1.8;
	margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.blog-content ul li {
	list-style: disc;
	color: #4a5568;
	line-height: 1.7;
	margin-bottom: 0.5rem;
}

.blog-content ol li {
	list-style: decimal;
	color: #4a5568;
	line-height: 1.7;
	margin-bottom: 0.5rem;
}

.blog-content a {
	color: #1B6CA8;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.blog-content a:hover {
	color: #00D4AA;
}

.blog-content blockquote {
	border-left: 4px solid #1B6CA8;
	padding: 1rem 1.5rem;
	background: #f4f8fd;
	border-radius: 0 1rem 1rem 0;
	color: #1B6CA8;
	font-style: italic;
	margin: 1.5rem 0;
}

.blog-content img {
	border-radius: 1rem;
	box-shadow: 0 8px 32px rgba(27,108,168,0.15);
	margin: 1.5rem auto;
}

.blog-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.blog-content table th,
.blog-content table td {
	border: 1px solid #e2eaf4;
	padding: 0.75rem 1rem;
}

.blog-content table th {
	background: #1B6CA8;
	color: white;
	font-weight: 700;
}

.blog-content table tr:nth-child(even) {
	background: #f4f8fd;
}

/* ── WordPress Pagination ──────────────────────────────── */
.pagination,
.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border: 1.5px solid #e2eaf4;
	color: #1B6CA8;
	transition: all 0.25s ease;
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
	background: #1B6CA8;
	color: white;
	border-color: #1B6CA8;
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
	background: linear-gradient(135deg, #1B6CA8, #00D4AA);
	color: white;
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(27,108,168,0.3);
}

/* ── Comments ──────────────────────────────────────────── */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment {
	padding: 1.5rem;
	border: 1px solid #e2eaf4;
	border-radius: 1.25rem;
	margin-bottom: 1rem;
	background: white;
}

.comment-list .comment .comment-author {
	font-weight: 700;
	color: #1a1a2e;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid #e2eaf4;
	border-radius: 0.875rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.9rem;
	transition: all 0.25s ease;
	margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: #1B6CA8;
	outline: none;
	box-shadow: 0 0 0 3px rgba(27,108,168,0.12);
}

.comment-form #submit {
	background: linear-gradient(135deg, #1B6CA8, #00D4AA);
	color: white;
	font-weight: 700;
	border: none;
	cursor: pointer;
	width: auto;
	padding: 0.85rem 2rem;
	border-radius: 0.875rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form #submit:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 24px rgba(27,108,168,0.25);
}

/* ── Search Form ───────────────────────────────────────── */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form .search-field {
	flex: 1;
	padding: 0.85rem 1.25rem;
	border: 1.5px solid #e2eaf4;
	border-radius: 0.875rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.9rem;
	transition: all 0.25s ease;
}

.search-form .search-field:focus {
	border-color: #1B6CA8;
	outline: none;
	box-shadow: 0 0 0 3px rgba(27,108,168,0.12);
}

.search-form .search-submit {
	background: linear-gradient(135deg, #1B6CA8, #00D4AA);
	color: white;
	font-weight: 700;
	border: none;
	cursor: pointer;
	padding: 0.85rem 1.5rem;
	border-radius: 0.875rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	transition: transform 0.2s ease;
}

.search-form .search-submit:hover {
	transform: scale(1.03);
}

/* ── Widget ────────────────────────────────────────────── */
.widget-title {
	font-size: 1rem;
	font-weight: 800;
	color: #1a1a2e;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e2eaf4;
	position: relative;
}

.widget-title::before {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 2.5rem;
	height: 2px;
	background: linear-gradient(135deg,#1B6CA8,#00D4AA);
	border-radius: 2px;
}

/* ── Utility ────────────────────────────────────────────── */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

.animate-spin {
	animation: spin 1s linear infinite;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
	.topbar {
		display: none !important;
	}
}

@media (max-width: 640px) {
	.blog-card {
		grid-column: span 1;
	}
}
