/*
Theme Name: BEATS
Theme URI: https://joinbeats.com/
Author: BEATS (Biomedical Engineering & Technology Society)
Author URI: https://joinbeats.com/
Description: The BEATS homepage theme. Navy and red brand colours, Anton and Barlow type, and an editable homepage built from WordPress blocks: hero with three calls to action, member stats, who we are, key features, testimonials and a join banner.
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beats
*/

/* Most styling lives in theme.json. These rules cover what blocks can't set. */

.beats-eyebrow {
	display: inline-block;
	padding: 6px 16px !important;
}

.wp-block-button__link {
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.beats-device-card img {
	display: block;
	margin: 0 auto;
}
.beats-tilt-left { transform: rotate(-4deg); }
.beats-tilt-right { transform: rotate(4deg); }

.beats-stat {
	border-left: 4px solid var(--wp--preset--color--red);
	padding-left: 24px;
}

.beats-card {
	height: 100%;
	box-sizing: border-box;
}

.beats-nav .wp-block-navigation-item__content {
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.beats-tilt-left,
	.beats-tilt-right { transform: none; }
	.beats-hero-title { font-size: 64px !important; }
	.beats-stat { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link { transition: none; }
}

.beats-footer a {
	color: var(--wp--preset--color--mist);
	text-decoration: none;
}
.beats-footer a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	border-width: 2px;
}

/* ---------- Embeds (Picsume) ---------- */
.beats-embed {
	width: 100%;
	min-height: 480px;
}
.beats-embed > div {
	width: 100%;
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 781px) {
	.wp-block-group.alignfull {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	main .wp-block-group.alignfull {
		padding-top: 56px !important;
		padding-bottom: 56px !important;
	}
	header .wp-block-image img {
		height: 40px !important;
		width: auto !important;
	}
	.beats-page-title {
		font-size: 44px !important;
	}
	.beats-eyebrow {
		letter-spacing: 2px !important;
		font-size: 13px !important;
	}
	main .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	main .wp-block-buttons > .wp-block-button,
	main .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	.beats-card {
		padding: 24px !important;
	}
	.beats-embed {
		min-height: 360px;
	}
}

@media (max-width: 480px) {
	.beats-hero-title {
		font-size: 52px !important;
	}
	h2.wp-block-heading {
		font-size: 38px;
	}
}

/* ---------- Resources page dropdowns ---------- */
.beats-acc {
	background: var(--wp--preset--color--white);
	border: 1px solid #E1DDD3;
	border-radius: 18px;
	overflow: hidden;
}
.beats-acc + .beats-acc { margin-top: 16px; }
.beats-acc > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 64px 22px 24px;
	position: relative;
	min-height: 44px;
}
.beats-acc > summary::-webkit-details-marker { display: none; }
.beats-acc > summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--red);
	color: #fff;
	font: 700 24px/36px var(--wp--preset--font-family--barlow);
	text-align: center;
}
.beats-acc[open] > summary::after { content: "−"; background: var(--wp--preset--color--navy); }
.beats-acc[open] > summary { border-bottom: 1px solid #E1DDD3; }
.beats-acc > summary:focus-visible { outline: 3px solid var(--wp--preset--color--red); outline-offset: -3px; }
.beats-acc-num {
	font-family: var(--wp--preset--font-family--anton);
	font-size: 28px;
	color: var(--wp--preset--color--red);
	flex-shrink: 0;
}
.beats-acc-title {
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}
.beats-acc > *:not(summary) {
	margin-left: 24px !important;
	margin-right: 24px !important;
}
.beats-acc > *:not(summary):first-of-type { margin-top: 20px; }
.beats-acc > *:last-child { margin-bottom: 28px !important; }
.beats-acc h3 { font-size: 26px; margin-top: 28px; }
.beats-acc h4 {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wp--preset--color--dark-red);
	margin: 18px 0 6px;
}
.beats-acc li { margin-bottom: 6px; }
.beats-cols {
	background: var(--wp--preset--color--ivory);
	border-radius: 14px;
	padding: 4px 22px 18px;
}
.beats-note {
	font-size: 15px;
	color: var(--wp--preset--color--slate);
	border-left: 4px solid var(--wp--preset--color--red);
	padding-left: 14px;
}
.beats-visa {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-radius: 16px;
	padding: 8px 26px 22px;
	margin-top: 28px !important;
}
.beats-visa h3, .beats-visa h4 { color: #fff; }
.beats-visa h4 { color: var(--wp--preset--color--blush); }
.beats-visa a { color: #fff; text-decoration: underline; }
.beats-visa-title::before {
	content: "Most important";
	display: block;
	width: fit-content;
	margin-bottom: 10px;
	padding: 4px 12px;
	background: var(--wp--preset--color--red);
	font: 700 13px/1.4 var(--wp--preset--font-family--barlow-condensed);
	letter-spacing: 3px;
	text-transform: uppercase;
}
.beats-updated { color: var(--wp--preset--color--slate); margin-top: 24px !important; }

@media (max-width: 781px) {
	.beats-acc > summary { padding: 18px 60px 18px 18px; gap: 12px; }
	.beats-acc > *:not(summary) { margin-left: 16px !important; margin-right: 16px !important; }
	.beats-cols, .beats-visa { padding-left: 16px; padding-right: 16px; }
	.beats-acc-num { font-size: 22px; }
}

/* ---------- Ambassadors page ---------- */
.beats-card-dark, .beats-card-dark li { color: var(--wp--preset--color--mist); }
.beats-checks { padding-left: 0; list-style: none; margin: 0; }
.beats-checks li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
	line-height: 1.45;
}
.beats-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 14px;
	height: 8px;
	border-left: 3px solid var(--wp--preset--color--red);
	border-bottom: 3px solid var(--wp--preset--color--red);
	transform: rotate(-45deg);
}
.beats-card-dark .beats-checks li::before { border-color: var(--wp--preset--color--blush); }
.beats-contact h3 { margin: 0; }
.beats-email a { color: var(--wp--preset--color--red); font-weight: 600; word-break: break-word; }
#become-an-ambassador a:not(.wp-block-button__link) { color: inherit; }
#become-an-ambassador .beats-contact a { color: var(--wp--preset--color--red); }

/* ---------- Instagram section ---------- */
.beats-insta-feed { width: 100%; }
.beats-insta-fallback {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 32px;
	border-radius: 20px;
	background: var(--wp--preset--color--navy);
	color: #fff !important;
	text-decoration: none;
	transition: transform 0.15s ease;
}
.beats-insta-fallback:hover { transform: translateY(-2px); }
.beats-insta-handle {
	font-family: var(--wp--preset--font-family--anton);
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1;
}
.beats-insta-text { color: var(--wp--preset--color--mist); font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .beats-insta-fallback { transition: none; } }

/* Menu: keep links tidy on mid-size screens */
@media (max-width: 1180px) and (min-width: 600px) {
	.beats-nav { gap: 22px !important; }
	.beats-nav .wp-block-navigation-item__content { font-size: 17px; }
}
