/*
Theme Name: Rachel's
Theme URI: https://rachelmakes.uk
Author: Rachel's
Description: A simple one-page block theme for Rachel's traditional home baking, Chelmsford. Warm cream, brown and gold styling matching the Rachel's flyers and order form, with links to Instagram, Facebook and ordering.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rachels
*/

/* Double-rule frame, as on the printed flyers */
.rachels-frame {
	position: relative;
	border: 1px solid var(--wp--preset--color--rule);
	outline: 1px solid var(--wp--preset--color--rule-light);
	outline-offset: 6px;
	max-width: 600px;
	margin-left: auto !important;
	margin-right: auto !important;
}
@media (max-width: 640px) {
	.rachels-frame { margin-left: 8px !important; margin-right: 8px !important; }
}

/* Logo background is the same cream as the page */
.rachels-logo img {
	max-width: 100%;
	height: auto;
}

/* Small uppercase labels ("Grand launch", "Winter menu") */
.rachels-eyebrow {
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

/* Ornamental divider: line — ♥ — line */
.rachels-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--wp--preset--color--rule);
}
.rachels-divider::before,
.rachels-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--rule);
}

/* Full-width stacked link buttons */
.rachels-links .wp-block-button {
	width: 100%;
}
.rachels-links .wp-block-button__link {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.rachels-links .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(74, 42, 20, 0.15);
}
.rachels-links .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--card);
}
.rachels-links .wp-block-button__link svg {
	width: 20px;
	height: 20px;
	flex: none;
}

.rachels-links .wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

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

/* Offer banner: keep "20% OFF" on one line */
.rachels-offer .has-display-font-family { white-space: nowrap; }
@media (max-width: 480px) {
	.rachels-eyebrow { letter-spacing: 0.18em; }
	.rachels-offer { gap: 12px !important; padding-left: 14px !important; padding-right: 14px !important; }
}

/* Call / Email side by side, stacking on narrow phones */
.rachels-contact .wp-block-button { flex: 1 1 0; width: auto; }
@media (max-width: 360px) {
	.rachels-contact { flex-wrap: wrap !important; }
	.rachels-contact .wp-block-button { flex-basis: 100%; }
}
