/* KT Foams & Mattress - Premium Sleep Solutions */
/* Warm, luxurious aesthetic */

:root {
  --cream: #F7F3ED;
  --cream-dark: #EDE6DB;
  --brown: #2C2420;
  --brown-light: #4A4039;
  --accent: #B8860B;
  --accent-soft: #D4A84B;
  --white: #FFFFFF;
  --shadow: rgba(44, 36, 32, 0.12);
  --shadow-strong: rgba(44, 36, 32, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 400;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(247, 243, 237, 0.98);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--brown-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--brown);
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: 
    linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 50%, #E8DFD0 100%);
  padding: 6rem 1.5rem 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(184, 134, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212, 168, 75, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 700px;
}

.hero-promo-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 12px 40px var(--shadow-strong);
}

@media (min-width: 600px) {
  .hero-promo-img {
    max-width: 360px;
    max-height: 420px;
  }
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--brown-light);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream) !important;
}

.btn-primary:hover {
  background: var(--brown-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-strong);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-light);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Section Titles */
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brown);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--brown-light);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* Products Section */
.products {
  padding: 5rem 0;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 1.75rem;
}

.product-info h3 {
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

.product-grid--tech {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
}

.product-card--wide .product-image {
  aspect-ratio: 16/10;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.35rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

.about-text p {
  color: var(--brown-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-light) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  box-shadow: 0 20px 50px var(--shadow-strong);
}

.about-stat {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

.contact-detail {
  font-weight: 500;
  color: var(--brown) !important;
  margin-top: 0.5rem;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 30px var(--shadow);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-visual {
    order: -1;
  }

  .about-card {
    width: 180px;
    height: 180px;
  }

  .about-stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
