* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #231f20;
	--secondary-color: #dbded9;
	--tertiary-color: #dcddde;
	--quaternary-color: #e1e0ed;
	--blue: #00aeef;
	--padding: 30px
}

body {
	font-family: "gotham", sans-serif;
	border-top: 30px solid var(--primary-color);
	border-bottom: 100px solid var(--primary-color);
	min-height: 100vh;
	align-items: center;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.flex {
	display: flex;
}

.flex.vertical {
	flex-direction: column;
}

.flex.align-stretch {
	align-items: stretch;
}

.flex.align-end {
	align-items: flex-end;
}

.flex.align-center {
	align-items: center;
}

.flex.justify-space-between {
	justify-content: space-between;
}

.flex.justify-end {
	justify-content: flex-end;
}

.flex.justify-center {
	justify-content: center;
}

.product-list {
	gap: 10px;
	flex-wrap: wrap;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7em;
	align-items: center;
}

.dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.dropdown-toggle {
	cursor: pointer;
	padding: 4px 0;
	transition: color 0.2s ease;
}

.dropdown:hover .dropdown-toggle {
	color: var(--blue);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	min-width: 170px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 1000;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 500;
}

.dropdown-menu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.dropdown-menu a {
	padding: 8px 16px;
	font-size: 1.15em;
	color: var(--primary-color);
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
	background-color: #f4f5f7;
	color: var(--blue);
	text-decoration: none;
}

.dropdown:last-child .dropdown-menu,
.dropdown:nth-last-child(2) .dropdown-menu {
	left: auto;
	right: 0;
}

.contact {
	gap: 5px;
}

.header-right {
	gap: 40px;
}

.header-links {
	gap: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

.responsibility {
	color: #54bc74;
}

header,main {
	max-width: 1680px;
	width: 100vw;
}

header {
	padding: var(--padding);
	padding-bottom: 0;
	height: 127px;
	position: relative;
	z-index: 100;
	font-weight: bold;
}

main {
	padding: var(--padding);
	padding-top: 10px;
}


.logo {
	height: 180px;
}

.hero {
	background-color: var(--secondary-color);
	flex-wrap: wrap;
	overflow: hidden;
}

.hero-image {
	width: 100%;
	max-width: 400px;
}

.order-process {
	counter-reset: steps;
	list-style: none;
	flex-wrap: wrap;
	margin-bottom: 20px;

	li {
		flex-basis: 300px;
		flex-grow: 1;
		flex-shrink: 0;
		counter-increment: steps;
		text-align: left;
		padding: 30px;
		display: flex;
		align-items: center;
		gap: 10px;
	}

	li::before {
		content: counter(steps);
		font-size: 4rem;
		line-height: 1;
		font-weight: bold;
	}
}

.feature-banner {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 50px;
	background-image: url('../img/dalton-bg.jpg');
	background-size: cover;
	background-position: center 20%;
	min-height: 600px;
	color: white;
	text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	gap: 40px;

	h2 {
		font-size: 1em;
		text-transform: uppercase;
		letter-spacing: 0.2em;
	}

	h3 {
		font-size: 3em;
		line-height: 1.1;
	}

	h2,h3 {
		max-width: 400px;
	}

	.button {
		background-color: var(--blue);
		color: white;
		font-weight: bold;
		border: none;
		padding: 10px 20px;
		border-radius: 30px;
		cursor: pointer;
		text-shadow: none;
	}
}

.column {
	flex-grow: 1;
	padding-top: 40px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	border-top: 5px solid white;
}

.column.skew {
	transform: skewX(10deg);
	border-left: 5px solid white;
	border-right: 5px solid white;
	margin-right: -55px;
    margin-left: -55px;

	img {
		transform: skewX(-10deg);
	}
}

.column:nth-child(1) {
	background-color: var(--secondary-color);
}

.column:nth-child(2) {
	background-color: var(--tertiary-color);
}

.column:nth-child(3) {
	background-color: var(--quaternary-color);
}

.banner {
	padding: var(--padding);
	background-color: var(--blue);
	color: white;
	border-top: 5px solid white;
	text-align: center;

	h1 {
		font-weight: 400;
	}
}

.logo-strip {
	padding: var(--padding);
	flex-wrap: wrap;
	gap: 40px;

	img {
		height: 36px;
	}
}

#sign-in,
#contact-dialog {
	border: none;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
	margin: auto;
	inset: 0;
}

#sign-in {
	width: min(420px, 90vw);

	form {
		display: flex;
		gap: 1em;
		flex-direction: column;

		h2 {
			text-align: center;
			font-size: 1.3em;
			text-transform: uppercase;
		}

		input {
			padding: 10px;
			border: 1px solid var(--secondary-color);
			border-radius: 30px;
			font-family: inherit;
		}

		input[type="submit"] {
			background-color: var(--blue);
			color: white;
			font-weight: bold;
			border: none;
			cursor: pointer;
		}
	}
}

#contact-dialog {
	width: min(620px, 95vw);
	max-height: 95vh;
	overflow-y: auto;

	.contact-form {
		display: flex;
		flex-direction: column;
		gap: 1.1em;
		position: relative;
		font-size: 0.9em;

		h2 {
			text-align: center;
			font-size: 1.4em;
			text-transform: uppercase;
			color: var(--primary-color);
			margin-bottom: 4px;
		}

		.dialog-close {
			position: absolute;
			top: -10px;
			right: -6px;
			background: none;
			border: none;
			font-size: 1.6em;
			line-height: 1;
			color: #888;
			cursor: pointer;
			padding: 4px 8px;
			transition: color 0.15s ease;

			&:hover {
				color: var(--primary-color);
			}
		}

		.form-group {
			display: flex;
			flex-direction: column;
			gap: 6px;

			label {
				font-size: 0.85em;
				font-weight: bold;
				text-transform: uppercase;
				letter-spacing: 0.05em;
				color: #444;
				margin-left: 4px;

				.required {
					color: #e53935;
				}

				
			}

			.file-input-note {
				font-size: 0.9em;
				font-weight: normal;
				color: #777;
				text-transform: none;
			}
		}

		.form-row {
			display: flex;
			gap: 12px;
			flex-wrap: wrap;

			.flex-1 {
				flex: 1 1 200px;
			}
		}

		input[type="text"],
		input[type="email"],
		input[type="tel"],
		select,
		textarea {
			width: 100%;
			padding: 9px 14px;
			border: 1px solid var(--secondary-color);
			border-radius: 10px;
			font-family: inherit;
			font-size: 0.95em;
			background: #ffffff;
			color: var(--primary-color);
			outline: none;
			transition: border-color 0.2s ease, box-shadow 0.2s ease;

			&:focus {
				border-color: var(--blue);
				box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
			}
		}

		select {
			border-radius: 30px;
			padding-right: 40px;
			cursor: pointer;
			-webkit-appearance: none;
			-moz-appearance: none;
			appearance: none;
			
			/* Inset arrow: change 18px to move it further inward or outward */
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555555' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
			background-repeat: no-repeat;
			background-position: right 18px center;
			background-size: 10px;
		}

		textarea {
			border-radius: 12px;
			resize: vertical;
			min-height: 70px;
		}

		select {
			cursor: pointer;
		}

		.file-input {
			padding: 6px 10px;
			font-size: 0.85em;
			font-family: inherit;
			border: 1px dashed var(--secondary-color);
			border-radius: 8px;
			background: #fafafa;
			cursor: pointer;
		}

		.checkbox-grid {
			display: grid;
			grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
			gap: 8px;
			padding: 4px 0;

			.checkbox-label {
				display: flex;
				align-items: center;
				gap: 7px;
				font-size: 0.9em;
				font-weight: normal;
				text-transform: none;
				letter-spacing: normal;
				color: var(--primary-color);
				cursor: pointer;

				input[type="checkbox"] {
					accent-color: var(--blue);
					cursor: pointer;
				}
			}
		}

		.form-message {
			display: none;
			padding: 10px 14px;
			border-radius: 8px;
			font-size: 0.9em;
			text-align: center;
			font-weight: 500;

			&.success {
				display: block;
				background-color: #e8f5e9;
				color: #2e7d32;
				border: 1px solid #c8e6c9;
			}

			&.error {
				display: block;
				background-color: #ffebee;
				color: #c62828;
				border: 1px solid #ffcdd2;
			}
		}

		input[type="submit"] {
			font-family: "gotham", sans-serif;
			margin-top: 6px;
			padding: 12px;
			background-color: var(--blue);
			color: white;
			font-weight: bold;
			font-size: 1em;
			text-transform: uppercase;
			letter-spacing: 0.05em;
			border: none;
			border-radius: 30px;
			cursor: pointer;
			transition: background-color 0.2s ease, transform 0.1s ease;

			&:hover {
				background-color: #0096d1;
			}

			&:active {
				transform: scale(0.99);
			}

			&:disabled {
				opacity: 0.6;
				cursor: not-allowed;
			}
		}
	}
}

#sign-in::backdrop,
#contact-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {

	:root {
		--padding: 10px;
	}

	header {
		flex-wrap: wrap;
		gap: 20px;
		height: auto;
		justify-content: center !important;
	}

	.logo {
		height: 120px;
	}

	.header-right {
		gap: 20px;
		align-items: center !important;
	}

	.logo-strip {
		gap: 20px
	}
	
	.product-list {
		justify-content: center !important;
	}
}