/* 
 * Main stylesheet for "domain" accounting services website
 * Fully responsive design using only CSS
 */

:root {
	--yellow: #FDE74C;
	--blue: #264653;
	--coral: #F46A6A;
	--white: #FFFFFF;
	--black: #1A1A1D;
}

/* Base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 40px;
	font-family: 'Arial', sans-serif;
	font-size: 16px;
	color: var(--black);
}

body {
	background-color: var(--white);
	line-height: 1.6;
	overflow-x: hidden;
}

section[id] {
	scroll-margin-top: 40px;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
	margin-bottom: 1rem;
	line-height: 1.2;
	font-weight: 700;
	color: var(--blue);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
}

a {
	color: var(--coral);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--blue);
}

.btn {
	display: inline-block;
	background-color: var(--coral);
	color: var(--white);
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.btn:hover {
	background-color: var(--blue);
	color: var(--white);
}

/* Header */
header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.8rem;
	font-weight: 900;
	color: var(--blue);
}

.logo span {
	color: var(--coral);
}

/* Burger Menu - CSS only */


#burger-toggle {
	display: none;
}

.burger-label {
	display: none;
	cursor: pointer;
	flex-direction: column;
	width: 30px;
	height: 21px;
}

.burger-label span {
	height: 3px;
	width: 100%;
	background-color: var(--blue);
	margin-bottom: 6px;
	transition: all 0.3s ease;
}

nav ul {
	display: flex;
	list-style-type: none;
}

nav ul li {
	margin-left: 2rem;
}

nav ul li a {
	color: var(--blue);
	font-weight: 600;
	transition: color 0.3s ease;
}

nav ul li a:hover {
	color: var(--coral);
}

/* Hero Section */
.hero {
	background: linear-gradient(rgba(38, 70, 83, 0.7), rgba(38, 70, 83, 0.7)), url('./img/fvHcG.jpg');
	background-size: cover;
	background-position: center;
	height: 80vh;
	display: flex;
	align-items: center;
	color: var(--white);
	text-align: center;
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: var(--yellow);
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

/* About Section */
.about {
	padding: 5rem 0;
	background-color: var(--white);
}

.about-content {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
}

.about-text {
	flex: 1;
	min-width: 300px;
}

.about-text h2 {
	position: relative;
	padding-bottom: 1rem;
}

.about-text h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 80px;
	height: 3px;
	background-color: var(--yellow);
}

/* Services Section */
.services {
	padding: 5rem 0;
	background-color: #f9f9f9;
}

.services h2 {
	text-align: center;
	margin-bottom: 3rem;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.service-card {
	background-color: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-5px);
}

.service-img {
	height: 180px;
	overflow: hidden;
}

.service-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.service-card:hover .service-img img {
	transform: scale(1.05);
}

.service-content {
	padding: 1.5rem;
}

.service-content h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
	padding: 5rem 0;
}

.benefits h2 {
	text-align: center;
	margin-bottom: 3rem;
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.benefit-item {
	text-align: center;
	padding: 1.5rem;
	border-radius: 8px;
	background-color: #f9f9f9;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.benefit-item img {
	width: 80px;
	height: 80px;
	margin-bottom: 1.5rem;
	object-fit: contain;
}

/* Testimonials Section */
.testimonials {
	padding: 5rem 0;
	background-color: #f9f9f9;
}

.testimonials h2 {
	text-align: center;
	margin-bottom: 3rem;
}

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.testimonial-card {
	background-color: var(--white);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	position: relative;
}

.testimonial-card::before {
	content: '"';
	font-size: 5rem;
	position: absolute;
	top: -10px;
	left: 10px;
	opacity: 0.1;
	color: var(--coral);
	font-family: serif;
}

.testimonial-text {
	font-style: italic;
	margin-bottom: 1.5rem;
}

.testimonial-author {
	font-weight: 700;
	color: var(--blue);
}

/* FAQ Section */
.faq {
	padding: 5rem 0;
}

.faq h2 {
	text-align: center;
	margin-bottom: 3rem;
}

.faq-item {
	margin-bottom: 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
}

.faq-question {
	padding: 1.5rem;
	cursor: pointer;
	position: relative;
	font-weight: 700;
	display: block;
	width: 100%;
	text-align: left;
	background-color: #f9f9f9;
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-checkbox {
	display: none;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 1.5rem;
	transition: all 0.3s ease;
	background-color: var(--white);
}

.faq-checkbox:checked+.faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-checkbox:checked~.faq-answer {
	max-height: 500px;
	padding: 1.5rem;
}

/* Contact Form */
.contact {
	padding: 5rem 0;
	background-color: #f9f9f9;
}

.contact h2 {
	text-align: center;
	margin-bottom: 3rem;
}

.form-container {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--white);
	padding: 2.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--blue);
}

.form-control {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--coral);
}

select.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23264653' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 15px;
	padding-right: 2.5rem;
}

.form-check {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.form-check-input {
	margin-right: 0.5rem;
	margin-top: 0.3rem;
}

.form-check-label {
	font-size: 0.9rem;
}

.form-check-label a {
	text-decoration: underline;
}

.submit-btn {
	background-color: var(--coral);
	border: none;
	padding: 0.75rem 1.5rem;
	color: var(--white);
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.submit-btn:hover {
	background-color: var(--blue);
}

/* Footer */
footer {
	background-color: var(--blue);
	color: var(--white);
	padding: 4rem 0 2rem;
}

.footer-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.footer-section h3 {
	color: var(--yellow);
	margin-bottom: 1.5rem;
}

.footer-section ul {
	list-style-type: none;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: var(--white);
}

.footer-section a:hover {
	color: var(--yellow);
}

.contact-info span {
	display: block;
	margin-bottom: 0.5rem;
}

.contact-icon {
	margin-right: 0.5rem;
	font-weight: bold;
}

.footer-bottom {
	margin-top: 3rem;
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Policy Pages */
.policy-container {
	max-width: 900px;
	margin: 3rem auto;
	padding: 2rem;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.policy-header {
	text-align: center;
	margin-bottom: 2rem;
}

.policy-content h2 {
	margin-top: 2rem;
}

/* Thank You Page */
.thank-you {
	margin: 10rem auto 5rem;
	border: 1px solid #ccc;
	text-align: center;
	max-width: 700px;
	padding: 3rem;
	border-radius: 8px;
}

/* Cookie popup */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--blue);
	color: var(--white);
	padding: 1rem;
	text-align: center;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.cookie-popup.show {
	transform: translateY(0);
}

.cookie-popup p {
	margin: 0;
	max-width: 800px;
}

.cookie-popup .btn {
	background-color: var(--yellow);
	color: var(--black);
}

.cookie-popup .btn:hover {
	background-color: var(--coral);
	color: var(--white);
}

/* Media queries for responsiveness */
@media screen and (max-width: 768px) {
	.burger-label {
		display: flex;
	}

	nav {
		position: fixed;
		top: 60px;
		left: 0;
		width: 100%;
		background-color: var(--white);
		height: 0;
		overflow: hidden;
		transition: height 0.3s ease;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
	}

	#burger-toggle:checked~nav {
		height: auto;
	}

	nav ul {
		flex-direction: column;
		padding: 1rem 0;
	}

	nav ul li {
		margin: 0;
		padding: 1rem 2rem;
		border-bottom: 1px solid #eee;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.about-content {
		flex-direction: column;
	}

	.services-grid,
	.benefits-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}

	.footer-container {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	html {
		font-size: 14px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.container {
		width: 95%;
	}

	.form-container {
		padding: 1.5rem;
	}
}