/*
Theme Name: AtomTech
Theme URI: https://www.atomtechinc.com
Author: AtomTech
Description: Custom block theme for AtomTech – industrial automation, controls engineering, SCADA and field services. Rebuilt from the Squarespace site with an emphasis on clean semantic markup and AI/answer-engine readability.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: Proprietary
Text Domain: atomtech
*/

/* ---------- Brand wordmark ---------- */
.atomtech-logo {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	line-height: 1;
}
.atomtech-logo span { color: var(--wp--preset--color--ink); font-weight: 500; }
.atomtech-logo:hover { text-decoration: none; }
.atomtech-logo--image { display: block; }
.atomtech-logo--image img { display: block; height: 30px; width: auto; }
@media (max-width: 600px) { .atomtech-logo--image img { height: 24px; } }

/* Page title band: shows the page's featured image under the overlay, plain ink without one. */
.wp-block-cover.atomtech-page-hero,
.wp-block-cover.atomtech-hero { background-color: var(--wp--preset--color--ink); }
/* Home hero video: respect visitors who ask for less motion (the ink band shows instead). */
@media (prefers-reduced-motion: reduce) {
	.atomtech-hero .wp-block-cover__video-background { display: none; }
}

/* ---------- Header ---------- */
.atomtech-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.admin-bar .atomtech-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .atomtech-header { top: 46px; } }

/* ---------- Hero ---------- */
.atomtech-hero { position: relative; overflow: hidden; }
.atomtech-hero::after {
	/* Orange swoosh from the original design */
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -60px;
	height: 120px;
	border-top: 6px solid var(--wp--preset--color--primary);
	border-radius: 50% 50% 0 0;
	background: var(--wp--preset--color--base);
	pointer-events: none;
	/* Above the Cover block's overlay (z-index 1), so only the video is darkened, not the white curve. */
	z-index: 2;
}
.atomtech-hero .atomtech-hero__panel {
	background: rgba(255,255,255,.88);
	display: inline-block;
	padding: .15em .35em;
}

/* ---------- Cards ---------- */
.atomtech-card {
	border-top: 4px solid var(--wp--preset--color--primary);
	height: 100%;
	transition: transform .15s ease, box-shadow .15s ease;
}
.atomtech-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.atomtech-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--heading);
	margin: 0 0 1rem;
}

/* Image placeholders (swap for exported photos – see assets/images/README.md) */
.atomtech-photo {
	min-height: 320px;
	background:
		linear-gradient(135deg, rgba(42,40,41,.85), rgba(42,40,41,.55)),
		repeating-linear-gradient(45deg, #3a3839 0 12px, #2a2829 12px 24px);
	border-radius: 4px;
}

/* ---------- Partners strip ---------- */
.atomtech-partners ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.atomtech-partners li {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: .5rem 1rem;
	font-size: .9rem;
	background: var(--wp--preset--color--base);
}

/* ---------- FAQ ---------- */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 1rem 0;
}
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.1rem;
}
.wp-block-details[open] summary { color: var(--wp--preset--color--primary); }

/* ---------- Contact form ---------- */
.atomtech-form { display: grid; gap: 1rem; }
.atomtech-form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .atomtech-form .row { grid-template-columns: 1fr; } }
.atomtech-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.atomtech-form input, .atomtech-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .75rem;
	border: 1px solid #c9c9c9;
	border-radius: 3px;
	font: inherit;
}
.atomtech-form textarea { min-height: 140px; }
.atomtech-form .hp { position: absolute; left: -9999px; }
.atomtech-form button {
	justify-self: start;
	background: var(--wp--preset--color--accent);
	color: #fff;
	border: 0;
	padding: .9rem 2rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 2px;
}
.atomtech-form button:hover { background: var(--wp--preset--color--ink); }
.atomtech-notice { padding: 1rem; border-left: 4px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--surface); }

/* Key facts / answer box */
.atomtech-answer {
	border-left: 5px solid var(--wp--preset--color--primary);
}

/* Footer links */
.atomtech-footer a { color: inherit; }
.atomtech-footer a:hover { color: var(--wp--preset--color--primary); }

/* Links on dark backgrounds */
.has-ink-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--primary); }
.has-ink-background-color a:not(.wp-element-button):hover { color: var(--wp--preset--color--base); }
