/*
Theme Name: Alvex
Text Domain: alvex
Version: 1.0
Author: <a href="mailto:espectro.org@gmail.com">Constantine Borodin</a>
E-mail: espectro.org@gmail.com
Web: tempteam.dev
*/

:root {
    --color-zinc-100: #f2f6ed;
    --color-zinc-950: #1c2314;
    --color-primary: #1c2314;
}

/* Homepage consultation form */
.alvex-cta-form {
    width: 100%;
    text-align: left;
}

.alvex-cta-form .wpcf7-form {
    display: grid;
    gap: 14px;
}

.alvex-cta-form .alvex-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
}

.alvex-cta-form .wpcf7-form p {
    margin: 0;
}

.alvex-cta-form .wpcf7-form br {
    display: none;
}

.alvex-cta-form label {
    display: block;
    color: #3f3f46;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.alvex-cta-form label > span[aria-hidden="true"] {
    color: #b91c1c;
}

.alvex-cta-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 7px;
}

.alvex-cta-form input:not([type="submit"]):not([type="checkbox"]),
.alvex-cta-form select,
.alvex-cta-form textarea {
    width: 100%;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    padding: 11px 13px;
    color: #18181b;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.alvex-cta-form input:not([type="submit"]):not([type="checkbox"]):focus,
.alvex-cta-form select:focus,
.alvex-cta-form textarea:focus {
    border-color: #1c2314;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(28, 35, 20, .1);
}

.alvex-cta-form textarea {
    min-height: 112px;
    resize: vertical;
}

.alvex-cta-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231c2314' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    cursor: pointer;
}

.alvex-cta-form .alvex-form-actions > p {
    display: flex;
    align-items: center;
    gap: 14px;
}

.alvex-cta-form input[type="submit"] {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: #1c2314;
    padding: 13px 20px;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.alvex-cta-form input[type="submit"]:hover {
    background: #272a27;
    transform: translateY(-1px);
}

.alvex-cta-form .alvex-form-note {
    color: #71717a;
    font-size: 12px;
    line-height: 1.45;
}

.alvex-cta-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: #b91c1c;
    font-size: 12px;
}

.alvex-cta-form .wpcf7-response-output {
    margin: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.alvex-cta-media img {
    width: 100%;
    min-height: 100%;
}

@media (max-width: 767px) {
    .alvex-cta-form .alvex-form-grid {
        grid-template-columns: 1fr;
    }

    .alvex-cta-form .alvex-form-actions > p {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .alvex-cta-media img {
        min-height: 420px;
    }
}

/* Homepage privacy consent */
.alvex-cta-form .alvex-form-consent .wpcf7-form-control-wrap {
    margin-top: 0;
}

.alvex-cta-form .alvex-form-consent .wpcf7-list-item {
    margin: 0;
}

.alvex-cta-form .alvex-form-consent label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #52525b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.alvex-cta-form .alvex-form-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    border: 1px solid #a1a1aa;
    border-radius: 4px;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.alvex-cta-form .alvex-form-consent input[type="checkbox"]:checked {
    border-color: #1c2314;
    background-color: #1c2314;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='m3.25 8.25 3 3 6.5-7'/%3E%3C/svg%3E");
}

.alvex-cta-form .alvex-form-consent input[type="checkbox"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(28, 35, 20, .15);
}

.alvex-cta-form .alvex-form-consent a {
    color: #18181b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alvex-cta-form input[type="submit"]:disabled {
    opacity: .42;
    cursor: not-allowed;
    transform: none;
}
/* Reusable legal and simple content pages */
.alvex-simple-content {
	color: #3f3f46;
	font-size: 1rem;
	line-height: 1.75;
}

.alvex-simple-content > * + * {
	margin-top: 1.25rem;
}

.alvex-simple-content h2 {
	color: #111511;
	font-size: 1.75rem;
	line-height: 1.3;
	margin-top: 3rem;
}

.alvex-simple-content h3 {
	color: #111511;
	font-size: 1.375rem;
	line-height: 1.35;
	margin-top: 2.25rem;
}

.alvex-simple-content ul,
.alvex-simple-content ol {
	padding-left: 1.5rem;
}

.alvex-simple-content ul { list-style: disc; }
.alvex-simple-content ol { list-style: decimal; }
.alvex-simple-content li + li { margin-top: 0.5rem; }

.alvex-simple-content a {
	color: #111511;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alvex-simple-content blockquote {
	border-left: 3px solid #111511;
	margin: 2rem 0;
	padding-left: 1.5rem;
}

.alvex-simple-content table {
	border-collapse: collapse;
	display: block;
	max-width: 100%;
	overflow-x: auto;
	width: 100%;
}

.alvex-simple-content th,
.alvex-simple-content td {
	border: 1px solid #d4d4d8;
	padding: 0.75rem;
	text-align: left;
}

@media (max-width: 767px) {
	.alvex-simple-content h2 {
		font-size: 1.5rem;
		margin-top: 2.25rem;
	}
}

/* Blog article typography */
.alvex-contact-form .wpcf7-form {
	display: grid;
	gap: 20px;
}

.alvex-contact-form .alvex-form-grid {
	column-gap: 30px;
	row-gap: 20px;
}

.alvex-contact-form input:not([type="submit"]):not([type="checkbox"]),
.alvex-contact-form select,
.alvex-contact-form textarea {
	background-color: #f2f6ed;
	border-color: transparent;
}

#tab-pane-strategize,
#tab-pane-strategize p {
	color: #fff;
}

.alvex-contact-form textarea {
	min-height: 150px;
}

.alvex-contact-form .alvex-form-actions > p {
	align-items: center;
	justify-content: space-between;
}

@media (max-width: 767px) {
	.alvex-contact-form .alvex-form-actions > p {
		align-items: flex-start;
	}
}

.alvex-article-content > * + * {
	margin-top: 1.5rem;
}

.alvex-article-content h2 {
	font-size: 2rem;
	line-height: 1.25;
	margin-top: 3.125rem;
}

.alvex-article-content h3 {
	font-size: 1.5rem;
	line-height: 1.35;
	margin-top: 2.5rem;
}

.alvex-article-content ul,
.alvex-article-content ol {
	padding-left: 1.5rem;
}

.alvex-article-content ul {
	list-style: disc;
}

.alvex-article-content ol {
	list-style: decimal;
}

.alvex-article-content li + li {
	margin-top: 0.625rem;
}

.alvex-article-content blockquote {
	background: #111511;
	border-radius: 0.5rem;
	color: #fff;
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.65;
	margin: 2.5rem -3.75rem;
	padding: 3.125rem;
}

.alvex-article-content iframe,
.alvex-article-content .wp-block-embed {
	border-radius: 0.5rem;
	overflow: hidden;
	width: 100%;
}

.alvex-article-content iframe {
	aspect-ratio: 16 / 9;
	height: auto;
}

@media (max-width: 1023px) {
	.alvex-article-content blockquote {
		margin-left: 0;
		margin-right: 0;
		padding: 2rem;
	}
}

@media (max-width: 767px) {
	.alvex-article-content h2 {
		font-size: 1.625rem;
	}
}
