/*
Theme Name: Amaya Rourke
Theme URI: https://amayarourke.com
Author: Amaya Rourke
Description: Custom block theme for Amaya Rourke — painter of storm-lit skies and astrologer for physical art-makers. Built from mockups; design tokens live in theme.json.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amaya-rourke
*/

/* ------------------------------------------------------------------ *
 * Supplementary styles only. The palette, type, spacing, layout,
 * link and button defaults all live in theme.json — edit there first.
 * This file covers the few things theme.json can't express cleanly.
 * ------------------------------------------------------------------ */

/* Star divider: gold rule — sparkle — gold rule (used under page titles) */
.amaya-star-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 1.25rem auto 0;
	color: var(--wp--preset--color--gold);
}
.amaya-star-divider .amaya-rule {
	display: block;
	width: 48px;
	height: 1px;
	background: var(--wp--preset--color--gold);
	opacity: 0.5;
}
.amaya-star-divider svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* Soft card shadow (applied to bordered cards / images via className) */
.has-soft-shadow {
	box-shadow: 0 1px 3px rgba(5, 23, 26, 0.06), 0 6px 20px rgba(5, 23, 26, 0.05);
}

.wp-block-media-text__media img {
	border-radius: 2px;
}

/* Header translated from the React mockup */
.amaya-site-header {
	position: sticky;
	top: 0;
	z-index: 10;
}
.amaya-header-wordmark {
	line-height: 1;
	margin: 0;
	transform: rotate(-2deg);
	white-space: nowrap;
}
.amaya-header-wordmark a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.amaya-header-nav {
	font-family: var(--wp--preset--font-family--sans);
}
.amaya-header-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--teal-link);
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.amaya-header-nav .wp-block-navigation-item__content:hover,
.amaya-header-nav .wp-block-navigation-item__content:focus,
.amaya-header-nav .current-menu-ancestor > .wp-block-navigation-item__content,
.amaya-header-nav .current-menu-parent > .wp-block-navigation-item__content,
.amaya-header-nav .current-menu-item > .wp-block-navigation-item__content,
.amaya-header-nav [aria-current="page"] {
	color: var(--wp--preset--color--deep-teal);
}
.amaya-header-nav .current-menu-item > .wp-block-navigation-item__content,
.amaya-header-nav [aria-current="page"] {
	border-bottom: 1.5px solid var(--wp--preset--color--deep-teal);
	padding-bottom: 0.125rem;
}
.amaya-header-nav .wp-block-navigation__submenu-container {
	min-width: 12rem !important;
	margin-top: -0.25rem;
	padding-top: 0.5rem;
	background: var(--wp--preset--color--canvas) !important;
	border: 1px solid rgba(12, 60, 69, 0.1) !important;
	box-shadow: 0 1px 3px rgba(5, 23, 26, 0.06), 0 6px 20px rgba(5, 23, 26, 0.05);
}
.amaya-header-nav .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.amaya-header-nav .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.amaya-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}
.amaya-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.amaya-header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background: rgba(238, 211, 170, 0.3);
}
/* Mobile overlay menu: submenus are plain centered text, not floating dropdown boxes.
   Overrides the desktop dropdown styling above when the overlay is open. */
.amaya-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
.amaya-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	justify-content: center;
	text-align: center;
	padding: 0.25rem 1rem;
	font-size: 1rem;
	color: var(--wp--preset--color--mauve);
}
.amaya-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.amaya-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background: transparent !important;
	color: var(--wp--preset--color--deep-teal);
}
.amaya-header-cta .wp-block-button__link {
	font-size: 0.8125rem;
	padding: 0.625rem 1.5rem;
}
@media (max-width: 781px) {
	.amaya-site-header {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
	.amaya-header-cta {
		display: none;
	}
}
@media (max-width: 1080px) {
	.amaya-header-cta {
		display: none;
	}
}

/* Home offer band needs more desktop span than ordinary wide content. */
.amaya-home-offer-band {
	background-color: rgba(238, 211, 170, 0.2) !important;
	border: 1px solid rgba(219, 157, 71, 0.4) !important;
	border-radius: 2px;
	padding: 3rem !important;
}
.amaya-home-offer-band > .wp-block-columns.alignwide {
	max-width: min(76rem, calc(100vw - 3rem)) !important;
}
.amaya-home-offer-band .wp-block-column {
	flex: 1 1 0 !important;
	min-width: 0;
}
.amaya-home-offer-band .wp-block-column:last-child {
	flex: 0 0 360px !important;
	padding: 2rem 2.5rem !important;
}

/* Astrology for Makers - Start Here and Final CTA boxes with sand background */
.page-id-8 .amaya-start-here-box {
	background-color: rgba(238, 211, 170, 0.3) !important;
	border: 1px solid rgba(219, 157, 71, 0.6) !important;
}

/* Cormorant renders light; give large display headings a touch more presence */
h1, h2 { letter-spacing: 0.005em; }

/* --- Button style variations (registered in functions.php) --- */

/* Outline (secondary) button: deep-teal border + text on transparent */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--deep-teal);
	border: 1px solid var(--wp--preset--color--deep-teal);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(238, 211, 170, 0.3); /* sand @ 30% */
	color: var(--wp--preset--color--deep-teal);
}

/* Gold CTA: the single "special" call to action (e.g. Creative Court Report) */
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.wp-block-button.is-style-gold .wp-block-button__link:hover {
	background: var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--canvas);
}

/* --- FAQ: core Details blocks styled as bordered cards --- */
.amaya-faq .wp-block-details {
	border: 1px solid rgba(219, 157, 71, 0.4);
	border-radius: 2px;
	padding: 0.25rem 1.25rem;
	margin-bottom: 1rem;
	background: var(--wp--preset--color--canvas);
}
.amaya-faq .wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 500;
	color: var(--wp--preset--color--deep-teal);
	padding: 1rem 0;
	list-style: none;
}
.amaya-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.amaya-faq .wp-block-details[open] summary { border-bottom: 1px solid rgba(219, 157, 71, 0.2); }

/* Testimonial / quote attribution reads as quiet metadata */
.amaya-attribution { color: var(--wp--preset--color--mauve); font-family: var(--wp--preset--font-family--sans); }

/* Literary pull-quote — gold-framed, centered italic serif */
.amaya-quote {
	max-width: 40rem;
	text-align: center;
}
.amaya-quote__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	color: var(--wp--preset--color--gold);
	margin-bottom: 1.5rem;
}
.amaya-quote__frame .amaya-rule {
	display: block;
	width: 56px;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}
.amaya-quote__mark {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 3rem;
	line-height: 0.6;
	flex: none;
	transform: translateY(0.28em);
}
/* Strip core blockquote chrome — the frame does the decorating */
.amaya-quote .amaya-quote__body {
	border: 0;
	margin: 0;
	padding: 0;
}
.amaya-quote .amaya-quote__text {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	color: var(--wp--preset--color--deep-teal);
	font-size: clamp(1.35rem, 1rem + 1.4vw, 1.75rem);
	line-height: 1.5;
	margin: 0 auto;
}
.amaya-quote__baseline {
	width: 56px;
	height: 1px;
	margin: 1.5rem auto 0;
	background: var(--wp--preset--color--gold);
	opacity: 0.5;
}
