/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #1e3a5f;
	--primary-dark: #152b47;
	--secondary-color: #14b8a6;
	--secondary-light: #5eead4;
	--text-dark: #1f2937;
	--text-light: #6b7280;
	--bg-light: #f8fafc;
	--bg-white: #ffffff;
	--border-color: #e2e8f0;
	--success-color: #14b8a6;
	--warning-color: #f59e0b;
	--shadow: 0 1px 3px 0 rgba(30, 58, 95, 0.1),
		0 1px 2px 0 rgba(30, 58, 95, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(30, 58, 95, 0.1),
		0 4px 6px -2px rgba(30, 58, 95, 0.05);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--bg-light);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
header {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border-color);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--shadow);
}

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

.logo-link {
	text-decoration: none;
	display: flex;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.logo-image {
	height: 50px;
	width: auto;
}

.logo h1 {
	font-size: 1.5rem;
	color: var(--primary-color);
	font-weight: 700;
	margin: 0;
}

nav {
	display: flex;
	gap: 2rem;
}

nav a {
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

nav a:hover {
	color: var(--primary-color);
}

/* Ad Containers */
.ad-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 20px;
	display: none;
}

.ad-placeholder {
	background: var(--bg-light);
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ad-label {
	color: var(--text-light);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ad-top .ad-placeholder,
.ad-bottom .ad-placeholder {
	min-height: 90px;
}

.ad-mid .ad-placeholder {
	min-height: 250px;
}

/* Hero Section */
.hero-home {
	text-align: center;
	padding: 4rem 0 3rem;
	max-width: 800px;
	margin: 0 auto;
}

.hero-home h2 {
	font-size: 3rem;
	color: var(--text-dark);
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--text-light);
	line-height: 1.8;
}

/* Calculators Grid */
.calculators-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin: 3rem 0;
}

.calculator-card-home {
	background: var(--bg-white);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: var(--shadow-lg);
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

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

.calculator-icon {
	margin-bottom: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.calculator-icon img {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.calculator-card-home h3 {
	font-size: 1.5rem;
	color: var(--text-dark);
	margin-bottom: 1rem;
}

.calculator-card-home p {
	color: var(--text-light);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.feature-list {
	list-style: none;
	margin-bottom: 1.5rem;
}

.feature-list li {
	padding: 0.5rem 0;
	color: var(--text-light);
	position: relative;
	padding-left: 1.5rem;
}

.feature-list li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--success-color);
	font-weight: bold;
}

.btn-calculator {
	display: inline-block;
	padding: 0.875rem 1.5rem;
	background: var(--primary-color);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
	transition: background 0.3s;
}

.btn-calculator:hover {
	background: var(--primary-dark);
}

/* About Section */
.about-section {
	margin: 5rem 0;
}

.about-section h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-dark);
}

.benefits-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 992px) {
	.benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.benefit-card {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--shadow);
	text-align: center;
}

.benefit-icon {
	font-size: 2.5rem;
	color: var(--success-color);
	margin-bottom: 1rem;
}

.benefit-card h3 {
	font-size: 1.25rem;
	color: var(--text-dark);
	margin-bottom: 0.75rem;
}

.benefit-card p {
	color: var(--text-light);
	font-size: 0.95rem;
}

/* Use Cases Section */
.use-cases-section {
	margin: 5rem 0;
	background: var(--bg-white);
	padding: 4rem 2rem;
	border-radius: 12px;
}

.use-cases-section h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-dark);
}

.use-cases-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.use-cases-grid {
		grid-template-columns: 1fr;
	}
}

.use-case-card {
	padding: 1.5rem;
}

.use-case-card h3 {
	font-size: 1.25rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.use-case-card p {
	color: var(--text-light);
	line-height: 1.8;
}

/* FAQ Section */
.faq-section {
	margin: 5rem 0;
}

.faq-section h2 {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-dark);
}

.faq-item-home {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow);
}

.faq-item-home h3 {
	color: var(--text-dark);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.faq-item-home p {
	color: var(--text-light);
	line-height: 1.8;
}

/* CTA Section */
.cta-section-home {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-dark)
	);
	color: white;
	padding: 4rem 2rem;
	border-radius: 12px;
	text-align: center;
	margin: 5rem 0;
}

.cta-section-home h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.cta-section-home p {
	font-size: 1.25rem;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}

.btn-cta {
	display: inline-block;
	padding: 1rem 2rem;
	background: white;
	color: var(--primary-color);
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
	background: var(--text-dark);
	color: white;
	padding: 3rem 0 1rem;
	margin-top: 5rem;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h4 {
	margin-bottom: 1rem;
	color: white;
}

.footer-section ul {
	list-style: none;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s;
}

.footer-section a:hover {
	color: white;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 2rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
}

.disclaimer {
	font-size: 0.875rem;
	margin-top: 1rem;
}

/* Calculator Pages Styles */
.hero {
	text-align: center;
	padding: 3rem 0 2rem;
}

.hero h2 {
	font-size: 2.5rem;
	color: var(--text-dark);
	margin-bottom: 1rem;
	font-weight: 700;
}

.subtitle {
	font-size: 1.25rem;
	color: var(--text-light);
	max-width: 600px;
	margin: 0 auto;
}

/* Calculator Layout */
.calculator-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 2rem 0;
}

.calculator-section {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}

.calculator-card,
.results-card {
	background: var(--bg-white);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: var(--shadow-lg);
}

.calculator-card h3,
.results-card h3 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-dark);
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-dark);
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--primary-color);
}

/* Remove browser validation styling */
.form-group input:valid,
.form-group input:invalid {
	box-shadow: none;
}

.form-group input:focus:valid,
.form-group input:focus:invalid {
	border-color: var(--primary-color);
}

.help-text {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--text-light);
}

.btn-calculate {
	width: 100%;
	padding: 1rem;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
}

.btn-calculate:hover {
	background: var(--primary-dark);
}

/* Results Section */
.results-section {
	grid-column: 1 / -1;
}

.result-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.result-item {
	background: var(--bg-light);
	padding: 1.5rem;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.result-item.highlight {
	background: var(--primary-color);
	color: white;
}

.result-label {
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0.9;
}

.result-item.highlight .result-label {
	opacity: 1;
}

.result-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.chart-container {
	margin: 2rem 0;
	max-height: 300px;
}

.breakdown {
	background: var(--bg-light);
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
}

.breakdown h4 {
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.breakdown-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
	border-bottom: none;
	font-weight: 700;
	font-size: 1.125rem;
}

/* Content Sections */
.content-section {
	margin: 4rem 0;
}

.content-section h2 {
	font-size: 2rem;
	margin-bottom: 2rem;
	text-align: center;
	color: var(--text-dark);
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
	margin-top: 2rem;
}

.content-card {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: var(--shadow);
}

.content-card h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.info-box {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	border-left: 4px solid var(--primary-color);
	box-shadow: var(--shadow);
	margin-top: 2rem;
}

.info-box h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.info-box p {
	margin-bottom: 1rem;
}

.info-box p:last-child {
	margin-bottom: 0;
}

/* FAQ Section - General */
.faq-item {
	background: var(--bg-white);
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow);
}

.faq-item h3 {
	color: var(--text-dark);
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.faq-item p {
	color: var(--text-light);
	line-height: 1.8;
}

/* CTA Section - General */
.cta-section {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-dark)
	);
	color: white;
	padding: 3rem 2rem;
	border-radius: 12px;
	text-align: center;
	margin: 4rem 0;
}

.cta-section h2 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

/* Salary Calculator Specific Styles */
.checkbox-group {
	display: flex;
	align-items: center;
}

.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
	width: auto;
	cursor: pointer;
}

.breakdown-item.deduction {
	color: var(--warning-color);
}

.breakdown-item.total {
	border-top: 2px solid var(--primary-color);
	padding-top: 1rem;
	margin-top: 0.5rem;
}

.tax-rate-info {
	background: var(--bg-light);
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
}

.tax-rate-info h4 {
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.tax-rate-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.tax-rate-item {
	background: var(--bg-white);
	padding: 1rem;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rate-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-light);
}

.rate-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* Stamp Duty Calculator Specific Styles */
.info-banner {
	background: #fef3c7;
	border-left: 4px solid var(--warning-color);
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.band-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border-color);
}

.band-item:last-child {
	border-bottom: none;
}

.band-label {
	color: var(--text-dark);
	font-weight: 500;
}

.band-calculation {
	color: var(--text-light);
	font-size: 0.875rem;
}

.band-amount {
	color: var(--primary-color);
	font-weight: 600;
}

.breakdown-total {
	display: flex;
	justify-content: space-between;
	padding-top: 1rem;
	margin-top: 1rem;
	border-top: 2px solid var(--primary-color);
	font-weight: 700;
	font-size: 1.125rem;
}

.savings-info {
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	padding: 1.5rem;
	border-radius: 8px;
	margin: 2rem 0;
}

.savings-info h4 {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
}

.savings-info p {
	margin: 0;
	font-size: 1rem;
}

/* Loan Calculator Specific Styles */
.term-input-group {
	display: flex;
	gap: 0.5rem;
}

.term-input-group input {
	flex: 2;
}

.term-input-group select {
	flex: 1;
}

.affordability-check {
	background: var(--bg-light);
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
}

.affordability-check h4 {
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.affordability-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.affordability-item {
	background: var(--bg-white);
	padding: 1rem;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.affordability-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--text-light);
}

.affordability-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.affordability-note {
	font-size: 0.875rem;
	color: var(--text-light);
	margin-top: 1rem;
	font-style: italic;
}

/* Resource Article Styles */
.resource-article {
	max-width: 800px;
	margin: 3rem auto;
	background: var(--bg-white);
	padding: 3rem;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
}

.resource-article h1 {
	font-size: 2.5rem;
	color: var(--text-dark);
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.article-intro {
	font-size: 1.125rem;
	color: var(--text-light);
	line-height: 1.8;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--border-color);
}

.article-section {
	margin: 3rem 0;
}

.article-section h2 {
	font-size: 1.875rem;
	color: var(--text-dark);
	margin-bottom: 1rem;
	margin-top: 2rem;
}

.article-section h3 {
	font-size: 1.375rem;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
	margin-top: 1.5rem;
}

.article-section p {
	color: var(--text-light);
	line-height: 1.8;
	margin-bottom: 1rem;
}

.article-section ul,
.article-section ol {
	margin: 1rem 0 1rem 2rem;
	color: var(--text-light);
	line-height: 1.8;
}

.article-section li {
	margin-bottom: 0.5rem;
}

.article-section a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
}

.article-section a:hover {
	text-decoration: underline;
}

.cta-box {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-dark)
	);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	text-align: center;
	margin: 3rem 0;
}

.cta-box h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.cta-box p {
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
	.hero-home h2 {
		font-size: 2.5rem;
	}

	.hero h2 {
		font-size: 2rem;
	}

	.subtitle {
		font-size: 1rem;
	}

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

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

	.calculator-section {
		grid-template-columns: 1fr;
	}

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

	nav {
		gap: 1rem;
	}
}

@media (max-width: 768px) {
	.resource-article {
		padding: 2rem 1.5rem;
	}

	.resource-article h1 {
		font-size: 2rem;
	}

	.article-section h2 {
		font-size: 1.5rem;
	}

	.article-section h3 {
		font-size: 1.25rem;
	}
}

@media (max-width: 640px) {
	header .container {
		flex-direction: column;
		gap: 1rem;
	}

	nav {
		flex-direction: column;
		gap: 0.5rem;
		text-align: center;
	}

	.hero-home h2 {
		font-size: 2rem;
	}

	.hero h2 {
		font-size: 1.75rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.about-section h2,
	.use-cases-section h2,
	.faq-section h2,
	.cta-section-home h2 {
		font-size: 2rem;
	}

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

	.cta-buttons {
		flex-direction: column;
	}

	.btn-cta {
		width: 100%;
	}
}
