/* Modern Catalogue CSS - Creative & Luxurious */
:root {
  --gold-primary: #d4af37;
  --gold-secondary: #aa8420;
  --dark-bg: #0a0a0a;
  --dark-surface: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #a0a0a0;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Section Layout */
.catalogue-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px;
}

.catalogue-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/slider/viterra-bathware-slider-4.webp'); /* Use a nice existing image */
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
  filter: blur(5px);
}

.catalogue-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Left Content - Typography */
.catalogue-text-content {
  color: var(--text-light);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards 0.5s;
}

.catalogue-label {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold-primary);
  margin-bottom: 20px;
  display: block;
}

.catalogue-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 0%, #aa8420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalogue-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.catalogue-features {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

.cat-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-feature i {
  font-size: 24px;
  color: var(--gold-primary);
}

.cat-feature span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-light);
}

/* Button Styling */
.btn-catalogue-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-catalogue-download:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-catalogue-download i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-catalogue-download:hover i {
  transform: translateY(3px);
}

/* Right Content - 3D Book Animation */
.catalogue-visual {
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeLeft 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards 0.8s;
}

.book-container {
  position: relative;
  width: 350px;
  height: 500px;
  transform-style: preserve-3d;
  transform: rotateY(-30deg) rotateX(10deg);
  transition: transform 0.8s ease-out;
  cursor: pointer;
  box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}

.book-container:hover {
  transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
}

.book {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  border-radius: 2px 8px 8px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  box-sizing: border-box;
  backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 5px 0 10px rgba(0,0,0,0.5);
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.book-logo {
  width: 80%;
  margin: 0 auto;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.book-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold-primary);
  font-size: 32px;
  text-align: center;
  margin-top: auto;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.book-year {
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  letter-spacing: 4px;
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: #111;
  transform: rotateY(90deg) translateZ(-20px);
  border-radius: 2px 0 0 2px;
}

.book-pages {
  position: absolute;
  top: 5px;
  right: 0;
  width: 30px;
  height: 98%;
  background: 
    linear-gradient(to right, #ccc 0%, #eee 20%, #ddd 40%, #fff 50%, #ddd 60%, #eee 80%, #ccc 100%);
  transform: rotateY(90deg) translateZ(-15px);
  background-size: 4px 100%;
}

.book-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  transform: translateZ(-40px);
  border-radius: 2px 8px 8px 2px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
  .catalogue-container {
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  /* Use ID selector for higher specificity to ensure padding applies */
  #up.catalogue-hero {
    padding: 160px 20px 80px 20px !important; /* Force override */
    height: auto !important;
    min-height: auto !important;
    display: block !important; /* Stack content */
  }

  .catalogue-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
  }
  
  .catalogue-text-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .catalogue-visual {
    order: 2;
    height: auto;
    min-height: 400px;
    margin-top: 30px;
    transform: none;
    animation: fadeUp 1s ease forwards 0.2s;
    justify-content: center;
    display: flex;
  }

  .book-container {
    width: 280px;
    height: 400px;
    transform: rotateY(-20deg) rotateX(10deg); /* Slight angle for 3D feel */
    margin: 0 auto;
  }
  
  /* Reset hover effect for touch devices to avoid sticking */
  .book-container:hover {
    transform: rotateY(-20deg) rotateX(10deg);
  }
  
  .catalogue-features {
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .catalogue-actions {
    justify-content: center;
    width: 100%;
  }
  
  .catalogue-desc {
    margin: 0 auto 40px auto;
  }
}

/* Mobile Devices (Portrait Phones) */
@media (max-width: 576px) {
  #up.catalogue-hero {
    padding: 150px 20px 80px 20px !important; /* Extra padding for mobile header */
  }
  
  .catalogue-container {
     gap: 30px;
  }

  /* Typography Adjustments */
  .catalogue-headline {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .catalogue-label {
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 15px;
  }

  .catalogue-desc {
    font-size: 16px; 
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Feature Grid for better spacing */
  .catalogue-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
  }
  
  /* Make the 3rd item span full width to center it nicely if odd number */
  .cat-feature:nth-child(3) {
    grid-column: span 2;
    justify-self: center;
  }
  
  .cat-feature {
    align-items: center;
    text-align: center;
  }
  
  .cat-feature i {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .cat-feature span {
    font-size: 13px;
  }

  .btn-catalogue-download {
    width: auto;
    min-width: 250px;
    max-width: 100%;
    justify-content: center;
    padding: 16px 30px;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
  }

  /* Adjust Book for wider mobile compatibility */
  .catalogue-visual {
    min-height: 300px;
    margin-top: 10px;
  }

  .book-container {
    width: 220px;
    height: 310px; 
  }
  
  .book-title {
    font-size: 22px;
  }
  
  .book-cover {
    padding: 20px;
  }
  
  /* SEO Section Mobile adjustments */
  .seo-brand-overview.white-bg {
    padding: 50px 0;
  }
  
  .seo-brand-overview.white-bg .seo-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  .seo-brand-overview.white-bg .seo-text {
    font-size: 14px;
    padding: 0 15px;
    text-align: left;
    line-height: 1.7;
  }
  
  .seo-brand-overview.white-bg::before {
    display: none;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* SEO Brand Overview - Premium White Variant */
.seo-brand-overview.white-bg {
  background: #ffffff !important;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-top: none;
}

/* Subtle decorative background element */
.seo-brand-overview.white-bg::before {
  content: 'VITERRA';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 15vw;
  color: rgba(0,0,0,0.02);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.seo-brand-overview.white-bg .container {
  position: relative;
  z-index: 1;
}

.seo-brand-overview.white-bg .seo-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.seo-brand-overview.white-bg .seo-title {
  color: #111 !important;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.seo-brand-overview.white-bg .seo-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 20px auto 0;
}

.seo-brand-overview.white-bg .seo-text {
  color: #555 !important;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.seo-brand-overview.white-bg .seo-text strong {
  color: #000 !important;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.seo-brand-overview.white-bg .seo-text strong::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold-primary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.seo-brand-overview.white-bg .seo-text strong:hover {
  color: var(--gold-secondary) !important;
}

.seo-brand-overview.white-bg .seo-text strong:hover::after {
  opacity: 1;
  height: 2px;
}
