/* ============================================
   SPAZIO — Premium Furniture & Interior Design
   Inspired by Odzimu Exposure structure & style
   ============================================ */

:root {
  /* Brand Color Palette */
  --color-brand-red: #C22F19;
  /* Vibrant burnt orange */
  --color-bg-warm: #f5efea;
  /* Warm oatmeal cream */
  --color-bg-base: #f5efea;
  /* Warm oatmeal base */
  --color-bg-card: #ffffff;
  /* Pure White */

  --color-text-dark: #000000;
  /* Pure Black */
  --color-text-muted: #66615b;
  /* Muted charcoal for reading comfort */
  --color-accent-gold: #C22F19;
  /* Secondary orange/rust shade */

  --color-dark-green: #000000;
  /* Deep black panels */
  --color-border: #dcd7cf;

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --space-unit: 1rem;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Glassmorphic Pill Shape */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: var(--max-width);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  padding: 0.6rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 0.5rem 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  top: 0.75rem;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0;
  max-width: none;
}

.logo {
  position: relative;
  width: 220px;
  /* Fixed space for the logo */
  height: 32px;
  /* Small height matching navbar layout */
}

.logo img {
  height: 85px;
  /* Big logo hanging/overflowing the navbar */
  width: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  filter: invert(39%) sepia(80%) saturate(168%) hue-rotate(320deg) brightness(97%) contrast(323%);
  /* Tints logo to #C22F19 */
  display: block;
}

.nav-desktop {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #C22F19;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #000000;
}

/* Inquire CTA - matching Image 3 */
.nav-cta {
  background-color: #C22F19;
  color: #fff8f5;
  padding: 0.65rem 2rem;
  border-radius: 24px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: background-color 0.3s, transform 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-cta:hover {
  background-color: #000000;
  color: #fff8f5;
  text-decoration: underline;
}

/* Search Icon */
.nav-search-btn {
  color: #C22F19;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-search-btn:hover {
  color: var(--color-brand-red);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-bg-warm);
  padding: 12rem 0 12rem 0;
  /* extra padding for overlap */
  overflow: hidden;
}

/* Background image filling all screen behind the words */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../back groud 3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #E6E0D8;
  /* Clean warm beige matching the image */
  z-index: 1;
}

/* Subtle overlay on the image to ensure high text contrast */
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 248, 245, 0.85) 0%, rgba(255, 248, 245, 0.5) 50%, rgba(255, 248, 245, 0.3) 100%);
  z-index: 2;
}

.hero-grid {
  display: block;
  /* Removed grid to let text sit centered/left on background */
  position: relative;
  z-index: 3;
}

.hero-left {
  position: relative;
  z-index: 4;
  max-width: 600px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 450px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Explore Button (Large Dark Rounded) */
.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background-color: #C22F19;
  color: #fff8f5;
  padding: 1rem 2rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  background-color: #000000;
  color: #fff8f5;
  transform: translateY(-2px);
}

.btn-explore:hover .btn-explore-circle {
  border-color: rgba(255, 248, 245, 0.6);
}

.btn-explore-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 245, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: border-color 0.3s ease;
}

/* Slider Controls */
.hero-slider-info {
  margin-top: 3.5rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-slider-info span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: var(--color-text-muted);
}

/* Features Panel: Overlapping White Card */
.features-panel {
  position: relative;
  margin-top: -6rem;
  /* pull up to overlap hero */
  margin-bottom: 5rem;
  z-index: 10;
}

.features-card {
  background-color: var(--color-bg-card);
  border-radius: 36px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

.feature-column:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--color-border);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: #F8F4F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #C22F19;
  font-size: 1.2rem;
}

.feature-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 160px;
}

/* Shop By Category Section */
.category-section {
  padding-bottom: 5rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.category-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dark);
}

.view-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-link:hover {
  color: var(--color-brand-red);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.category-card-bg {
  width: 100%;
  height: 100%;
  background-color: #E2DDD6;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card:hover .category-card-bg {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(39, 46, 32, 0.9) 0%, rgba(39, 46, 32, 0.2) 40%, transparent 100%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  color: var(--color-bg-card);
}

.category-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.category-card-count {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* New Arrivals Block */
.arrivals-block {
  background-color: #C22F19;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  color: var(--color-bg-card);
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.arrivals-left {
  z-index: 2;
}

.arrivals-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.arrivals-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.btn-shop-now {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-bg-card);
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s, border-color 0.3s;
}

.btn-shop-now:hover {
  background-color: var(--color-bg-card);
  color: #C22F19;
  border-color: var(--color-bg-card);
}

.arrivals-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

/* Product Card inside New Arrivals */
.product-card {
  background-color: var(--color-bg-card);
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
  color: var(--color-text-dark);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-img-wrapper {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #EAE6DF;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 0.85rem;
  color: var(--color-accent-gold);
  font-weight: 700;
}

/* Floating Navigation Circle Arrow */
.float-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-bg-card);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.float-arrow-btn:hover {
  background-color: var(--color-brand-red);
  color: var(--color-bg-card);
}

/* Footer Section */
.footer {
  background-color: #fff8f5;
  color: rgba(0, 0, 0, 0.7);
  padding: 4rem 0 2rem 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 100px;
  margin-bottom: 1.5rem;
  filter: invert(39%) sepia(80%) saturate(168%) hue-rotate(320deg) brightness(97%) contrast(323%);
}

.footer-brand p {
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  color: #C22F19;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #C22F19;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: #000000;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Nav Overlay (hidden on desktop) */
.nav-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 991px) {
  .header {
    top: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.9rem 1.5rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  .header.scrolled {
    top: 0;
    border-radius: 0;
    padding: 0.7rem 1.5rem;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 32px;
    height: 22px;
  }

  .menu-toggle .bar {
    height: 2.5px;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-mobile.active {
    transform: translateY(0);
  }

  .nav-mobile .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #C22F19;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
  }

  .nav-mobile .nav-link:hover {
    color: var(--color-brand-red);
  }

  .nav-mobile .nav-cta {
    background-color: #C22F19;
    color: #fff8f5;
    padding: 0.85rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.3s;
  }

  .nav-mobile .nav-cta:hover {
    transform: scale(1.05);
    background-color: #000000;
  }

  .logo {
    width: 150px;
    height: 34px;
  }

  .logo img {
    height: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-right {
    height: 350px;
  }

  .features-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .feature-column:nth-child(2)::after {
    display: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arrivals-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .features-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 1.5rem 0.5rem;
    border-radius: 20px;
  }

  .feature-column {
    padding: 0 0.25rem;
  }

  .feature-column::after {
    display: block !important;
    right: -0.25rem !important;
    height: 80% !important;
    top: 10% !important;
  }

  .feature-column:last-child::after {
    display: none !important;
  }

  .feature-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .feature-title {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
  }

  .feature-desc {
    font-size: 0.52rem;
    line-height: 1.2;
    max-width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .category-grid .category-card-content {
    padding: 0.75rem 0.5rem;
  }

  .category-grid .category-card-title {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .category-grid .category-card-count {
    font-size: 0.58rem;
  }

  .arrivals-block {
    padding: 2.5rem 1.25rem;
    gap: 1.5rem;
  }

  .arrivals-title {
    margin-bottom: 1.5rem;
  }

  .arrivals-right {
    gap: 1rem;
  }

  .product-card {
    padding: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}