/* 
* Main stylesheet for domain website
* Spanish Accounting Company Website
*/

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ---------- RESET & BASICS ---------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 40px;
	font-family: 'Poppins', Arial, sans-serif;
	font-size: 16px;
	color: #212121;
}

body {
	background: linear-gradient(to bottom, #FAFAFA, #B2EBF2);
	min-height: 100vh;
	line-height: 1.6;
}

section[id] {
	scroll-margin-top: 40px;
	padding: 4rem 0;
}

a {
	text-decoration: none;
	color: #00897B;
	transition: all 0.3s ease;
}

a:hover {
	color: #FF7043;
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

.btn {
	display: inline-block;
	background-color: #FFCA28;
	color: #212121;
	padding: 12px 24px;
	border-radius: 30px;
	border: none;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
}

.btn:hover {
	box-shadow: 0 4px 10px rgba(255, 160, 0, 0.3);
	transform: translateY(-3px);
}

/* ---------- HEADER ---------- */
header {
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 1rem 0;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.8rem;
	color: #212121;
}

/* ---------- NAVIGATION ---------- */
.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
}

.main-nav ul {
	display: flex;
	gap: 2rem;
}

.main-nav a {
	font-weight: 500;
	padding: 0.5rem 0;
	position: relative;
}

.main-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #FF7043;
	transition: width 0.3s ease;
}

.main-nav a:hover::after {
	width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
	height: calc(100vh - 70px);
	min-height: 500px;
	background-image: url('./img/W1qdg.jpg');
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	text-align: center;
}

.hero::before {
	content: '';
	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;
	width: 100%;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- ABOUT SECTION ---------- */
.about {
	text-align: center;
}

.section-title {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	position: relative;
	display: inline-block;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background-color: #FF7043;
}

.about-content {
	max-width: 800px;
	margin: 0 auto;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 3rem;
}

.service-card {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
}

.service-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.service-content {
	padding: 1.5rem;
}

.service-content h3 {
	margin-bottom: 1rem;
	color: #00897B;
}

/* ---------- ADVANTAGES SECTION ---------- */
.advantages {
	background-color: #FFF8E1;
	padding: 5rem 0;
}

.advantages-content {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
}

.advantage-item {
	flex: 1 1 300px;
	text-align: center;
}

.advantage-icon {
	font-size: 3rem;
	color: #FF7043;
	margin-bottom: 1rem;
}

/* ---------- WHY CHOOSE US SECTION ---------- */
.why-us-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.why-us-text {
	order: 1;
}

.why-us-image {
	order: 2;
}

/* ---------- FORM SECTION ---------- */
.contact-form-section {
	max-width: 700px;
	background-color: #FFF8E1;
	border-radius: 10px;
	padding: 3rem;
	margin: 4rem auto;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
	margin-bottom: 2rem;
	text-align: center;
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group.full-width {
	grid-column: span 2;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
	transition: border 0.3s ease;
}

.form-control:focus {
	border-color: #00897B;
	outline: none;
}

select.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23212121' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-6-6 1.5-1.5L8 8.5l4.5-4.5L14 5.5l-6 6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 40px;
}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
	margin-right: 10px;
	margin-top: 5px;
}

.checkbox-group label {
	font-size: 0.9rem;
}

.submit-btn {
	grid-column: span 2;
	text-align: center;
}

/* ---------- FAQ SECTION ---------- */
.faq-container {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 1rem;
	border-radius: 5px;
	overflow: hidden;
}

.faq-question {
	display: block;
	background-color: white;
	padding: 1rem;
	cursor: pointer;
	position: relative;
	font-weight: 600;
}

.faq-checkbox {
	display: none;
}

.faq-checkbox+.faq-question::after {
	content: '+';
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.faq-checkbox:checked+.faq-question::after {
	content: '-';
}

.faq-answer {
	background-color: #f9f9f9;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-checkbox:checked~.faq-answer {
	max-height: 500px;
	padding: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
	background-color: #212121;
	color: white;
	padding: 3rem 0;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
}

.footer-column {
	flex: 1 1 250px;
}

.footer-column h3 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: #FFCA28;
}

.footer-nav a {
	display: block;
	color: white;
	margin-bottom: 0.5rem;
}

.footer-contact p {
	margin-bottom: 0.5rem;
}

.footer-social {
	margin-top: 1rem;
	display: flex;
	gap: 1rem;
}

.footer-social a {
	color: white;
	font-size: 1.5rem;
}

.footer-bottom {
	margin-top: 3rem;
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
	color: #FFCA28;
}

/* ---------- POLICY PAGES ---------- */
.policy-page {
	background-color: white;
	border-radius: 10px;
	padding: 2rem;
	margin: 10rem auto 5rem;
	max-width: 900px;
	border: 1px solid #ddd;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.policy-page h1 {
	margin-bottom: 2rem;
	text-align: center;
}

.policy-page h2 {
	margin: 2rem 0 1rem;
	color: #00897B;
}

.policy-page p {
	margin-bottom: 1rem;
}

/* ---------- GRACIAS PAGE ---------- */
.gracias-page {
	text-align: center;
	background-color: white;
	border-radius: 10px;
	padding: 3rem;
	margin: 10rem auto 5rem;
	max-width: 700px;
	border: 1px solid #ddd;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.gracias-page h1 {
	margin-bottom: 1.5rem;
	color: #00897B;
}

.gracias-page p {
	margin-bottom: 2rem;
}

/* ---------- COOKIE POPUP ---------- */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	display: none;
	z-index: 9999;
}

.cookie-popup.show {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.cookie-popup p {
	flex: 1 1 300px;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
	.why-us-content {
		grid-template-columns: 1fr;
	}

	.why-us-text,
	.why-us-image {
		order: 0;
	}
}

@media (max-width: 768px) {

	/* Navigation */
	.nav-toggle-label {
		display: block;
		cursor: pointer;
		font-size: 1.5rem;
	}

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background: white;
		height: 0;
		overflow: hidden;
		transition: height 0.3s ease;
	}

	.nav-toggle:checked~.main-nav {
		height: auto;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 1rem 0;
	}

	.main-nav li {
		width: 100%;
		text-align: center;
	}

	.main-nav a {
		display: block;
		padding: 1rem 0;
	}

	/* Hero */
	.hero h1 {
		font-size: 2.5rem;
	}

	/* Form */
	.contact-form {
		grid-template-columns: 1fr;
	}

	.form-group.full-width,
	.submit-btn {
		grid-column: 1;
	}

	/* Footer */
	.footer-content {
		flex-direction: column;
		gap: 3rem;
	}
}

@media (max-width: 576px) {
	.hero h1 {
		font-size: 2rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.contact-form-section {
		padding: 2rem 1rem;
	}

	.cookie-popup {
		bottom: 0;
		left: 0;
		right: 0;
		border-radius: 0;
	}

	.cookie-buttons {
		width: 100%;
		justify-content: center;
	}
}