/*
Theme Name: Lux Habitat
Theme URI: https://example.com/lux-habitat
Author: Your Name
Author URI: https://example.com
Description: Lux Habitat is a dark, luxury-toned WordPress theme built for the Elementor page builder. A black canvas, warm gold and taupe accents, Playfair Display headings paired with Arial body copy, and a full set of template files (archive, search, 404, sidebar) make it a refined base for interior design, architecture, and curated-living brands.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lux-habitat
Tags: custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready, dark

Lux Habitat is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   1. CSS Variables / Design Tokens (Lux Habitat brand palette)
   ========================================================================== */
:root {
	--e-bg: #0b0b0b;              /* primary black background */
	--e-bg-alt: #1c1c1c;          /* Core Charcoal - alternate section / card surface */
	--e-surface: #1c1c1c;         /* Core Charcoal - header, footer, card panels */
	--e-text: #faf6f0;            /* Alabaster Linen - primary text on black */
	--e-text-muted: #b8ac9e;      /* softened Warm Taupe for secondary text on dark bg */
	--e-border: rgba(230, 220, 208, 0.14); /* Muted Stone at low opacity - dividers */
	--e-accent: #d4b483;          /* Signature Nude - gold accent */
	--e-accent-dark: #b3945f;     /* deeper gold for hover states */
	--e-accent-soft: #e6dcd0;     /* Muted Stone - subtle highlight */
	--e-taupe: #8b7d71;           /* Warm Taupe */
	--e-charcoal: #1c1c1c;        /* Core Charcoal */
	--e-linen: #faf6f0;           /* Alabaster Linen */
	--e-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--e-font-body: Arial, Helvetica, sans-serif;
	--e-container: 1200px;
	--e-radius: 2px;
	--e-transition: all 0.25s ease;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--e-bg);
	color: var(--e-text);
	font-family: var(--e-font-body);
	font-size: 16px;
	line-height: 1.7;
	font-weight: 400;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--e-accent);
	text-decoration: none;
	transition: var(--e-transition);
}

a:hover,
a:focus {
	color: var(--e-linen);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--e-font-heading);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.01em;
	color: var(--e-linen);
	margin: 0 0 20px;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 {
	font-family: var(--e-font-body);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--e-accent);
	font-weight: 700;
}

p { margin: 0 0 20px; color: var(--e-text-muted); }

ul, ol { padding-left: 1.25em; }

button, input, select, textarea {
	font-family: var(--e-font-body);
	font-size: 1rem;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

table th, table td {
	padding: 10px 14px;
	border: 1px solid var(--e-border);
	text-align: left;
	color: var(--e-text);
}

hr {
	border: 0;
	border-top: 1px solid var(--e-border);
	margin: 40px 0;
}

/* ==========================================================================
   3. Layout / Containers
   ========================================================================== */
.e-container {
	max-width: var(--e-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--e-bg);
}

.site-content {
	flex: 1 0 auto;
	padding: 60px 0;
}

.content-area {
	width: 100%;
}

.has-sidebar .content-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.has-sidebar .content-area {
	flex: 1 1 620px;
	min-width: 0;
}

.widget-area {
	flex: 0 1 300px;
}

/* Screen-reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	left: -9999px;
	top: 0;
	position: absolute;
	z-index: 100000;
	background: var(--e-accent);
	color: var(--e-charcoal);
	padding: 12px 20px;
}

.skip-link:focus {
	left: 8px;
}

/* ==========================================================================
   4. Top Bar
   ========================================================================== */
.e-topbar {
	background: var(--e-charcoal);
	color: var(--e-text-muted);
	font-size: 0.85rem;
	border-bottom: 1px solid var(--e-border);
}

.e-topbar .e-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-top: 10px;
	padding-bottom: 10px;
}

.e-topbar a {
	color: var(--e-text-muted);
}

.e-topbar a:hover {
	color: var(--e-accent);
}

.e-topbar-info {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.e-topbar-social a {
	margin-left: 14px;
}

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.site-header {
	border-bottom: 1px solid var(--e-border);
	background: var(--e-bg);
	position: relative;
	z-index: 30;
}

.site-header .e-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 22px;
	padding-bottom: 22px;
	gap: 30px;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-title {
	margin: 0;
	font-size: 1.7rem;
	letter-spacing: 0.04em;
}

.site-title a {
	color: var(--e-linen);
}

.site-description {
	margin: 4px 0 0;
	font-size: 0.75rem;
	font-family: var(--e-font-body);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--e-taupe);
}

.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 34px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: var(--e-linen);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 400;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--e-accent);
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--e-charcoal);
	border: 1px solid var(--e-border);
	min-width: 220px;
	flex-direction: column;
	gap: 0;
	padding: 10px 0;
	box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.main-navigation ul li:hover > ul {
	display: flex;
}

.main-navigation ul ul li a {
	display: block;
	padding: 8px 20px;
	text-transform: none;
	letter-spacing: 0;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--e-border);
	color: var(--e-linen);
	padding: 8px 12px;
	cursor: pointer;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.e-btn,
button,
input[type="submit"],
input[type="button"] {
	display: inline-block;
	background: var(--e-accent);
	color: var(--e-charcoal);
	border: 1px solid var(--e-accent);
	padding: 13px 32px;
	font-family: var(--e-font-body);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	cursor: pointer;
	border-radius: var(--e-radius);
}

.e-btn:hover,
button:hover,
input[type="submit"]:hover {
	background: transparent;
	color: var(--e-accent);
	border-color: var(--e-accent);
}

.e-btn.e-btn-outline {
	background: transparent;
	color: var(--e-linen);
	border-color: var(--e-border);
}

.e-btn.e-btn-outline:hover {
	color: var(--e-accent);
	border-color: var(--e-accent);
}

/* ==========================================================================
   7. Hero / Page Header
   ========================================================================== */
.e-hero {
	background: var(--e-bg);
	padding: 120px 0;
	text-align: center;
}

.e-hero h1 {
	font-size: 3.2rem;
	margin-bottom: 16px;
}

.e-hero p {
	max-width: 620px;
	margin: 0 auto 28px;
	color: var(--e-text-muted);
}

.page-header {
	background: var(--e-charcoal);
	padding: 56px 0;
	margin-bottom: 50px;
	text-align: center;
	border-bottom: 1px solid var(--e-border);
}

.page-header .page-title {
	margin: 0;
}

/* ==========================================================================
   8. Cards / Post Grid
   ========================================================================== */
.e-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
}

.e-card {
	background: var(--e-surface);
	border: 1px solid var(--e-border);
	padding: 0 0 24px;
}

.e-card .e-card-media {
	overflow: hidden;
	margin-bottom: 20px;
}

.e-card .e-card-media img {
	transition: transform 0.4s ease;
}

.e-card:hover .e-card-media img {
	transform: scale(1.05);
}

.e-card .e-card-meta {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--e-accent);
	margin: 0 24px 8px;
}

.e-card h3 {
	font-size: 1.3rem;
	margin: 0 24px 10px;
}

.e-card .entry-content,
.e-card .entry-footer {
	margin-left: 24px;
	margin-right: 24px;
}

article.post,
article.page {
	margin-bottom: 60px;
}

.entry-header .entry-title {
	margin-bottom: 12px;
}

.entry-meta {
	font-size: 0.8rem;
	color: var(--e-taupe);
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: var(--e-font-body);
}

.entry-meta a { color: var(--e-taupe); }

.entry-content .wp-block-image,
.entry-content img { margin-bottom: 24px; }

.post-thumbnail {
	margin-bottom: 30px;
}

/* ==========================================================================
   9. Widgets / Footer
   ========================================================================== */
.widget {
	margin-bottom: 40px;
}

.widget-title {
	font-family: var(--e-font-heading);
	font-size: 1.1rem;
	letter-spacing: 0.04em;
	margin-bottom: 20px;
	color: var(--e-linen);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid var(--e-border);
	color: var(--e-text-muted);
}

.site-footer {
	background: var(--e-charcoal);
	color: var(--e-text-muted);
	margin-top: auto;
	border-top: 1px solid var(--e-border);
}

.footer-widgets {
	padding: 70px 0 30px;
}

.footer-widgets .e-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.site-footer .widget-title { color: var(--e-linen); }
.site-footer a { color: var(--e-text-muted); }
.site-footer a:hover { color: var(--e-accent); }
.site-footer .widget ul li { border-bottom-color: var(--e-border); }

.footer-bottom {
	border-top: 1px solid var(--e-border);
	padding: 22px 0;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
}

.footer-bottom .e-container {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   10. Comments
   ========================================================================== */
.comments-area {
	margin-top: 60px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0 0 0 40px;
	padding: 0;
}

.comment-body {
	padding: 24px 0;
	border-bottom: 1px solid var(--e-border);
}

.comment-author .fn {
	font-weight: 600;
	color: var(--e-linen);
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--e-taupe);
	margin-bottom: 10px;
}

/* ==========================================================================
   11. Forms
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--e-border);
	background: var(--e-surface);
	color: var(--e-text);
	border-radius: var(--e-radius);
	margin-bottom: 16px;
}

input::placeholder,
textarea::placeholder {
	color: var(--e-taupe);
}

textarea { min-height: 140px; }

.search-form {
	display: flex;
	gap: 8px;
}

/* ==========================================================================
   12. Pagination
   ========================================================================== */
.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 50px 0 0;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--e-border);
	color: var(--e-text);
}

.pagination .page-numbers.current,
.pagination a:hover {
	background: var(--e-accent);
	color: var(--e-charcoal);
	border-color: var(--e-accent);
}

/* ==========================================================================
   13. Alignment helpers (core block support)
   ========================================================================== */
.alignwide { max-width: calc(var(--e-container) + 120px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }

/* ==========================================================================
   14. Elementor compatibility
   ========================================================================== */
.elementor-page .site-content,
body.elementor-page .site-content {
	padding: 0;
}

.elementor-page .page-header {
	display: none;
}

.elementor .e-container {
	max-width: none;
	padding: 0;
}

body.elementor-editor-active .site-header,
body.elementor-editor-active .site-footer {
	position: relative;
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.e-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets .e-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
	}

	.main-navigation.is-open {
		display: block;
	}

	.site-header .e-container {
		flex-wrap: wrap;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.main-navigation ul li {
		width: 100%;
		border-bottom: 1px solid var(--e-border);
	}

	.main-navigation ul ul {
		position: static;
		border: 0;
		box-shadow: none;
		padding-left: 16px;
		display: none;
	}

	.main-navigation ul li.is-open > ul {
		display: flex;
	}

	.has-sidebar .content-wrap { flex-direction: column; }
	.e-grid { grid-template-columns: 1fr; }
	.footer-widgets .e-container { grid-template-columns: 1fr; }
	h1 { font-size: 2.2rem; }
	h2 { font-size: 1.8rem; }
	.e-hero { padding: 70px 0; }
	.e-hero h1 { font-size: 2.3rem; }
}
