/*
* Clarke's Care - Main Stylesheet
*/

/* ===== RESET & BASE STYLES ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 20px;
	color: #333;
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
	text-align: center;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 20px;
}

a {
	color: #4B2E83;
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: #4CAF50;
}

img {
	max-width: 100%;
	height: auto;
}

ul {
	list-style: none;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

section {
	padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 4px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	font-size: 1rem;
}

/* ===== PAGE BANNER ===== */
/* Used on inner pages (Services, About, Reviews, Contact) */
.page-banner {
	height: 600px; /* Increased to match home page hero image height */
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
}

.page-banner .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
}

.banner-content {
	position: relative;
	z-index: 1;
	color: white;
	max-width: 600px;
	padding: 30px;
	background-color: rgba(75, 46, 131, 0.8); /* Added purple background to match home page */
	border-radius: 8px;
	margin: 0 auto;
	text-align: center;
}

.banner-content h1 {
	color: white;
	margin-bottom: 10px;
}

.banner-content p {
	font-size: 1.2rem;
	margin-bottom: 0;
}

.btn-primary {
	background-color: #4CAF50;
	color: white;
}

.btn-primary:hover {
	background-color: #388E3C;
	color: white;
}

.btn-secondary {
	background-color: #4B2E83;
	color: white;
}

.btn-secondary:hover {
	background-color: #6E5BAA;
	color: white;
}

.btn-outline {
	background-color: transparent;
	border: 2px solid #4CAF50;
	color: #4CAF50;
}

.btn-outline:hover {
	background-color: #4CAF50;
	color: white;
}

/* ===== TOP BAR ===== */
.top-bar {
	background-color: #4B2E83;
	color: white;
	padding: 10px 0;
}

.top-bar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.top-bar a {
	color: white;
	margin-left: 15px;
}

.top-bar a:hover {
	color: #4CAF50;
}

.contact-info {
	display: flex;
}

.cta-button .btn {
	padding: 8px 16px;
	font-size: 0.9rem;
}

/* ===== HEADER ===== */
.main-header {
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.main-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
}

.logo img {
	height: 60px;
}

.main-nav ul {
	display: flex;
	align-items: center;
}

.main-nav li {
	margin: 0 15px;
	display: flex;
	align-items: center;
}

.main-nav a {
	color: #333;
	font-weight: 600;
	padding: 10px 0;
	position: relative;
}

.main-nav a:after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: #4CAF50;
	transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
	width: 100%;
}

.quote-button {
	margin-right: 10px;
}

.phone-button .btn,
.quote-button .btn {
	padding: 10px 20px;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.mobile-menu-toggle span {
	width: 30px;
	height: 3px;
	background-color: #4B2E83;
	margin: 3px 0;
	transition: all 0.3s ease;
}

/* Add styles for the active state of the hamburger menu */
.mobile-menu-toggle span.active:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle span.active:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle span.active:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

/* Add styles for body when menu is open to prevent scrolling */
body.menu-open {
    overflow: hidden;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #4B2E83;
	z-index: 999;
	padding: 80px 20px 20px;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.mobile-menu.active {
	transform: translateX(0);
	display: block;
}

.mobile-menu ul {
	margin-bottom: 30px;
}

.mobile-menu li {
	margin-bottom: 15px;
}

.mobile-menu a {
	color: white;
	font-size: 1.2rem;
	display: block;
	padding: 10px 0;
}

.mobile-contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.mobile-contact a {
	margin-bottom: 15px;
}

/* ===== HERO SECTION ===== */
.hero-section {
	padding: 0;
}

.hero-image {
	height: 600px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
}

.hero-image .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
	position: relative;
	z-index: 1;
	color: white;
	max-width: 600px;
	padding: 30px;
	background-color: rgba(75, 46, 131, 0.8);
	border-radius: 8px;
}

.hero-content h1 {
	color: white;
	margin-bottom: 15px;
}

.hero-content h2 {
	color: #4CAF50;
	text-align: left;
	font-size: 1.5rem;
	margin-bottom: 25px;
}

.hero-cta {
	margin-bottom: 20px;
}

.service-select {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	background-color: white;
	cursor: pointer;
}

.contact-bar {
	font-size: 0.9rem;
}

.contact-bar a {
	color: #4CAF50;
	font-weight: 600;
}

/* ===== QUICK CONTACT SECTION ===== */
.quick-contact-section {
	background-color: #E8F5E9;
	padding: 30px 0;
}

.quick-contact-form {
	display: flex;
	flex-direction: column;
}

.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}

.form-group {
	flex: 1;
}

input, textarea, select {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* ===== VISITING CARE SECTION ===== */
.visiting-care-section {
	text-align: center;
	background-color: #f9f9f9;
}

.section-divider {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 30px;
}

.section-divider span {
	width: 10px;
	height: 10px;
	background-color: #4CAF50;
	border-radius: 50%;
	margin: 0 5px;
}

.visiting-care-section p {
	max-width: 800px;
	margin: 0 auto;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
	background-color: white;
}

.content-wrapper {
	display: flex;
	align-items: center;
	gap: 40px;
}

.text-content {
	flex: 1;
}

.image-content {
	flex: 1;
}

.image-content img {
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.service-item {
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.service-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-number {
	color: #4CAF50;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.service-item h3 {
	margin-bottom: 10px;
}

.service-item p {
	margin-bottom: 0;
}

/* ===== SERVICES SECTION ===== */
.services-section {
	background-color: #f9f9f9;
	text-align: center;
}

.services-section p {
	max-width: 800px;
	margin: 0 auto 40px;
}

.services-cards {
	display: flex;
	gap: 30px;
}

.service-card {
	flex: 1;
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
	height: 200px;
	overflow: hidden;
}

.service-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
	transform: scale(1.1);
}

.service-content {
	padding: 20px;
	text-align: center;
}

.service-content h3 {
	margin-bottom: 10px;
}

.service-content p {
	margin-bottom: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
	background-color: white;
	text-align: center;
}

.testimonials-section p {
	max-width: 800px;
	margin: 0 auto 40px;
}

.testimonial-slider {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.testimonial-slides {
	position: relative;
	height: 300px;
}

.testimonial-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.testimonial-slide.active {
	opacity: 1;
}

.testimonial-content {
	background-color: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	position: relative;
}

.quote-icon {
	color: #4CAF50;
	font-size: 2rem;
	margin-bottom: 20px;
}

.testimonial-author {
	margin-top: 20px;
}

.testimonial-author h4 {
	color: #4B2E83;
	margin-bottom: 5px;
}

.testimonial-controls {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.testimonial-controls button {
	background-color: transparent;
	border: 2px solid #4B2E83;
	color: #4B2E83;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin: 0 10px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.testimonial-controls button:hover {
	background-color: #4B2E83;
	color: white;
}

/* ===== QUALITY CARE SECTION ===== */
.quality-care-section {
	background-color: #f9f9f9;
}

.quality-care-section .text-content {
	padding: 0 0 0 40px;
}

.cta-box {
	background-color: #4B2E83;
	color: white;
	padding: 20px;
	border-radius: 8px;
	margin-top: 30px;
}

.cta-box p {
	margin-bottom: 0;
	font-size: 1.2rem;
}

.phone-link {
	color: #4CAF50;
	font-weight: 700;
}

/* ===== FOOTER ===== */
.main-footer {
	background-color: #222;
	color: white;
}

.footer-top {
	padding: 60px 0;
}

.footer-top .container {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.footer-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.footer-logo {
	margin-bottom: 30px;
}

.footer-logo img {
	height: 60px;
	margin-bottom: 15px;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.contact-item i {
	color: #4CAF50;
}

.contact-item a {
	color: white;
}

.footer-form {
	flex: 1;
}

.footer-form h3 {
	color: white;
	margin-bottom: 20px;
}

.contact-form .form-group {
	margin-bottom: 15px;
}

.footer-bottom {
	background-color: #111;
	padding: 20px 0;
}

.footer-bottom .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.social-links {
	display: flex;
	gap: 15px;
}

.social-links a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background-color: #333;
	color: white;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background-color: #4CAF50;
}

.copyright {
	font-size: 0.9rem;
}

/* ===== ADDITIONAL PAGE STYLES ===== */

/* Services Page */
.services-intro-section,
.reviews-intro-section,
.about-intro-section,
.contact-info-section {
	text-align: center;
	background-color: white;
}

.service-types-section {
	background-color: #f9f9f9;
}

.service-type {
	display: flex;
	align-items: stretch; /* Changed from center to stretch to match heights */
	gap: 40px; /* Ensures proper spacing between image and text */
	margin-bottom: 60px;
}

.service-type:last-child {
	margin-bottom: 0;
}

.service-type.reverse {
	flex-direction: row-reverse;
}

/* Modified to make images match the height of text content */
.service-image {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: auto; /* Removed max-height constraint */
	overflow: hidden; /* Changed from visible to hidden */
}

.service-image img {
	width: 100%;
	height: 100%; /* Changed from auto to 100% to fill container */
	object-fit: cover; /* Changed from contain to cover */
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-details {
	flex: 1;
}

.service-details ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

.service-details li {
	margin-bottom: 8px;
}

.additional-services-section {
	background-color: white;
}

.cta-section {
	background-color: #E8F5E9;
	text-align: center;
}

.cta-content {
	max-width: 800px;
	margin: 0 auto;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

/* About Page */
.about-content {
	display: flex;
	gap: 40px;
	margin-top: 40px;
	text-align: left;
}

.about-image {
	flex: 1;
}

.about-image img {
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
	flex: 1;
}

.about-text ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
}

.about-text li {
	margin-bottom: 10px;
}

.our-approach-section {
	background-color: #f9f9f9;
}

.approach-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.approach-item {
	text-align: center;
	padding: 30px 20px;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.approach-item:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.approach-icon {
	font-size: 2.5rem;
	color: #4CAF50;
	margin-bottom: 20px;
}

/* Reviews Page */
.featured-testimonials-section {
	background-color: white;
}

.testimonial-card {
	max-width: 800px;
	margin: 0 auto 40px;
}

.testimonial-card:last-child {
	margin-bottom: 0;
}

.additional-testimonials-section {
	background-color: #f9f9f9;
}

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.testimonial-item {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.testimonial-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.share-story-section {
	background-color: #4B2E83;
	color: white;
	text-align: center;
}

.share-story-content {
	max-width: 800px;
	margin: 0 auto;
}

.share-story-content h2 {
	color: white;
}

/* Contact Page */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.contact-card {
	text-align: center;
	padding: 30px 20px;
	background-color: #f9f9f9;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.contact-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
	font-size: 2.5rem;
	color: #4CAF50;
	margin-bottom: 20px;
}

.contact-card a {
	display: block;
	margin-top: 10px;
	font-weight: 600;
}

.contact-form-section {
	background-color: #f9f9f9;
}

.contact-form-section .container {
	display: flex;
	gap: 40px;
}

.form-container {
	flex: 2;
	background-color: white;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.consultation-box {
	flex: 1;
	background-color: #4B2E83;
	color: white;
	padding: 40px;
	border-radius: 8px;
	align-self: flex-start;
	position: sticky;
	top: 120px;
}

.consultation-box h3 {
	color: white;
}

.consultation-box .btn {
	margin-top: 20px;
}

.contact-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.faq-section {
	background-color: white;
}

.faq-container {
	max-width: 800px;
	margin: 40px auto 0;
}

.faq-item {
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.faq-question {
	padding: 20px;
	background-color: #f9f9f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.faq-question h3 {
	margin: 0;
	font-size: 1.1rem;
}

.toggle-icon {
	color: #4CAF50;
}

.faq-answer {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
	padding: 20px;
	max-height: 1000px;
}

.faq-item.active .toggle-icon .fa-plus:before {
	content: "\f068";
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
	section {
		padding: 60px 0;
	}

	.hero-image {
		height: 500px;
	}

	.services-grid {
		gap: 20px;
	}

	.services-cards {
		flex-direction: column;
	}

	.service-card {
		max-width: 600px;
		margin: 0 auto 30px;
	}

	.approach-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.top-bar .container {
		flex-direction: column;
		gap: 10px;
	}

	.main-nav, .phone-button {
		display: none;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.content-wrapper {
		flex-direction: column;
	}

	/* Fix for service images on mobile */
	.service-type {
		flex-direction: column;
		gap: 30px;
	}

	.service-type.reverse {
		flex-direction: column;
	}

	.service-image {
		width: 100%;
		max-height: none; /* Remove height constraint on mobile */
		margin-bottom: 20px;
	}

	.service-image img {
		max-width: 100%;
		object-fit: contain; /* Ensure full image is visible */
		height: auto;
		max-height: none; /* Allow image to take its natural height */
	}

	.image-content {
		order: -1;
		margin-bottom: 30px;
	}

	.quality-care-section .text-content {
		padding: 0;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.footer-top .container {
		flex-direction: column;
	}

	.form-row {
		flex-direction: column;
		gap: 15px;
	}

	.footer-bottom .container {
		flex-direction: column;
		gap: 20px;
	}

	/* Additional responsive styles for inner pages */
	.service-type,
	.service-type.reverse {
		flex-direction: column;
		gap: 20px;
	}

	.about-content {
		flex-direction: column;
		gap: 20px;
	}

	.approach-grid {
		grid-template-columns: 1fr;
	}

	.testimonial-grid {
		grid-template-columns: 1fr;
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-form-section .container {
		flex-direction: column;
	}

	.consultation-box {
		position: static;
		margin-top: 30px;
	}

	.cta-buttons {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 576px) {
	.hero-content {
		padding: 20px;
	}

	.hero-image {
		height: 400px;
	}

	section {
		padding: 40px 0;
	}

	.testimonial-content {
		padding: 20px;
	}

	.testimonial-slides {
		height: 350px;
	}
}
