/* 
   Paulig Teppiche Berlin
   Premium CSS Design System & Stylesheet (Redesigned)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
  /* Color Palette */
  --color-primary: #1a1917;       /* Headings dark/bronze-charcoal by default */
  --color-primary-light: #2d2b27; /* Soft dark elements */
  --color-accent: #c5a059;        /* Antique Gold */
  --color-accent-dark: #a88544;   /* Gold Hover */
  --color-bg-light: #fcfaf6;      /* Premium Champagne Cream background */
  --color-bg-sand: #f4f0e6;       /* Slightly darker sandstone for light sand sections */
  --color-border: #eeeae2;        /* Delicate warm grey/sand borders */
  --color-text-main: #23211e;     /* Elegant soft charcoal text by default */
  --color-text-muted: #6b6359;    /* Soft warm muted sand text */
  --color-text-light: #ffffff;    /* Light text for dark sections */
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1400px;
  --header-height: 95px;
  --border-radius-sm: 2px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
  
  /* Shadows */
  --shadow-subtle: 0 4px 30px rgba(0, 0, 0, 0.02);
  --shadow-medium: 0 12px 40px rgba(30, 30, 30, 0.04);
  --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.75;
  overflow-x: hidden;
  font-weight: 300;
}

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

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

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-dark);
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: 4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
}

h4 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.text-highlight {
  color: var(--color-accent);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 5;
}

.section-padding {
  padding: 8rem 0;
}

.bg-sand {
  background-color: var(--color-bg-sand);
}

.grid {
  display: grid;
  gap: 3rem;
}

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

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

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #121212;
  border-color: var(--color-accent);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #121212;
  box-shadow: 0 5px 25px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #121212;
  box-shadow: 0 5px 25px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
  border-color: var(--color-border);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==========================================================================
   Header / Navigation (Redesigned to match image)
   ========================================================================== */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(252, 250, 246, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 80px;
  background: rgba(252, 250, 246, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-image {
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5c554e;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.header-phone-box {
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  font-weight: 600;
  color: #1a1917;
  background-color: rgba(252, 250, 246, 0.6);
  display: block;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.header-phone-box:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 25px;
  height: 16px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  margin-top: var(--header-height);
  background-color: #fcfaf6;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #fcfaf6, transparent);
  z-index: 3;
  pointer-events: none;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active .slide-image {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 680px;
  padding: 4.5rem;
  background: rgba(252, 250, 246, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 160, 89, 0.2);
  box-shadow: 0 30px 60px rgba(197, 160, 89, 0.08);
}

.hero-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 600;
}

.hero-title {
  color: var(--color-primary);
  font-size: 3.6rem;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.25;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 600px;
}

.slider-controls {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  display: flex;
  gap: 1.2rem;
  z-index: 5;
}

.slider-arrow {
  width: 55px;
  height: 55px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Sections & Features
   ========================================================================== */
.section-header {
  max-width: 800px;
  margin: 0 auto 5rem auto;
  text-align: center;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.section-title-divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 2rem auto 0 auto;
}

/* Feature Cards */
.feature-card {
  background-color: var(--color-bg-light);
  padding: 4rem 3rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

.feature-icon-wrapper {
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.feature-icon-wrapper svg {
  width: 44px;
  height: 44px;
  fill: currentColor;
}

/* ==========================================================================
   Collections Grid & Detail
   ========================================================================== */
.collection-card {
  position: relative;
  overflow: hidden;
  background-color: #121212;
  aspect-ratio: 1 / 1;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

.collection-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-8px);
}

.collection-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.collection-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collection-card:hover .collection-img-wrapper img {
  transform: scale(1.08);
}

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2.5rem;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.4) 60%, rgba(18, 18, 18, 0) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-card-title {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.collection-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  transform: translateY(15px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.collection-card:hover .collection-overlay .collection-card-desc {
  transform: translateY(0);
  opacity: 1;
}

.collection-card-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.collection-card-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.collection-card:hover .collection-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Room Guide / Size Tabs
   ========================================================================== */
.room-guide-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.9rem 1.8rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
  color: var(--color-text-main);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.8s ease;
}

.tab-pane.active {
  display: block;
}

.tab-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.tab-text {
  padding: 1rem 0;
}

.tab-text h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.tab-text p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.tab-image {
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

/* ==========================================================================
   Call To Action (Homeservice)
   ========================================================================== */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 160, 118, 0.1) 0%, rgba(18,18,18,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.cta-content h2 {
  color: var(--color-text-light);
  font-size: 3rem;
  margin-bottom: 1.8rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.cta-image {
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

/* ==========================================================================
   Contact Details & Map
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.contact-info-item {
  display: flex;
  gap: 2rem;
}

.contact-info-icon {
  width: 55px;
  height: 55px;
  background-color: var(--color-bg-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-info-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.contact-info-text p {
  margin: 0;
  font-size: 1.05rem;
}

.contact-form-wrapper {
  background-color: var(--color-bg-light);
  padding: 4rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-bg-sand);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-accent);
  background-color: var(--color-bg-light);
  box-shadow: 0 0 0 3px rgba(196, 160, 118, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.form-checkbox input {
  margin-top: 0.35rem;
  accent-color: var(--color-accent);
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.map-placeholder {
  width: 100%;
  height: 380px;
  background-color: var(--color-bg-sand);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.map-placeholder-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.map-placeholder-content svg {
  width: 44px;
  height: 44px;
  fill: var(--color-accent);
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #121212;
  color: #e6e0d5;
  padding: 6rem 0 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-logo-desc p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-accent);
  color: #121212;
  border-color: var(--color-accent);
}

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

.footer-col-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  line-height: 1.6;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 2.5rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Internal Pages Header / Intro
   ========================================================================== */
.page-intro {
  margin-top: var(--header-height);
  padding: 6.5rem 0;
  background-color: var(--color-bg-sand);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-intro h1 {
  font-size: 3.6rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.breadcrumbs {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 500;
}

.breadcrumbs span {
  color: var(--color-accent);
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 1rem;
}

.value-card h3 {
  font-size: 1.6rem;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 5rem auto 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2.5rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 5rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 5rem;
}

.timeline-dot {
  position: absolute;
  top: 3.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 3px solid var(--color-bg-light);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Collections Filters & Sub-Collections
   ========================================================================== */
.collection-filter-container {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 5rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: var(--transition-fast);
  text-transform: uppercase;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.5rem 3.5rem;
}

.product-card {
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.product-img-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-sand);
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-info {
  padding: 2.5rem 2rem;
}

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

.product-title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.product-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 9999;
}

.toast {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 1.2rem 2.2rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--color-accent);
  font-size: 0.95rem;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Premium Design Highlight Features
   ========================================================================== */

/* 1. Interactive Rug Configurator */
.configurator-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  background: var(--color-bg-sand);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 5;
}

.configurator-preview {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
}

.configurator-rug-svg {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
  transition: var(--transition-smooth);
}

.configurator-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.configurator-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.configurator-group-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 600;
}

.swatch-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.15);
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  transform: scale(1.15);
}

.color-swatch.active::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
}

.configurator-info-box {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--color-accent);
  margin-top: 1.5rem;
}

.configurator-info-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.configurator-info-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* 2. Parallax Decorative Background Text */
.parallax-bg-wrapper {
  position: relative;
}

.parallax-bg-text {
  position: absolute;
  font-size: 14vw;
  font-family: var(--font-serif);
  font-weight: 700;
  color: rgba(197, 160, 89, 0.05);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  left: 2%;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  will-change: transform;
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .parallax-bg-text {
    animation: scroll-parallax-y linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

@keyframes scroll-parallax-y {
  from { transform: translateY(100px); }
  to { transform: translateY(-100px); }
}

/* 3. Scroll Reveal Animations */
.reveal-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .reveal-scroll {
    animation: fade-in-up linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 30%;
    transition: none !important;
    opacity: auto;
    transform: none;
  }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 4. History Timeline dynamic filling */
.timeline-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-dark));
  z-index: 2;
  height: 0%;
  transition: height 0.5s ease-out;
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .timeline-fill {
    animation: fill-timeline linear both;
    animation-timeline: view();
    animation-range: entry 5% exit 95%;
    transition: none !important;
  }
}

@keyframes fill-timeline {
  from { height: 0%; }
  to { height: 100%; }
}

/* 5. Custom Visual Rug Size Guide Widget */
.size-guide-widget {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-medium);
  margin-top: 4rem;
}

.room-preview-box {
  width: 100%;
  height: 280px;
  background: #f0ede7;
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.room-sofa {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 90px;
  background: #2b2b2b;
  border-radius: 6px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.room-sofa::after {
  content: 'SOFA';
}

.room-rug-visual {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(45deg, var(--color-accent) 0, var(--color-accent) 2px, transparent 0, transparent 8px);
  border: 2px solid var(--color-accent);
  opacity: 0.75;
  transition: var(--transition-smooth);
  z-index: 5;
  border-radius: 2px;
}

.room-rug-visual[data-size="small"] {
  width: 180px;
  height: 110px;
  bottom: 15px;
}

.room-rug-visual[data-size="medium"] {
  width: 240px;
  height: 150px;
  bottom: 10px;
}

.room-rug-visual[data-size="large"] {
  width: 310px;
  height: 190px;
  bottom: 5px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  
  .header .container {
    padding: 0 1.5rem;
  }
  
  .nav {
    gap: 1.2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 80px;
  }
  
  .section-padding { padding: 6rem 0; }
  
  .menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-bg-light);
    flex-direction: column;
    padding: 8rem 3rem 3rem 3rem;
    gap: 2.5rem;
    align-items: flex-start;
    box-shadow: -15px 0 40px rgba(0,0,0,0.06);
    transition: var(--transition-smooth);
    z-index: 1000;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .tab-content-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  
  .configurator-section {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(odd) {
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 13px !important;
    right: auto !important;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .container { padding: 0 1.5rem; }
  .btn { width: 100%; text-align: center; }
  .contact-form-wrapper { padding: 3rem 2rem; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-direction: column; gap: 1rem; }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 480px;
  width: calc(100% - 50px);
  background: rgba(252, 250, 246, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-accent);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-premium);
  padding: 1.75rem;
  z-index: 10000;
  display: none;
  animation: slideInUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-consent-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.cookie-consent-banner p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cookie-consent-banner p a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-banner p a:hover {
  text-decoration: underline;
}

.cookie-consent-options {
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.cookie-option-item {
  margin-bottom: 0.75rem;
}

.cookie-option-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-main);
  cursor: pointer;
}

.cookie-option-item input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-consent-actions .btn {
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  width: auto;
}

.cookie-consent-actions .btn-cookie-settings-btn {
  background: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.cookie-consent-actions .btn-cookie-settings-btn:hover {
  background: var(--color-bg-sand);
  border-color: var(--color-accent);
}

@media (max-width: 576px) {
  .cookie-consent-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    padding: 1.5rem;
  }
  
  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-consent-actions .btn {
    width: 100%;
    text-align: center;
  }
}
