/* Leona Home - Premium Luxury Furniture Design System */

:root {
  /* Color Palette */
  --color-bg: #F7F3EE;
  --color-bg-alt: #EFE8DF;
  --color-bg-darker: #E5DCD1;
  --color-text: #27231F;
  --color-text-muted: #5E564E;
  --color-dark: #3A332D;
  --color-accent: #8A7462;
  --color-white: #FFFFFF;
  --color-border: rgba(39, 35, 31, 0.08);

  /* Typography */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-width: 1320px;
  --header-height: 84px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/* Helper Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.section-padding { padding: 120px 0; }

@media (max-width: 768px) {
  .section-padding { padding: 70px 0; }
}

/* Image Fallback Container */
.img-container {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-container:hover img {
  transform: scale(1.03);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebc57;
  border-color: #1ebc57;
  color: #fff;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.8rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--color-bg);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(39, 35, 31, 0.05);
}

.site-header.scrolled {
  background-color: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* PREMIUM TEXT-BASED WORDMARK LOGO */
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  user-select: none;
}

.wordmark-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: var(--color-text);
  line-height: 1;
  text-transform: uppercase;
}

.wordmark-sub {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.55em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.social-icon-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* HAMBURGER TOGGLE BUTTON FOR ALL SCREEN SIZES */
.hamburger-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  gap: 6px;
}

.hamburger-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: var(--transition-smooth);
}

.hamburger-toggle.active span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}

.hamburger-toggle.active span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* PREMIUM OVERLAY MENU FOR ALL DEVICES */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  width: 100%;
  max-width: var(--container-width);
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  .overlay-content {
    grid-template-columns: 2fr 1fr;
  }
}

.overlay-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay-menu-link {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: var(--transition-smooth);
  display: inline-block;
}

.overlay-menu-link:hover,
.overlay-menu-link.active {
  color: var(--color-accent);
  transform: translateX(10px);
}

.overlay-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--color-border);
  padding-left: 40px;
}

@media (max-width: 991px) {
  .overlay-meta {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
  }
}

.overlay-meta-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  margin-top: var(--header-height);
  display: flex;
  align-items: flex-end;
  padding: 60px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(39,35,31,0.1) 0%, rgba(39,35,31,0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--color-white);
  max-width: 650px;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.1;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 35px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-buttons .btn-primary {
  background-color: var(--color-white);
  color: var(--color-text);
}

.hero-buttons .btn-primary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
}

/* Section Header */
.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

/* Brand Intro Section */
.brand-intro {
  background-color: var(--color-bg);
}

.brand-intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brand-intro p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--color-text);
  line-height: 1.5;
  font-weight: 300;
  margin-top: 24px;
}

/* Products Grid & Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card .img-container {
  aspect-ratio: 4/5;
  margin-bottom: 20px;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.product-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-link::after {
  content: '→';
  transition: transform 0.3s ease;
}

.product-card:hover .product-link::after {
  transform: translateX(4px);
}

/* Feature Showcase Sections (Velora, Marea, etc) */
.showcase-section {
  padding: 80px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
}

@media (min-width: 992px) {
  .showcase-grid {
    grid-template-columns: 12fr 10fr;
  }
  .showcase-grid.reverse {
    grid-template-columns: 10fr 12fr;
  }
  .showcase-grid.reverse .showcase-image {
    order: 2;
  }
  .showcase-grid.reverse .showcase-text {
    order: 1;
  }
}

.showcase-image {
  aspect-ratio: 16/10;
  width: 100%;
}

.showcase-text {
  padding: 20px 0;
}

.showcase-text h2 {
  margin-bottom: 10px;
}

.showcase-subtitle {
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-weight: 400;
}

.showcase-text p {
  margin-bottom: 30px;
}

/* Customization Section */
.custom-section {
  background-color: var(--color-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  background: var(--color-bg);
  padding: 35px 25px;
  border: 1px solid rgba(39, 35, 31, 0.04);
}

.feature-num {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

/* Craftsmanship / Quality */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .quality-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quality-image {
  aspect-ratio: 4/3;
}

/* Global Delivery */
.delivery-section {
  background-color: var(--color-dark);
  color: var(--color-bg);
}

.delivery-section h2, .delivery-section p {
  color: var(--color-bg);
}

.delivery-section p {
  opacity: 0.8;
}

.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
}

.country-tag {
  padding: 10px 20px;
  border: 1px solid rgba(247, 243, 238, 0.2);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-bg);
}

/* Instagram Section */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .instagram-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.insta-item {
  aspect-ratio: 1/1;
  display: block;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 990;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-darker);
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-brand p {
  max-width: 300px;
  margin-top: 15px;
}

.footer-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(39, 35, 31, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Page Specific: Product Detail */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
}

@media (min-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 12fr 10fr;
  }
}

.gallery-main {
  aspect-ratio: 4/3;
  margin-bottom: 15px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.thumb-item {
  aspect-ratio: 4/3;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.thumb-item.active, .thumb-item:hover {
  opacity: 1;
}

.detail-info h1 {
  margin-bottom: 15px;
}

.detail-desc {
  margin-bottom: 30px;
}

.specs-list {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 25px 0;
  margin-bottom: 30px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spec-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.spec-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Filter Bar for Products Page */
.filter-bar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--color-text);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Process Grid for Special Production */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 50px;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-card {
  background: var(--color-bg-alt);
  padding: 40px 30px;
  position: relative;
}

.process-num {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-accent);
  margin-bottom: 15px;
  line-height: 1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
