/*
Theme Name: Stack Clinical Research
Theme URI: https://stackclinical.com
Author: Stack Clinical Research
Description: Single-page holding page for Stack Clinical Research. No header, no footer, contact form only.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stack-clinical
*/

:root {
	--sc-green: #2b7457;
	--sc-ink: #1c3a13;
	--sc-text: #46514a;
	--sc-line: #cdd6cf;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: #fff;
	color: var(--sc-text);
	font-family: "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.sc-page {
	max-width: 52rem;
	margin: 0 auto;
	padding: 4.5rem 1.5rem 5rem;
	text-align: center;
}

.sc-logo {
	display: block;
	width: 11.5rem;
	height: auto;
	margin: 0 auto 2.25rem;
}

.sc-sub {
	margin: 0 0 1.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 4.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--sc-ink);
}

.sc-tag {
	margin: 0 auto;
	font-size: 1.05rem;
}

.sc-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 2.75rem 0;
	padding: 1.1rem 0;
	list-style: none;
	border-top: 1px solid var(--sc-line);
	border-bottom: 1px solid var(--sc-line);
}

.sc-items li {
	padding: 0.15rem 1.1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sc-ink);
}

.sc-items li + li { border-left: 1px solid var(--sc-line); }

.sc-contact {
	max-width: 34rem;
	margin: 0 auto;
	text-align: left;
	scroll-margin-top: 2rem;
}

/* Shared field look for the WPForms form and the built-in fallback form */
.sc-contact input[type="text"],
.sc-contact input[type="email"],
.sc-contact input[type="tel"],
.sc-contact textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	color: var(--sc-ink);
	background: #fff;
	border: 1px solid #b4c0b7;
	border-radius: 2px;
	box-shadow: none;
}

.sc-contact input::placeholder,
.sc-contact textarea::placeholder { color: #8a948c; opacity: 1; }

.sc-contact input:focus,
.sc-contact textarea:focus {
	outline: none;
	border-color: var(--sc-green);
	box-shadow: 0 0 0 1px var(--sc-green);
}

.sc-contact button,
.sc-contact .wpforms-submit {
	display: block;
	width: 100%;
	padding: 0.85rem 1.5rem;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	background: var(--sc-ink);
	border: 0;
	border-radius: 2px;
	box-shadow: none;
	transition: background-color 0.15s;
}

.sc-contact button:hover,
.sc-contact .wpforms-submit:hover { background: var(--sc-green); }

.sc-form input,
.sc-form textarea { margin-bottom: 0.85rem; }

.sc-form textarea { resize: vertical; }

.sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sc-notice {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	font-size: 0.95rem;
	color: var(--sc-ink);
	background: #eef4f0;
	border-left: 3px solid var(--sc-green);
}

.sc-notice.is-error { color: #7f1d1d; background: #fdf1f1; border-left-color: #b91c1c; }

/* WPForms overrides (its own selectors are highly specific, so match them) */
.sc-contact div.wpforms-container-full {
	margin: 0;
	--wpforms-field-border-radius: 2px;
	--wpforms-button-border-radius: 2px;
	--wpforms-button-background-color: var(--sc-ink);
	--wpforms-button-background-color-alt: var(--sc-green);
	--wpforms-button-text-color: #fff;
	--wpforms-field-border-color: #b4c0b7;
	--wpforms-field-text-color: var(--sc-ink);
}

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field { padding: 0 0 0.85rem; }

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field input[type="text"],
.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field input[type="email"],
.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field input[type="tel"],
.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field textarea {
	width: 100%;
	max-width: 100%;
	height: auto;
	padding: 0.75rem 0.9rem;
	font-size: 1rem;
	color: var(--sc-ink);
	background: #fff;
	border: 1px solid #b4c0b7;
	border-radius: 2px;
	box-shadow: none;
}

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field input:focus,
.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field textarea:focus {
	border-color: var(--sc-green);
	box-shadow: 0 0 0 1px var(--sc-green);
}

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field-row { max-width: 100%; }

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-submit-container { padding: 0.25rem 0 0; }

.sc-contact div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.85rem 1.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	background: var(--sc-ink);
	border: 0;
	border-radius: 2px;
	box-shadow: none;
}

.sc-contact div.wpforms-container-full .wpforms-form button[type="submit"].wpforms-submit:hover { background: var(--sc-green); }

.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field-label,
.sc-contact div.wpforms-container-full .wpforms-form .wpforms-field-sublabel { color: var(--sc-text); }

@media (max-width: 720px) {
	.sc-page { padding-top: 3rem; }
	.sc-items { flex-direction: column; align-items: center; }
	.sc-items li { padding: 0.35rem 0; }
	.sc-items li + li { border-left: 0; }
}
