/*
Theme Name: Designer Security Modern
Theme URI: https://designersecurity.com
Author: Designer Security, LLC
Author URI: https://designersecurity.com
Description: A light, modern block theme for Designer Security, LLC — cybersecurity, HIPAA compliance, and AI customization for independent audiology practices. Brand purple (#47214e) on a clean white base. No build step.
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: designer-security-modern
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, business
*/

/*
 * Global styles live in theme.json. This file holds only what theme.json
 * cannot express: Contact Form 7 styling, cards, the emergency strip,
 * focus visibility, and reduced-motion handling.
 */

/* ---------- Cards (services grid, resource cards, course card) ---------- */

.ds-card {
	background: #ffffff;
	border: 1px solid #e4dce7;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(36, 26, 39, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	height: 100%;
}

.ds-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(71, 33, 78, 0.12);
}

/* ---------- Credentials / trust strip ---------- */

.ds-credentials .wp-block-group {
	flex-wrap: wrap;
	row-gap: 0.5rem;
}

/* ---------- Emergency strip ---------- */

.ds-emergency a {
	color: #ffffff;
}

/* ---------- Editor note: visible reminder blocks inside patterns ---------- */

.ds-editor-note {
	border: 2px dashed #9e2b25;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	color: #9e2b25;
	font-size: 0.9rem;
}

/* ---------- Contact Form 7 ---------- */

.wpcf7 form {
	display: grid;
	gap: 1rem;
}

.wpcf7 form p {
	margin: 0;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: #241a27;
	margin-bottom: 0.35rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #c9bdd0;
	border-radius: 10px;
	background: #ffffff;
	color: #241a27;
	font: inherit;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: 3px solid rgba(71, 33, 78, 0.35);
	outline-offset: 1px;
	border-color: #47214e;
}

.wpcf7 input[type="submit"] {
	background: #47214e;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 1.75rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	justify-self: start;
	transition: background 0.18s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
	background: #321737;
}

.wpcf7 .wpcf7-not-valid-tip {
	color: #9e2b25;
	font-size: 0.85rem;
}

.wpcf7 .wpcf7-response-output {
	border: 1px solid #47214e;
	border-radius: 10px;
	padding: 0.75rem 1rem;
	margin: 0;
}

/* ---------- Focus visibility for keyboard users ---------- */

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid #47214e;
	outline-offset: 2px;
}

/* ---------- Smooth scrolling for in-page anchors (e.g., /#contact) ---------- */

html {
	scroll-behavior: smooth;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ds-card,
	.wpcf7 input[type="submit"] {
		transition: none;
	}

	.ds-card:hover {
		transform: none;
	}
}
