/*
Theme Name: 8th Avenue Interior Design
Theme URI: https://8thavenueid.com
Author: 8th Avenue Interior Design
Author URI: https://8thavenueid.com
Description: A custom WordPress block theme for 8th Avenue Interior Design. Warm, curated, and professional — reflecting the Light Academia aesthetic with Study Green, Library Gold, and warm ivory tones. Built around Libre Baskerville and Source Sans Pro.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
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: eighth-avenue
Tags: block-patterns, custom-colors, custom-menu, editor-style, full-site-editing, one-column, wide-blocks
*/

/* ============================================================
   CUSTOM PROPERTIES — Extended palette tokens
   ============================================================ */

:root {
	--ea-transition: 0.3s ease;
	--ea-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--ea-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
	--ea-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
	--ea-border-color: var(--wp--preset--color--linen);
}

/* ============================================================
   BASE REFINEMENTS
   ============================================================ */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Improve paragraph readability */
.wp-block-post-content p {
	max-width: 70ch;
}

/* ============================================================
   BUTTON REFINEMENTS
   ============================================================ */

.wp-block-button__link {
	transition: background-color var(--ea-transition), color var(--ea-transition), transform var(--ea-transition);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--study-green);
	color: var(--wp--preset--color--study-green);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--study-green);
	color: var(--wp--preset--color--warm-ivory);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.wp-block-navigation .wp-block-navigation-item a {
	position: relative;
	transition: color var(--ea-transition);
}

.wp-block-navigation .wp-block-navigation-item a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--library-gold);
	transition: width var(--ea-transition);
}

.wp-block-navigation .wp-block-navigation-item a:hover::after {
	width: 100%;
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--study-green);
}

/* ============================================================
   IMAGES & MEDIA
   ============================================================ */

.wp-block-image img {
	transition: transform var(--ea-transition), box-shadow var(--ea-transition);
}

/* Gallery hover effect */
.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.02);
	box-shadow: var(--ea-shadow-lg);
}

/* Cover block overlay refinement */
.wp-block-cover {
	min-height: 50vh;
}

/* ============================================================
   SEPARATOR STYLES
   ============================================================ */

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator.is-style-wide {
	border-bottom: 1px solid var(--wp--preset--color--linen);
	background: none !important;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
	width: 80px;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */

.wp-block-quote cite {
	display: block;
	margin-top: 0.75em;
	font-family: var(--wp--preset--font-family--body);
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--aged-brass);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ============================================================
   COLUMNS & GROUP — Spacing helpers
   ============================================================ */

/* Subtle card-like treatment for grouped content */
.wp-block-group.has-linen-light-background-color {
	border-radius: 2px;
	box-shadow: var(--ea-shadow-sm);
}

/* ============================================================
   POST / ARCHIVE REFINEMENTS
   ============================================================ */

.wp-block-post-date,
.wp-block-post-terms {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--aged-brass);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-post-excerpt {
	color: var(--wp--preset--color--dark-gray);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Gold thin rule — useful as a decorative element */
.ea-gold-rule {
	width: 60px;
	height: 2px;
	background: var(--wp--preset--color--library-gold);
	border: none;
	margin: 1.5rem 0;
}

/* Section divider with more presence */
.ea-section-divider {
	width: 100%;
	height: 1px;
	background: linear-gradient(
		to right,
		transparent,
		var(--wp--preset--color--linen) 20%,
		var(--wp--preset--color--linen) 80%,
		transparent
	);
	border: none;
}

/* ============================================================
   SCROLL ANIMATIONS (Intersection Observer driven)
   ============================================================ */

.ea-fade-up {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ea-fade-up.ea-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ea-fade-up {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 781px) {
	.wp-block-cover {
		min-height: 40vh;
	}
}
