/* Color Palette Variables */
:root {
	/* Primary Colors */
	--warm-cream: rgb(247, 232, 212);
	--deep-teal: rgb(25, 42, 46);
	--light-gray: rgb(241, 244, 245);
	--pure-white: #ffffff;
	
	/* Complementary Colors */
	--soft-rose: rgb(244, 200, 200);
	--warm-gold: rgb(180, 140, 35);
	--muted-sage: rgb(180, 195, 180);
	--deep-rose: rgb(180, 120, 120);
	--darker-gold: rgb(150, 110, 25);
	
	/* Semantic Colors */
	--primary-bg: var(--warm-cream);
	--secondary-bg: var(--light-gray);
	--accent-color: var(--warm-gold);
	--text-primary: var(--deep-teal);
	--text-secondary: rgb(100, 110, 115);
	--border-color: var(--muted-sage);
	--hover-color: var(--soft-rose);
}

body {
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
	background-color: var(--primary-bg);
	color: var(--text-primary);
	overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
	body {
		padding: 1rem; /* Reduce padding on mobile */
	}
}

h1 {
	font-size: 16px;
	margin-top: 0;
	color: var(--text-primary);
}

h2, h3, h4, h5, h6 {
	color: var(--text-primary);
}

p {
	color: var(--text-secondary);
	font-size: 15px;
	margin-bottom: 10px;
	margin-top: 5px;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 16px;
	background-color: var(--pure-white);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(25, 42, 46, 0.1);
}

.card:hover {
	box-shadow: 0 4px 16px rgba(25, 42, 46, 0.15);
	transition: box-shadow 0.3s ease;
}

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

/* Button Styles */
.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background-color: var(--accent-color);
	color: var(--pure-white);
}

.btn-primary:hover {
	background-color: var(--darker-gold);
	transform: translateY(-1px);
}

.btn-primary:active {
	background-color: var(--deep-teal);
	transform: translateY(0);
}

/* Elegant Header Buttons */
.btn-header {
	background-color: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-header:hover {
	background-color: var(--hover-color);
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-header-primary {
	background-color: var(--accent-color);
	color: var(--pure-white);
	border-color: var(--accent-color);
}

.btn-header-primary:hover {
	background-color: var(--darker-gold);
	border-color: var(--darker-gold);
	color: var(--pure-white);
}

.btn-header-primary:active {
	background-color: var(--deep-teal);
	border-color: var(--deep-teal);
	color: var(--pure-white);
}

.btn-header-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-secondary {
	background-color: var(--muted-sage);
	color: var(--text-primary);
}

.btn-secondary:hover {
	background-color: var(--soft-rose);
}

.btn-outline {
	background-color: transparent;
	color: var(--text-primary);
	border: 2px solid var(--border-color);
}

.btn-outline:hover {
	background-color: var(--hover-color);
	border-color: var(--accent-color);
}

/* Link Styles */
a {
	color: var(--accent-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--deep-rose);
}

/* Dropdown Styles (Services, Edukacja, Gabinet) */
.services-dropdown,
.edukacja-dropdown,
.gabinet-dropdown {
	position: relative;
	display: inline-block;
}

.services-dropdown-toggle,
.edukacja-dropdown-toggle,
.gabinet-dropdown-toggle {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.services-dropdown-toggle i,
.edukacja-dropdown-toggle i,
.gabinet-dropdown-toggle i {
	font-size: 0.75rem;
	transition: transform 0.3s ease;
}

.services-dropdown.active .services-dropdown-toggle i,
.edukacja-dropdown.active .edukacja-dropdown-toggle i,
.gabinet-dropdown.active .gabinet-dropdown-toggle i {
	transform: rotate(180deg);
}

.services-dropdown-menu,
.edukacja-dropdown-menu,
.gabinet-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 0.5rem;
	background-color: var(--pure-white);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	box-shadow: 0 4px 16px rgba(25, 42, 46, 0.15);
	min-width: 250px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1000;
	padding: 0.5rem 0;
}

.services-dropdown.active .services-dropdown-menu,
.edukacja-dropdown.active .edukacja-dropdown-menu,
.gabinet-dropdown.active .gabinet-dropdown-menu {
	opacity: 1;
	visibility: visible;
}

.services-dropdown-menu a,
.edukacja-dropdown-menu a,
.gabinet-dropdown-menu a {
	display: block;
	padding: 0.75rem 1.25rem;
	color: var(--text-primary);
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 0.875rem;
	white-space: nowrap;
}

.services-dropdown-menu a:hover,
.edukacja-dropdown-menu a:hover,
.gabinet-dropdown-menu a:hover {
	background-color: var(--hover-color);
	color: var(--accent-color);
	padding-left: 1.5rem;
}

/* Mobile Dropdown Styles */
.services-dropdown-mobile,
.edukacja-dropdown-mobile,
.gabinet-dropdown-mobile {
	width: 100%;
}

.services-dropdown-mobile .services-dropdown-toggle,
.edukacja-dropdown-mobile .edukacja-dropdown-toggle,
.gabinet-dropdown-mobile .gabinet-dropdown-toggle {
	width: 100%;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 0.25rem 0;
}

.services-dropdown-mobile .services-dropdown-menu,
.edukacja-dropdown-mobile .edukacja-dropdown-menu,
.gabinet-dropdown-mobile .gabinet-dropdown-menu {
	position: static;
	transform: none;
	margin-top: 0.5rem;
	box-shadow: none;
	border: none;
	background-color: var(--light-gray);
	border-radius: 0.375rem;
	max-height: 0;
	overflow: hidden;
	padding: 0;
	transition: max-height 0.3s ease, padding 0.3s ease;
}

.services-dropdown-mobile.active .services-dropdown-menu,
.edukacja-dropdown-mobile.active .edukacja-dropdown-menu,
.gabinet-dropdown-mobile.active .gabinet-dropdown-menu {
	max-height: 500px;
	padding: 0.5rem 0;
}

.services-dropdown-mobile .services-dropdown-menu a,
.edukacja-dropdown-mobile .edukacja-dropdown-menu a,
.gabinet-dropdown-mobile .gabinet-dropdown-menu a {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.services-dropdown-mobile .services-dropdown-menu a:hover,
.edukacja-dropdown-mobile .edukacja-dropdown-menu a:hover,
.gabinet-dropdown-mobile .gabinet-dropdown-menu a:hover {
	background-color: var(--hover-color);
	padding-left: 1.25rem;
}

/* Background Variations */
.bg-primary {
	background-color: var(--primary-bg);
}

.bg-secondary {
	background-color: var(--secondary-bg);
}

.bg-white {
	background-color: var(--pure-white);
}

.bg-accent {
	background-color: var(--accent-color);
}

/* Text Color Utilities */
.text-primary {
	color: var(--text-primary);
}

.text-secondary {
	color: var(--text-secondary);
}

.text-accent {
	color: var(--accent-color);
}

.text-white {
	color: var(--pure-white);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	/* Fix logo scaling on mobile - maintain aspect ratio */
	.hero img {
		max-width: 200px !important;
		height: auto !important;
		width: auto !important;
	}
	
	/* Ensure containers don't overflow */
	.container {
		max-width: 100%;
		overflow-x: hidden;
	}
	
	/* Fix grid layouts for mobile */
	.grid {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
	
	/* Adjust card padding on mobile */
	.card {
		padding: 12px;
		margin: 0 0.5rem;
	}
	
	/* Fix button sizes on mobile */
	.btn {
		padding: 10px 20px;
		font-size: 14px;
		width: 100%;
		margin-bottom: 0.5rem;
	}
	
	.btn-header {
		padding: 0.4rem 0.8rem;
		font-size: 0.8rem;
	}
	
	/* Fix navigation on mobile */
	nav.hidden {
		display: none !important;
	}
	
	/* Ensure text doesn't overflow */
	h1, h2, h3, h4, h5, h6 {
		word-wrap: break-word;
		hyphens: auto;
	}
	
	/* Fix team member images on mobile */
	.team-member img {
		max-width: 120px !important;
		height: 120px !important;
	}
	
	/* Fix team member container sizing */
	.team-member .overflow-hidden {
		width: 120px !important;
		height: 120px !important;
	}
	
	/* Adjust spacing for mobile */
	.py-16, .py-20 {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}
	
	/* Fix footer grid on mobile */
	footer .grid {
		grid-template-columns: 1fr !important;
		text-align: center;
	}
	
	/* Ensure images are responsive */
	img {
		max-width: 100%;
		height: auto;
	}
	
	/* Fix any potential overflow issues with containers */
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	/* Ensure text containers don't overflow */
	.max-w-3xl, .max-w-4xl {
		max-width: 100% !important;
		padding-left: 1rem;
		padding-right: 1rem;
	}
	
	/* Fix modal sizing on mobile */
	.modal .bg-white {
		margin: 1rem;
		max-width: calc(100% - 2rem);
	}
	
	/* Make mobile menu 2/3 width and align from right */
	#mobileMenu {
		width: 66.67% !important;
		max-width: 66.67% !important;
		right: 0 !important;
		left: auto !important;
		top: 0 !important;
	}
}

/* Medium-small devices - start scaling down header text */
@media (max-width: 600px) {
	/* Gradually scale down header text */
	header h1 {
		font-size: 0.8rem !important;
	}
}

/* Small devices - scale down more */
@media (max-width: 500px) {
	/* Scale down header text more */
	header h1 {
		font-size: 0.7rem !important;
	}
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
	body {
		padding: 0.5rem;
	}
	
	/* Make hero logo even smaller on very small screens */
	.hero img {
		max-width: 150px !important;
	}
	
	/* Adjust text sizes */
	h1 {
		font-size: 1.5rem !important;
	}
	
	h2 {
		font-size: 1.25rem !important;
	}
	
	/* Stack buttons vertically */
	.flex.flex-col.md\\:flex-row {
		flex-direction: column !important;
	}
	
	/* Reduce padding further */
	.py-16, .py-20 {
		padding-top: 1rem !important;
		padding-bottom: 1rem !important;
	}
}

/* Very small devices - hide header text completely */
@media (max-width: 400px) {
	/* Hide the header text completely on very small screens */
	header h1 {
		display: none !important;
	}
	
	/* Adjust header layout when text is hidden */
	header .flex.items-center {
		gap: 0.5rem;
	}
}

/* Extremely small devices - stack buttons vertically */
@media (max-width: 300px) {
	/* Stack the basket and account buttons vertically */
	header .flex.items-center.space-x-3 {
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 0.25rem !important;
	}
	
	/* Make buttons smaller to fit better */
	.btn-header {
		padding: 0.3rem 0.6rem !important;
		font-size: 0.7rem !important;
		min-width: auto !important;
	}
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--pure-white);
	border-top: 2px solid var(--accent-color);
	box-shadow: 0 -4px 20px rgba(25, 42, 46, 0.15);
	z-index: 9999;
	padding: 1.5rem;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner.cookie-consent-visible {
	transform: translateY(0);
	opacity: 1;
}

.cookie-consent-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: center;
}

.cookie-consent-text {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	width: 100%;
}

.cookie-consent-icon {
	font-size: 2rem;
	color: var(--accent-color);
	flex-shrink: 0;
	margin-top: 0.25rem;
}

.cookie-consent-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0 0 0.5rem 0;
}

.cookie-consent-message {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0;
}

.cookie-consent-link {
	color: var(--accent-color);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.cookie-consent-link:hover {
	color: var(--darker-gold);
}

.cookie-consent-buttons {
	display: flex;
	gap: 1rem;
	flex-shrink: 0;
}

.cookie-consent-accept,
.cookie-consent-decline {
	padding: 0.75rem 2rem;
	border: none;
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Poppins', sans-serif;
}

.cookie-consent-accept {
	background-color: var(--accent-color);
	color: var(--pure-white);
}

.cookie-consent-accept:hover {
	background-color: var(--darker-gold);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(180, 140, 35, 0.3);
}

.cookie-consent-accept:active {
	transform: translateY(0);
}

.cookie-consent-decline {
	background-color: transparent;
	color: var(--text-primary);
	border: 2px solid var(--border-color);
}

.cookie-consent-decline:hover {
	background-color: var(--hover-color);
	border-color: var(--accent-color);
	color: var(--accent-color);
}

/* Mobile Responsive Styles for Cookie Banner */
@media (max-width: 768px) {
	.cookie-consent-banner {
		padding: 1.25rem 1rem;
	}

	.cookie-consent-content {
		gap: 1.25rem;
	}

	.cookie-consent-text {
		flex-direction: column;
		gap: 0.75rem;
		text-align: center;
	}

	.cookie-consent-icon {
		align-self: center;
		font-size: 1.75rem;
	}

	.cookie-consent-title {
		font-size: 1.125rem;
		text-align: center;
	}

	.cookie-consent-message {
		font-size: 0.875rem;
		text-align: center;
	}

	.cookie-consent-buttons {
		width: 100%;
		flex-direction: column;
		gap: 0.75rem;
	}

	.cookie-consent-accept,
	.cookie-consent-decline {
		width: 100%;
		padding: 0.875rem 1.5rem;
	}
}

@media (max-width: 480px) {
	.cookie-consent-banner {
		padding: 1rem 0.75rem;
	}

	.cookie-consent-icon {
		font-size: 1.5rem;
	}

	.cookie-consent-title {
		font-size: 1rem;
	}

	.cookie-consent-message {
		font-size: 0.8125rem;
	}
}
