/*
Theme Name: Royal Home Export
Theme URI: https://example.com/
Description: Custom Luxury Child Theme for Astra.
Author: Antigravity
Author URI: https://example.com/
Template: astra
Version: 1.0.0
*/

/* --- GLOBAL STYLES --- */
:root {
  --primary-bg: #FAFAFA;
  --secondary-bg: #1C1C1C;
  --accent-gold: #D4AF37;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body.home {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-dark);
}

/* --- SECTION 1: HERO --- */
.royal-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-color: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
}
.royal-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #2A2A2A 0%, #101010 100%);
  z-index: 1;
  opacity: 0.8;
}
.royal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
}
.royal-subheading {
  font-size: 14px;
  color: var(--accent-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.royal-hero h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.2;
}
.royal-hero p {
  font-size: 1.1rem;
  color: #CCCCCC;
  margin-bottom: 40px;
  line-height: 1.6;
}
.btn-gold {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #fff;
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-gold);
}
.btn-gold:hover {
  background-color: transparent;
  color: var(--accent-gold);
}
.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-light);
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--text-light);
}
.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--secondary-bg);
}

/* --- BOX ILLUSION --- */
.hero-box-container {
  margin-top: 40px;
  perspective: 1000px;
}
.hero-box {
  width: 300px;
  height: 300px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05); /* Placeholder for box image */
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.5);
  transition: transform 0.5s ease;
}
.hero-box:hover {
  transform: rotateY(15deg) rotateX(5deg);
}

/* --- SECTION 2: CATEGORIES --- */
.royal-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-dark);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.cat-item {
  position: relative;
  aspect-ratio: 3/4;
  background-color: #eee;
  overflow: hidden;
  cursor: pointer;
}
.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cat-item:hover img {
  transform: scale(1.05);
}
.cat-item:hover .cat-overlay {
  opacity: 1;
}
.cat-overlay h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.cat-item:hover .cat-overlay h3 {
  transform: translateY(0);
}

/* --- SECTION 3: STORY --- */
.story-split {
  display: flex;
  align-items: center;
  gap: 60px;
}
.story-image {
  flex: 1;
  position: relative;
}
.story-image::after {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent-gold);
  z-index: -1;
}
.story-image img {
  width: 100%;
  height: auto;
  display: block;
}
.story-text {
  flex: 1;
}
.story-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.story-text p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}
.text-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 5px;
  transition: color 0.3s;
}
.text-link:hover {
  color: var(--accent-gold);
}

/* --- SECTION 4: WHY US --- */
.why-us-section {
  background-color: #F5F5F0;
  padding: 100px 20px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.feature-item p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}
.feature-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .story-split { flex-direction: column; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .royal-hero h1 { font-size: 3rem; }
}
@media (max-width: 767px) {
  .features-grid { grid-template-columns: 1fr; }
  .royal-hero h1 { font-size: 2.2rem; }
}
