/* Styles de base */
:root{
  --primary: #D4A574;
  --primary-dark: #B8956A;
  --primary-darker: #9A7E5D;
  --accent: #E8D4BC;
  --accent-dark: #D9C2A8;
  --dark-beige: #C9B399;
  --bg: #0F0F0F;
  --bg-accent: #1A1A1A;
  --text: #F5F5F5;
  --light-text: #B0B0B0;
  --border: #2A2A2A;
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 28px rgba(0,0,0,0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header:hover {
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.25);
}

.site-header.shrink {
  padding: 2px 0;
  transform: translateY(-80%) scale(0.85);
  transform-origin: top center;
}

.site-header.shrink .logo img {
  height: 20px;
}

.site-header.shrink .nav {
  font-size: 12px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.logo a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.logo a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}

@media (max-width: 768px) {
  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .nav li {
    flex: 1 1 auto;
    text-align: center;
  }
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav a:hover::before,
.nav a.active::before {
  width: 100%;
}

.nav a.active,
.nav a:hover {
  color: var(--primary-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1A1A1A 0%, var(--bg-accent) 50%, #0F0F0F 100%);
  padding: 80px 40px;
  border-radius: 16px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 2px solid var(--primary);
  animation: slideUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h2 {
  margin: 0 0 16px 0;
  font-size: 36px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero p {
  margin: 0 0 24px 0;
  color: var(--light-text);
  font-size: 16px;
}

/* CTA Button */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: #fff;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.35);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(154, 126, 93, 0.4);
  letter-spacing: 1px;
}

.cta:hover::before {
  left: 100%;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  padding: 50px;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 1px solid var(--primary);
  animation: slideUp 0.6s ease-out 0.1s both;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, transparent 100%);
  border-radius: 2px 2px 0 0;
}

.about h3 {
  color: var(--primary-darker);
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 24px;
  font-weight: 700;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about li {
  padding: 14px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text);
  transition: all 0.3s ease;
  font-weight: 500;
}

.about li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 18px;
}

.about li:hover {
  color: var(--primary-dark);
  padding-left: 38px;
}

/* Contact Section */
.contact {
  padding: 50px 0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-darker);
  font-size: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-section {
  background: var(--bg-accent);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-section h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 24px;
}

.contact-section p {
  margin: 8px 0;
  line-height: 1.6;
}

.contact-section a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-section a:hover {
  color: var(--primary-darker);
  text-decoration: underline;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  animation: slideUp 0.6s ease-out 0.2s both;
}

/* Card */
.card {
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: scaleIn 0.5s ease-out backwards;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10;
}

.card:hover::after {
  transform: scaleX(1);
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 40px rgba(212, 165, 116, 0.15);
  border-color: var(--primary);
  background: linear-gradient(135deg, #252525 0%, #2A2A2A 100%);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
}

.card:hover img {
  transform: scale(1.1);
}

.card h3 {
  margin: 20px 18px 10px 18px;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 0 18px 20px 18px;
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
  color: #FFFFFF;
  padding: 50px 0;
  margin-top: 60px;
  position: relative;
  border-top: 4px solid var(--primary);
  text-align: center;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--dark-beige) 100%);
}

.footer-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-grid > div {
  flex: 1;
  min-width: 200px;
}

.footer-grid strong {
  color: var(--accent);
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-footer a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-grid p {
  margin: 8px 0;
  color: #E0E0E0;
  font-size: 14px;
  line-height: 1.6;
}

/* ==== INSPIRATIONS PAGE STYLES ==== */
.catalogue-main { /* used for Inspirations page */
  max-width: 100%;
  padding: 0;
}

.catalogue-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  border-bottom: 3px solid var(--primary);
  border-radius: 0 0 16px 16px;
}

.catalogue-header h2 {
  margin: 0 0 12px 0;
  font-size: 36px;
  color: var(--text);
  font-weight: 700;
}

.catalogue-header p {
  margin: 0;
  color: var(--light-text);
  font-size: 16px;
}

.catalogue-container {
  width: 100%;
}

.catalogue-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
  padding: 60px 20px;
  position: relative;
  border-bottom: 3px solid var(--primary);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-number {
  position: absolute;
  bottom: 30px;
  right: 40px;
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  opacity: 0.8;
}

.page-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.catalogue-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: slideUp 0.6s ease-out;
}

.catalogue-item:nth-child(2) {
  animation-delay: 0.1s;
}

.item-image {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.8);
  border: 3px solid var(--primary);
  background: linear-gradient(135deg, #1A1A1A 0%, #252525 100%);
  position: relative;
}

.item-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 13px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  position: relative;
  z-index: 1;
}

.catalogue-item:hover .item-image img {
  transform: scale(1.12);
}

.item-info h3 {
  margin: 0 0 16px 0;
  font-size: 26px;
  color: var(--primary-darker);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.item-info > p {
  margin: 0 0 24px 0;
  color: var(--light-text);
  font-size: 15px;
  line-height: 1.8;
}

.item-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-specs li {
  color: var(--text);
  padding-left: 32px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.item-specs li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: bold;
}

.catalogue-item:hover .item-specs li {
  padding-left: 36px;
  color: var(--primary-darker);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .about {
    padding: 30px 20px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
  
  .catalogue-page {
    min-height: auto;
    padding: 40px 20px;
  }
  
  .page-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .item-image {
    height: 300px;
  }
  
  .page-number {
    position: static;
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav {
    gap: 16px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .hero {
    padding: 30px 20px;
  }
  
  .hero h2 {
    font-size: 22px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
  
  .catalogue-header h2 {
    font-size: 24px;
  }
  
  .catalogue-page {
    padding: 30px 16px;
  }
  
  .item-image {
    height: 200px;
  }
  
  .item-info h3 {
    font-size: 20px;
  }
  
  .item-specs {
    gap: 8px;
  }
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 200;
  font-weight: 700;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  transform: translateY(-4px) scale(1.04);
}

@media (max-width: 480px) {
  #backToTop { right: 14px; bottom: 18px; width: 40px; height: 40px; }
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .image-gallery img {
    border-radius: 4px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}
