/* ============================================
   HYGGE SCANDINAVIAN HOME INTERIOR — STYLE
   Clean Gradient · Off-white · Sage · Peach
   ============================================ */

:root {
  --cream: #f8f6f1;
  --warm-white: #ffffff;
  --soft-gray: #e8e4de;
  --mid-gray: #9a9590;
  --dark: #2c2825;
  --sage: #a8b5a0;
  --pale-sage: #c5d1bd;
  --sage-bg: rgba(168, 181, 160, 0.08);
  --peach: #e8c4b8;
  --pale-peach: #f2ddd4;
  --peach-bg: rgba(232, 196, 184, 0.1);
  --text-primary: #2c2825;
  --text-secondary: #6b6560;
  --text-muted: #9a9590;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(44, 40, 37, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 2px 12px rgba(44, 40, 37, 0.06);
  --shadow-md: 0 8px 32px rgba(44, 40, 37, 0.08);
  --shadow-lg: 0 16px 48px rgba(44, 40, 37, 0.1);
  --radius: 16px;
  --section-spacing: 120px;
  --container-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream); color: var(--text-primary);
  line-height: 1.7; font-size: 16px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }
::selection { background: rgba(168, 181, 160, 0.25); color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.15; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* ── Preloader ── */
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader { text-align: center; }
.loader-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; letter-spacing: 0.4em; color: var(--dark);
}
.loader-bar {
  width: 80px; height: 2px; background: var(--soft-gray);
  margin: 20px auto 0; border-radius: 2px;
  overflow: hidden; position: relative;
}
.loader-progress {
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%; background: var(--sage);
  animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { left: -40%; } 100% { left: 100%; } }

/* ── Floating Blurs ── */
.floating-blur {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(100px); opacity: 0.5;
}
.fb-1 { width: 500px; height: 500px; background: rgba(168, 181, 160, 0.15); top: 10%; left: -10%; animation: fbFloat 20s ease-in-out infinite; }
.fb-2 { width: 400px; height: 400px; background: rgba(232, 196, 184, 0.12); top: 30%; right: -8%; animation: fbFloat 25s ease-in-out infinite reverse; }
.fb-3 { width: 600px; height: 600px; background: rgba(168, 181, 160, 0.1); bottom: 20%; left: 20%; animation: fbFloat 22s ease-in-out infinite 3s; }
.fb-4 { width: 350px; height: 350px; background: rgba(232, 196, 184, 0.1); bottom: 5%; right: 15%; animation: fbFloat 18s ease-in-out infinite reverse 2s; }
@keyframes fbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ── Navigation ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10000; padding: 20px 0; transition: all 0.4s ease;
}
#navbar.scrolled {
  padding: 12px 0;
  background: rgba(248, 246, 241, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; letter-spacing: 0.15em; color: var(--dark);
}
.logo-dot { color: var(--sage); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--text-secondary);
  transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--sage); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--text-muted); transition: color 0.3s ease; padding: 3px;
}
.lang-btn.active { color: var(--sage); }
.lang-btn:hover { color: var(--text-secondary); }
.lang-divider { width: 1px; height: 12px; background: var(--soft-gray); }
.mobile-toggle { display: none; color: var(--dark); padding: 4px; }

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(248, 246, 241, 0.97);
  backdrop-filter: blur(24px);
  z-index: 100000;
  display: flex; flex-direction: column; padding: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-close { color: var(--dark); padding: 4px; }
.mobile-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-links a {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem; color: var(--text-secondary);
  transition: color 0.3s ease;
}
.mobile-links a:hover { color: var(--sage); }

/* ── Section Helpers ── */
.section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px; color: var(--dark);
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto; line-height: 1.8;
}
.section-header { text-align: center; margin-bottom: 56px; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: var(--dark); color: var(--cream);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; border-radius: 50px;
  transition: all 0.3s ease; border: none;
}
.btn-primary:hover {
  background: var(--sage); color: var(--dark);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: transparent;
  color: var(--dark); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em; border-radius: 50px;
  border: 1px solid var(--soft-gray); transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--sage); background: var(--sage-bg);
  transform: translateY(-2px);
}

/* ── HERO ── */
#hero { padding: 140px 0 80px; position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 8px 18px;
  background: var(--warm-white); border: 1px solid var(--glass-border);
  border-radius: 50px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400; line-height: 1.08; margin-bottom: 20px;
  color: var(--dark);
}
.hero-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 460px; margin-bottom: 36px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img {
  width: 100%; height: 520px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-image-accent {
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--pale-peach);
  z-index: -1;
}

/* ── LIFESTYLE ── */
#lifestyle { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.life-card {
  padding: 36px 28px; background: var(--warm-white);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  transition: all 0.4s ease;
}
.life-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: rgba(168, 181, 160, 0.2);
}
.life-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--sage);
}
.life-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.life-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ── ROOMS ── */
#rooms { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.room-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
}
.room-wide { grid-column: span 2; }
.room-card img {
  width: 100%; height: 100%; object-fit: cover;
  min-height: 280px;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.room-card:hover img { transform: scale(1.04); }
.room-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 40, 37, 0.65) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; opacity: 0; transform: translateY(8px);
  transition: all 0.5s ease;
}
.room-card:hover .room-overlay { opacity: 1; transform: translateY(0); }
.room-tag {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--pale-sage); margin-bottom: 6px;
}
.room-overlay h3 {
  font-size: 1.4rem; color: #fff;
}

/* ── FURNITURE ── */
#furniture { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.furn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.furn-content .section-title { text-align: left; }
.furn-text { color: var(--text-secondary); margin-bottom: 28px; font-size: 1rem; line-height: 1.8; }
.furn-features { display: flex; flex-direction: column; gap: 12px; }
.furn-feat {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--warm-white);
  border: 1px solid var(--glass-border); border-radius: 8px;
  font-size: 0.9rem; color: var(--text-secondary);
  transition: all 0.3s ease;
}
.furn-feat .iconify { color: var(--sage); flex-shrink: 0; }
.furn-feat:hover { border-color: rgba(168, 181, 160, 0.3); color: var(--dark); }
.furn-images { position: relative; }
.furn-main {
  width: 100%; height: 440px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.furn-accent {
  position: absolute; bottom: -24px; left: -24px;
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 12px; border: 4px solid var(--cream);
  box-shadow: var(--shadow-md);
}

/* ── STORAGE ── */
#storage { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stor-card {
  background: var(--warm-white); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s ease;
}
.stor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stor-img { height: 220px; overflow: hidden; }
.stor-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.stor-card:hover .stor-img img { transform: scale(1.05); }
.stor-info { padding: 24px; }
.stor-info h3 { font-size: 1.15rem; margin-bottom: 8px; }
.stor-info p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── GALLERY MASONRY ── */
#gallery { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.masonry {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.masonry-col { display: flex; flex-direction: column; gap: 16px; }
.mas-item {
  border-radius: 12px; overflow: hidden;
  transition: transform 0.4s ease;
}
.mas-item:hover { transform: scale(1.02); }
.mas-item img {
  width: 100%; height: auto; display: block;
}

/* ── FAQ ── */
#faq { padding: var(--section-spacing) 0; position: relative; z-index: 1; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--soft-gray); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 1rem; font-weight: 500;
  text-align: left; color: var(--dark); transition: color 0.3s ease;
}
.faq-question:hover { color: var(--sage); }
.faq-icon {
  transition: transform 0.3s ease; flex-shrink: 0;
  margin-left: 16px; color: var(--text-muted);
}
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--sage); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 22px; color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.8;
}

/* ── CTA ── */
#cta {
  padding: 120px 0; position: relative; overflow: hidden; z-index: 1;
  background: linear-gradient(135deg, rgba(168, 181, 160, 0.08), rgba(232, 196, 184, 0.1));
}
.cta-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(100px);
}
.cta-blob-1 { width: 500px; height: 500px; background: rgba(168, 181, 160, 0.12); top: -150px; left: 10%; animation: fbFloat 18s ease-in-out infinite; }
.cta-blob-2 { width: 400px; height: 400px; background: rgba(232, 196, 184, 0.12); bottom: -150px; right: 10%; animation: fbFloat 22s ease-in-out infinite reverse; }
.cta-content { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.cta-subtitle { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.8; }
.cta-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 160px; padding: 13px 18px;
  background: var(--warm-white); border: 1px solid var(--soft-gray);
  border-radius: 50px; color: var(--dark);
  font-size: 0.9rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color 0.3s ease;
}
.cta-form input::placeholder { color: var(--text-muted); }
.cta-form input:focus { border-color: var(--sage); }
.cta-form .btn-primary { flex-shrink: 0; }

/* ── FOOTER ── */
#footer {
  padding: 72px 0 36px; position: relative; z-index: 1;
  border-top: 1px solid var(--soft-gray);
  background: var(--warm-white);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); border: 1px solid var(--soft-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s ease;
}
.footer-socials a:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-bg); }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px; color: var(--dark);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .contact-list li { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.3s ease; }
.footer-col ul a:hover { color: var(--sage); }
.contact-list li { display: flex; align-items: center; gap: 8px; }
.contact-list .iconify { color: var(--sage); flex-shrink: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--soft-gray);
  font-size: 0.78rem; color: var(--text-muted);
}
.pw-link {
  color: var(--sage); font-weight: 600;
  transition: color 0.3s ease;
}
.pw-link:hover { color: var(--dark); }

/* ── Back to Top ── */
#backToTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--sage); color: var(--dark); transform: translateY(-3px); }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.3s; }
.reveal:nth-child(6) { transition-delay: 0.36s; }

body.lang-switching [data-i18n], body.lang-switching [data-i18n-placeholder] {
  opacity: 0; transition: opacity 0.2s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --section-spacing: 80px; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image img { height: 380px; }
  .lifestyle-grid { grid-template-columns: 1fr 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .room-wide { grid-column: span 1; }
  .furn-grid { grid-template-columns: 1fr; gap: 40px; }
  .storage-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-spacing: 64px; }
  .hero-title { font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero-image-accent { display: none; }
  .lifestyle-grid { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .furn-accent { display: none; }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: auto; }
  .cta-form .btn-primary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .masonry { grid-template-columns: 1fr; }
  .masonry-col:last-child { display: none; }
}