/* Kaya Panel — Minimal Premium */

:root {
  --bg: #FAF8F5;
  --bg-alt: #F2EFE9;
  --text: #1C1C1C;
  --text-muted: #7A7570;
  --accent: #8B7355;
  --border: rgba(28, 28, 28, 0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-nav: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --max: 1100px;
  --ease: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: color 0.4s ease;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 202;
  pointer-events: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-nav);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.4s ease;
  text-shadow: 0 1px 12px rgba(250, 248, 245, 0.8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.4s ease, opacity 0.3s ease;
  text-shadow: 0 1px 10px rgba(250, 248, 245, 0.9), 0 0 24px rgba(250, 248, 245, 0.5);
}

.nav__links a:hover {
  color: var(--accent);
  opacity: 0.85;
}

.nav__cta {
  font-weight: 700;
  border-bottom: 2px solid var(--text);
  padding-bottom: 3px;
  transition: color 0.4s ease, border-color 0.4s ease;
}

/* Header on dark / photo backgrounds */
.header--dark .logo,
.header--dark .nav__links a {
  color: #FAF8F5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.header--dark .nav__links a:hover {
  color: rgba(250, 248, 245, 0.75);
}

.header--dark .nav__cta {
  border-color: #FAF8F5;
}

.header--dark .nav__toggle span {
  background: #FAF8F5;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  margin: -10px;
  z-index: 201;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: background 0.4s ease, transform 0.4s ease;
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
}

.hero__image {
  position: absolute;
  inset: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  background: var(--bg-alt);
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(250, 248, 245, 1) 0%,
    rgba(250, 248, 245, 0.4) 40%,
    rgba(250, 248, 245, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 80px;
  width: 100%;
}

.hero__tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  letter-spacing: 0.02em;
}

/* ---- Button ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  min-height: 48px;
  line-height: 1.2;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  transition: var(--ease);
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---- Product ---- */
.product {
  padding: 120px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.product__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product__image {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.product__image:hover img {
  transform: scale(1.03);
}

.product__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.product__text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 420px;
}

.product__specs {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.product__specs dt {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.product__specs dd {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

/* ---- Application ---- */
.application {
  padding: 0 32px 120px;
  max-width: var(--max);
  margin: 0 auto;
}

.application__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.application__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.application__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.application__item:hover img {
  transform: scale(1.04);
}

.application__item figcaption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
}

/* ---- Colors ---- */
.colors {
  padding: 120px 32px;
  background: var(--bg-alt);
}

.colors__header {
  max-width: var(--max);
  margin: 0 auto 48px;
  text-align: center;
}

.colors__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.colors__header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.colors__hero {
  max-width: var(--max);
  margin: 0 auto 40px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border-radius: 2px;
}

.colors__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.5s ease;
}

.colors__swatches {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.colors__swatches::-webkit-scrollbar { display: none; }

.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}

.swatch span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.swatch:hover,
.swatch.active {
  border-color: var(--text);
  color: var(--text);
}

/* ---- Features ---- */
.features {
  padding: 120px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 64px;
}

.features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature {
  background: var(--bg);
  padding: 40px 32px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Gallery ---- */
.gallery {
  padding: 120px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.gallery h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.3s;
}

.gallery__item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---- CTA ---- */
.cta {
  padding: 120px 32px;
  background: var(--text);
  color: var(--bg);
}

.cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.cta__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.cta__price small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  opacity: 0.5;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cta__note {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 40px;
}

.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}

.cta .btn:hover {
  background: transparent;
  color: var(--bg);
}

.cta .btn--outline {
  background: transparent;
  color: var(--bg);
  border-color: rgba(250, 248, 245, 0.3);
}

.cta .btn--outline:hover {
  background: var(--bg);
  color: var(--text);
}

/* ---- Footer ---- */
.footer {
  padding: 64px 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer .logo {
  display: block;
  margin-bottom: 12px;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__domain {
  margin-top: 24px;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}

.footer__nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.footer__nav a:hover { color: var(--text); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(250, 248, 245, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  padding: 16px;
  opacity: 0.5;
  transition: opacity 0.3s;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }

.lightbox__close { top: 16px; right: 20px; font-size: 2.5rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---- Float WA ---- */
.float-wa {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: calc(20px + var(--safe-right));
  z-index: 90;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s;
}

.float-wa svg { width: 26px; height: 26px; color: white; }
.float-wa:hover { transform: scale(1.08); }

/* ---- Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85%, 320px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 16px) 24px 32px;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    z-index: 200;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav__links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav__links a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 48px;
    line-height: 1.4;
    text-shadow: none;
    color: var(--text);
  }

  .nav__links.open a,
  .header--dark .nav__links.open a {
    color: var(--text);
    text-shadow: none;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__overlay {
    display: block;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav__toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .nav__cta {
    border-bottom: none !important;
  }

  .header--dark .nav__toggle span {
    background: var(--text);
  }

  .product,
  .application,
  .colors,
  .features,
  .gallery,
  .cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .application {
    padding-bottom: 80px;
  }

  .colors,
  .features,
  .gallery {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cta {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .product__layout,
  .application__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product__image {
    aspect-ratio: 1;
  }

  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    padding: 16px 20px;
  }

  .hero__content {
    padding: 0 20px 48px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero__sub {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .product__specs {
    gap: 24px;
    justify-content: space-between;
  }

  .product__specs dt {
    font-size: 1.5rem;
  }

  .features__list {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 28px 20px;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery__item,
  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .colors__hero {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
  }

  .colors__swatches {
    margin: 0 -20px;
    padding: 4px 20px 8px;
  }

  .cta__price {
    font-size: 2rem;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta .btn {
    width: 100%;
  }

  .footer {
    padding: 48px 20px calc(48px + var(--safe-bottom));
  }

  .lightbox__prev { left: 4px; }
  .lightbox__next { right: 4px; }
  .lightbox__close { top: 8px; right: 8px; }
}

@media (min-width: 641px) {
  .colors__swatches {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 380px) {
  .product__specs {
    flex-direction: column;
    gap: 20px;
  }

  .hero h1 br { display: none; }
}
