@import "./assets/css/variables.css";

/*
 Theme Name:     Bespoke
 Theme URI:      https://www.presentailor.com
 Description:    Bespoke Theme based on Divi
 Author:         Robin Stegt
 Author URI:     https://www.presentailor.com
 Template:       Divi
 Version:        1.0.0
*/

/*
------------------------------------------------------- */

/* Font Face Declarations */
@font-face {
	font-family: "DM Sans";
	src: url("./fonts/DMSans.ttf") format("truetype-variations");
	font-weight: 100 900;
	font-stretch: 75% 125%;
	font-style: normal;
}

/* Font Assignments */
body {
	font-family: "DM Sans", sans-serif;
	font-weight: 300;
}

*:focus {
	outline: var(--gcid-color-primary) solid 2px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "DM Sans", sans-serif;
	font-weight: 600;
}

h1,
h2 {
	padding-bottom: 40px;
}

/* Divi Components */

.container,
.et_pb_section,
.b-container {
	padding-left: 5% !important;
	padding-right: 5% !important;
	width: 100%;
	max-width: 100%;
}

.et_pb_row,
.b-row {
	width: 100%;
	max-width: 100%;
	margin: 0 auto !important;
}

/* Responsive font sizes */
@media only screen and (min-width: 1100px) {
	h1 {
		font-size: 80px;
	}
	h2 {
		font-size: 50px;
	}
	h3 {
		font-size: 30px;
	}
	h4 {
		font-size: 24px;
	}
}

@media only screen and (min-width: 981px) and (max-width: 1100px) {
	h1 {
		font-size: 60px;
	}
	h2 {
		font-size: 40px;
	}
	h3 {
		font-size: 28px;
	}
	h4 {
		font-size: 22px;
	}
}

@media only screen and (min-width: 768px) and (max-width: 980px) {
	h1 {
		font-size: 50px;
	}
	h2 {
		font-size: 40px;
	}
	h3 {
		font-size: 26px;
	}
	h4 {
		font-size: 20px;
	}
}

@media only screen and (max-width: 767px) {
	h1 {
		font-size: 40px;
	}
	h2 {
		font-size: 40px;
	}
	h3 {
		font-size: 22px;
	}
	h4 {
		font-size: 18px;
	}
}

.headline {
	margin-bottom: 20px !important;
}

.headline p {
	font-size: 22px;
	display: inline-flex;
	align-items: center;
	gap: 10px;

	&::before {
		content: "";
		display: inline-block;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background-color: var(--color-accent-bg);
	}
}

/* Header styles moved to /assets/css/components/header.css */

.et_pb_post_content {
	h2,
	h3,
	h4,
	h5,
	h6 {
		padding-top: 20px;
		padding-bottom: 20px;
		font-weight: 300;
	}

	h2 {
		font-size: 1.8rem;
	}

	h3 {
		font-size: 1.5rem;
	}

	h4 {
		font-size: 1.25rem;
	}

	h5 {
		font-size: 1rem;
	}

	h6 {
		font-size: 0.875rem;
	}

	ol,
	ul {
		padding-left: 20px;
		list-style-position: outside;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
}

.feature-list {
	ul {
		list-style-type: none;
		display: flex;
		flex-direction: column;
		gap: 10px;
		position: relative;
		padding-left: 30px;

		li {
			list-style-type: none !important;
			position: relative;
			color: black;

			&::before {
				content: "+ ";
				position: absolute !important;
				color: var(--gcid-primary-color);
				font-size: 2.2em;
				top: -1px;
				left: -30px;
			}

			&::marker {
				display: none;
			}
		}
	}
}

/* Scroll-To-Top Button */

.et_pb_scroll_top.et-pb-icon {
	background: var(--color-accent-bg);
	color: var(--color-accent-text);
}

/* Product Page */

#support ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 0;

	li {
		&:hover {
			text-decoration: underline;
			text-decoration-color: var(--color-accent-text);
		}
	}
}

/* Documents */

#document-content {
	h2 {
		padding-bottom: 20px;
	}

	b,
	strong {
		color: var(--gcid-primary-color);
	}
}

#document-content h2::after {
	content: "";
	display: block;
	width: 80px;
	margin-top: 20px;
	padding-bottom: 40px;
	border-top: 4px solid var(--gcid-primary-color);
}

/* Contact Form 7 */

.grid {
	.col-1 {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		grid-column: span 1;
		gap: 10px;
	}
	.col-2 {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-column: span 2;
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.grid {
		.col-1 {
			grid-template-columns: repeat(1, 1fr);
			grid-column: span 1;
			gap: 0px;
		}
		.col-2 {
			grid-template-columns: repeat(1, 1fr);
			grid-column: span 1;
			gap: 0px;
		}
	}
}

.required {
	color: red;
}

.gdpr-info {
	font-size: 14px;
	padding-bottom: 20px;
}

.wpcf7 {
	max-width: 600px;
	margin: 0 auto;
	border-radius: 5px;
	margin-bottom: 20px;
}

.wpcf7-form {
	display: flex;
	flex-direction: column;
}

.wpcf7-form p {
	margin-bottom: 0px;
	padding-bottom: 0px;
}

.wpcf7-form label {
	margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
	background-color: #f3f3f3;
	padding: 10px;
	border: 2px solid transparent;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
	outline: none;
	border: 2px solid var(--gcid-primary-color);
}

.wpcf7-form input[type="submit"] {
	float: right;
	font-size: 1.2em;
	background-color: var(--gcid-primary-color);
	color: #000000;
	border: none;
	padding: 10px 20px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
	background-color: var(--gcid-primary-color);
}

.wpcf7-response-output {
	margin-top: 20px;
	padding: 20px;
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 3px;
}

.wpcf7-response-output p {
	margin-bottom: 0;
}

.wpcf7-response-output.wpcf7-validation-errors {
	background-color: #f2dede;
}

.wpcf7-response-output.wpcf7-validation-errors ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wpcf7-response-output.wpcf7-validation-errors li {
	margin-bottom: 10px;
}

.wpcf7-response-output {
	background-color: #dc323230;
	color: #dc3232;
	border: none !important;
	padding: 20px !important;
}

.wpcf7-form.sent .wpcf7-response-output {
	background-color: #7cce0030;
	color: #7cce00;
	border: none !important;
	padding: 20px !important;
}

.wpcf7-form.sent > * :not(.wpcf7-response-output) {
	display: none !important;
}
