/*
Theme Name: Luxora
Theme URI: https://example.com/luxora
Author: Luxora Studio
Author URI: https://example.com
Description: A refined one-page WordPress theme for modern product brands. Includes hero, products, about, gallery, reviews and contact sections, all editable from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: luxora
Tags: one-page, business, e-commerce, custom-logo, custom-colors, featured-images, translation-ready
*/

/* ---------- Design tokens ---------- */
:root {
  --lx-bg: #ffffff;
  --lx-fg: #14100e;
  --lx-muted: #6f6a66;
  --lx-line: #e8e3dd;
  --lx-accent: #b4653a;
  --lx-accent-fg: #ffffff;
  --lx-soft: #faf7f3;
  --lx-radius: 14px;
  --lx-max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--lx-bg);
  color: var(--lx-fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
p { margin: 0 0 1rem; }

.lx-container { width: 100%; max-width: var(--lx-max); margin: 0 auto; padding: 0 20px; }
.lx-section { padding: 96px 0; }
.lx-section--soft { background: var(--lx-soft); }
.lx-section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.lx-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--lx-accent); font-weight: 700; }
.lx-muted { color: var(--lx-muted); }

.lx-btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: var(--lx-accent); color: var(--lx-accent-fg); font-weight: 600; font-size: .95rem;
  border: 1px solid var(--lx-accent); transition: opacity .2s ease, transform .2s ease; cursor: pointer;
}
.lx-btn:hover { opacity: .88; transform: translateY(-1px); }
.lx-btn--ghost { background: transparent; color: var(--lx-fg); border-color: var(--lx-line); }

/* ---------- Header ---------- */
.lx-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lx-line);
}
.lx-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.lx-brand { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.lx-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.lx-nav a { font-size: .9rem; font-weight: 500; color: var(--lx-muted); transition: color .2s; }
.lx-nav a:hover, .lx-nav .current-menu-item > a { color: var(--lx-fg); }
.lx-nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: inherit; }
body { padding-top: 66px; }

@media (max-width: 860px) {
  .lx-nav { display: none; }
  .lx-nav.is-open { display: block; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--lx-line); }
  .lx-nav.is-open ul { flex-direction: column; gap: 0; padding: 12px 20px; }
  .lx-nav.is-open li { padding: 10px 0; }
  .lx-nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.lx-hero { position: relative; min-height: 78vh; display: flex; align-items: center; background: var(--lx-soft); overflow: hidden; }
.lx-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; }
.lx-hero__inner { position: relative; max-width: 720px; padding: 90px 0; }
.lx-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Grids ---------- */
.lx-grid { display: grid; gap: 28px; }
.lx-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lx-grid--4 { grid-template-columns: repeat(4, 1fr); }
.lx-grid--2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 56px; }
@media (max-width: 980px) { .lx-grid--3, .lx-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .lx-grid--2, .lx-grid--3, .lx-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.lx-card { background: #fff; border: 1px solid var(--lx-line); border-radius: var(--lx-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.lx-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,16,14,.08); }
.lx-card__media { aspect-ratio: 4 / 3; background: var(--lx-soft); overflow: hidden; }
.lx-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lx-card__body { padding: 20px; }
.lx-card__title { font-size: 1.12rem; margin-bottom: 6px; }
.lx-price { color: var(--lx-accent); font-weight: 700; }

/* ---------- Gallery ---------- */
.lx-gallery img { border-radius: var(--lx-radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- Reviews ---------- */
.lx-review { background: #fff; border: 1px solid var(--lx-line); border-radius: var(--lx-radius); padding: 26px; }
.lx-stars { color: var(--lx-accent); letter-spacing: 2px; }

/* ---------- Contact ---------- */
.lx-contact-list { list-style: none; padding: 0; margin: 0; }
.lx-contact-list li { padding: 10px 0; border-bottom: 1px solid var(--lx-line); }

/* ---------- Footer ---------- */
.lx-footer { background: var(--lx-fg); color: #fff; padding: 64px 0 28px; }
.lx-footer a { color: rgba(255,255,255,.65); }
.lx-footer a:hover { color: #fff; }
.lx-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .85rem; color: rgba(255,255,255,.45); }
.lx-social { display: flex; gap: 10px; }
.lx-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }

/* ---------- WP core classes ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1em; display: block; }
.sticky, .gallery-caption, .bypostauthor { }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--lx-muted); }
.lx-entry { padding: 40px 0 80px; }
.lx-entry .lx-container { max-width: 760px; }

/* ---------- Reveal animation ---------- */
.lx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.lx-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lx-reveal { opacity: 1; transform: none; transition: none; } }
