/*
Theme Name: Luxe Interiors
Theme URI: https://luxeinteriors.developer
Author: Telex
Description: A refined interior design studio theme anchored in warm travertine tones, editorial typography with Cormorant Garamond display headings, and a sophisticated landing-page layout for converting design consultation inquiries.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luxe-interiors
Tags: one-column, custom-colors, custom-fonts, editor-style, block-patterns, full-site-editing, wide-blocks
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ==========================================================================
   Foundation
   ========================================================================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--wp--custom--scroll-padding-top, 80px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

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

/* ==========================================================================
   Sticky header
   ========================================================================== */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

/* Backdrop pseudo — paints the scrolled-state chrome without making the
   header a containing block (which would break the mobile nav overlay). */
.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--wp--preset--color--off-white);
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--off-white);
	box-shadow: 0 1px 0 var(--wp--preset--color--warm-grey);
}

/* Header inner group — border & layout polish */
.site-header {
	border-bottom: 1px solid var(--wp--preset--color--warm-grey);
}

body.is-scrolled .site-header {
	border-bottom-color: transparent;
}

/* ==========================================================================
   Landing-page section anchors
   ========================================================================== */

.wp-site-blocks .alignfull[id]:target {
	box-shadow: inset 4px 0 0 var(--wp--preset--color--terracotta);
	transition: box-shadow 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks .alignfull[id]:target {
		box-shadow: none;
		transition: none;
	}
}

/* ==========================================================================
   Typography polish
   ========================================================================== */

/* Display headings — Cormorant Garamond italic for hero-scale text */
h1,
.wp-block-post-title {
	font-style: italic;
}

/* Section label / eyebrow convention — h6 used as uppercase label */
h6 {
	color: var(--wp--preset--color--terracotta);
}

/* Generous letter-spacing on serif headings */
h2,
h3 {
	letter-spacing: 0.01em;
}

/* Paragraph measure — readable line length inside constrained containers */
.wp-block-group.is-layout-constrained > p,
.wp-block-group.is-layout-constrained > .wp-block-paragraph {
	max-width: 72ch;
}

/* Blockquote / testimonial polish */
.wp-block-quote p {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 300;
}

.wp-block-quote cite,
.wp-block-quote footer {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--terracotta);
	display: block;
	margin-top: var(--wp--preset--spacing--30);
}

/* ==========================================================================
   Link styles
   ========================================================================== */

a {
	transition: color 0.4s ease;
}

/* Underline treatment for inline links in prose */
.wp-block-group p a:not(.wp-block-button__link),
.wp-block-column p a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--wp--preset--color--travertine);
	transition: color 0.4s ease, text-decoration-color 0.4s ease;
}

.wp-block-group p a:not(.wp-block-button__link):hover,
.wp-block-column p a:not(.wp-block-button__link):hover {
	text-decoration-color: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Button styles
   ========================================================================== */

.wp-block-button__link {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
}

.wp-block-button__link:active {
	transform: scale(0.98);
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1px;
	border-style: solid;
	background: transparent;
}

/* ==========================================================================
   Hero section
   ========================================================================== */

/* Hero section — full-bleed cover */
.hero {
	overflow: hidden;
	position: relative;
}

.hero .wp-block-cover__image-background {
	object-position: center 30%;
}

/* Hero tagline */
.hero-tagline {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: var(--wp--preset--color--travertine);
}

/* Hero headline */
.hero-headline {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-style: italic;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

/* Hero stat separators */
.hero-content .wp-block-separator {
	width: 1px;
	height: 40px;
	border: none;
	max-width: 1px;
	margin: 0;
}

/* Hero content max-width for readability */
.hero .hero-content {
	max-width: 800px;
}

@media (max-width: 781px) {
	.hero .hero-content {
		max-width: 100%;
	}
}

/* ==========================================================================
   Image treatments
   ========================================================================== */

/* All images: sharp edges, warm undertone on hover */
.wp-block-image img {
	border-radius: 0;
	transition: filter 0.6s ease, transform 0.6s ease;
}

.wp-block-image:hover img {
	filter: brightness(1.02) saturate(1.05);
}

/* Gallery images — subtle lift */
.wp-block-gallery .wp-block-image:hover img {
	transform: scale(1.015);
}

/* Cover block images — ensure full coverage */
.wp-block-cover img.wp-block-cover__image-background {
	object-fit: cover;
}

/* ==========================================================================
   Separator polish
   ========================================================================== */

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

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

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* ==========================================================================
   Columns / cards
   ========================================================================== */

/* Icon box cards — centered with subtle background */
.icon-box {
	text-align: center;
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--warm-grey);
	transition: background-color 0.4s ease, transform 0.3s ease;
}

.icon-box:hover {
	background: var(--wp--preset--color--off-white);
	transform: translateY(-4px);
}

/* Service card style */
.service-card {
	background: var(--wp--preset--color--warm-grey);
	padding: var(--wp--preset--spacing--50);
	transition: box-shadow 0.4s ease;
}

.service-card:hover {
	box-shadow: 0 8px 32px rgba(30, 28, 26, 0.08);
}

/* ==========================================================================
   Testimonial styling
   ========================================================================== */

.testimonial-card {
	background: var(--wp--preset--color--warm-grey);
	padding: var(--wp--preset--spacing--50);
	border-left: 2px solid var(--wp--preset--color--travertine);
}

.testimonial-card .wp-block-quote {
	border-left: none;
	padding-left: 0;
	margin: 0;
}

/* ==========================================================================
   Process / timeline steps
   ========================================================================== */

.process-step-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-style: italic;
	color: var(--wp--preset--color--travertine);
	line-height: 1;
}

/* Timeline step cards — hover lift and left-border accent transition */
.process-timeline .process-step {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-timeline .process-step:hover {
	transform: translateX(6px);
	box-shadow: -6px 0 24px rgba(30, 28, 26, 0.06);
}

/* Alternating left-border color already set in markup (terracotta / travertine).
   On hover, intensify the border toward terracotta for all steps. */
.process-timeline .process-step:hover {
	border-left-color: var(--wp--preset--color--terracotta) !important;
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */

.faq-section .faq-item {
	transition: background-color 0.3s ease;
}

.faq-section .faq-item:hover {
	background-color: var(--wp--preset--color--warm-grey);
}

.faq-intro-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: var(--wp--custom--scroll-padding-top, 80px);
	align-self: flex-start;
}

/* Ensure the parent column of a sticky intro doesn't constrain it */
.wp-block-columns > .wp-block-column > .faq-intro-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: var(--wp--custom--scroll-padding-top, 80px);
}

@media (max-width: 781px) {
	.faq-intro-sticky,
	.wp-block-columns > .wp-block-column > .faq-intro-sticky {
		position: static;
	}
}

.wp-block-details {
	border-bottom: none;
	padding-block: 0;
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 300;
	font-style: italic;
	cursor: pointer;
	padding-block: var(--wp--preset--spacing--10);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.3s ease;
	gap: var(--wp--preset--spacing--30);
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--terracotta);
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--display);
	font-weight: 300;
	font-style: normal;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--travertine);
	transition: transform 0.3s ease, color 0.3s ease;
	flex-shrink: 0;
	width: 1.5em;
	text-align: center;
	line-height: 1;
}

.wp-block-details summary:hover::after {
	color: var(--wp--preset--color--terracotta);
}

.wp-block-details[open] summary::after {
	content: "\2212";
	color: var(--wp--preset--color--terracotta);
}

.wp-block-details > *:not(summary) {
	padding-bottom: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   Logo separator section
   ========================================================================== */

.logo-separator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
}

.logo-separator::before,
.logo-separator::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--travertine);
	max-width: 200px;
}

/* ==========================================================================
   Navigation polish
   ========================================================================== */

.wp-block-navigation a {
	transition: color 0.4s ease;
}

/* Active anchor underline — landing page */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation a {
		position: relative;
	}

	.wp-block-navigation a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -4px;
		height: 2px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.3s ease;
	}

	.wp-block-navigation a.is-active::after {
		transform: scaleX(1);
	}
}

/* ==========================================================================
   Mobile hamburger overlay
   ========================================================================== */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ==========================================================================
   Media-text block polish
   ========================================================================== */

.wp-block-media-text {
	overflow: hidden;
}

.wp-block-media-text .wp-block-media-text__media img {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

/* ==========================================================================
   Cover block — overlay tuning
   ========================================================================== */

.wp-block-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   Visual separator band — full-bleed decorative section
   ========================================================================== */

.visual-separator {
	position: relative;
	overflow: hidden;
}

.visual-separator::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(245, 240, 232, 0.1) 0%,
		rgba(245, 240, 232, 0.05) 100%
	);
	pointer-events: none;
}

/* ==========================================================================
   CTA section polish
   ========================================================================== */

.cta-section .wp-block-button__link {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--medium);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.wp-block-template-part.site-footer a {
	text-decoration: none;
	transition: color 0.4s ease;
}

/* ==========================================================================
   Selection color — warm brand accent
   ========================================================================== */

::selection {
	background: var(--wp--preset--color--travertine);
	color: var(--wp--preset--color--charcoal);
}

/* ==========================================================================
   Focus visible — accessible, on-brand
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 2px;
}

/* ==========================================================================
   Loop layout utilities
   ========================================================================== */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}

.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--travertine);
	padding-block: var(--wp--preset--spacing--30);
}

.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--travertine);
	opacity: 0.5;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}

.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: "";
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--terracotta);
	border-radius: 50%;
	background: var(--wp--preset--color--off-white);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}

@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}