/* ═══════════════════════════════════════════
   ZOMBIEDREAM — Premium Pillow Store
   Aesthetic: Serene Cloud & Soft Minimalism
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Soft Serene Palette */
  --bg-body: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-alt: #F1F3F5;
  
  --accent-primary: #8BA0B3;
  --accent-hover: #758A9D;
  --accent-light: #E2E8F0;
  
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --text-muted: #A0AEC0;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  
  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Styling Elements */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 50px;
  
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.03);
  
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-primary);
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-family: var(--font-body); font-weight: 500; }

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition);
}

.header-nav a:hover::after {
  width: 100%;
}

.text-secondary { color: var(--text-secondary); }

/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-soft);
    transform: translateY(-150%);
    transition: transform var(--transition);
    gap: var(--space-md);
  }
  .header-nav.open { transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-body) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 160, 179, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--space-sm) auto var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-pill);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #FFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 160, 179, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--accent-light);
}

.btn-outline:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
  margin: var(--space-sm) auto;
}

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
  width: 100%;
  height: 260px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  position: relative;
  background: var(--bg-alt);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-title {
  margin-bottom: var(--space-xs);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--accent-light);
}

.product-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: var(--border-radius-pill);
  color: var(--text-secondary);
}

/* --- Features / Technology --- */
.features {
  background: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.feature-item {
  padding: var(--space-md);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Inner Pages --- */
.page-header {
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--accent-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.about-card {
  background: var(--bg-surface);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-surface);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--accent-light);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-block h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-block p, .footer-block a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.footer-block a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--accent-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Legal Pages --- */
.legal-content {
  background: var(--bg-surface);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  margin: var(--space-xl) auto;
  max-width: 800px;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  padding-left: var(--space-md);
  list-style: disc;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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