/* ============================================================
   PURE KARET JEWELLERY — RESPONSIVE STYLES
   ============================================================ */

/* ---------- 1920px+ ---------- */
@media (min-width: 1920px) {
  :root { --container-max: 1600px; }
  .hero-brand { font-size: 6rem; }
}

/* ---------- 1440px ---------- */
@media (max-width: 1440px) {
  .container { padding: 0 32px; }
  .primary-nav ul { gap: 26px; }
  .primary-nav a { font-size: 0.68rem; }
}

/* ---------- 1200px ---------- */
@media (max-width: 1200px) {
  :root { --header-height: 80px; --space-2xl: 90px; }
  .primary-nav ul { gap: 20px; }
  .primary-nav a { font-size: 0.65rem; letter-spacing: 0.16em; }
  .header-logo img { height: 68px; }
  .mega-menu { min-width: 640px; padding: 32px; }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 4; margin-bottom: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
  .header-center { display: none; }
  .header-left { min-width: auto; }
  .header-right { min-width: auto; gap: 16px; }
  .hamburger { display: block; }

  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .section-sm { padding: 50px 0; }

  .hero { min-height: 520px; }
  .hero-brand { letter-spacing: 0.1em; }

  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }

  .split-section { grid-template-columns: 1fr; }
  .split-image { aspect-ratio: 16 / 9; }
  .split-content { padding: 60px 32px; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }

  .testimonial-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }

  /* Touch-friendly tap targets */
  .header-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .btn {
    min-height: 46px;
    padding: 14px 28px;
  }

  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
}

/* ---------- 768px ---------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --announcement-height: 34px;
    --space-2xl: 64px;
    --space-xl: 48px;
  }

  body { font-size: 14px; }
  .container { padding: 0 20px; }

  .announcement-bar p {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    padding: 0 16px;
    text-align: center;
    line-height: 1.3;
  }

  .announcement-extra { display: none; }

  .header-logo img { height: 72px; }
  .header-icon { width: 20px; height: 20px; }

  .hero { height: auto; min-height: 78vh; padding: 80px 0; }
  .hero-content { padding: 0 24px; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-buttons .btn { width: 100%; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .testimonial-grid { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; border: none; gap: 12px; }
  .newsletter-form input {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 14px 4px;
  }
  .newsletter-form button {
    padding: 14px 24px;
    background: var(--pk-gold);
    color: var(--pk-black);
  }
  .newsletter-form button:hover { color: var(--pk-black); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .footer-legal { gap: 16px; }

  .back-to-top { right: 18px; bottom: 18px; width: 42px; height: 42px; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  :root { --header-height: 64px; --space-lg: 32px; --space-xl: 40px; }

  .container { padding: 0 16px; }

  .header-logo img { height: 64px; }
  .header-right { gap: 14px; }
  .header-icon { width: 19px; height: 19px; }

  .hero { min-height: 72vh; padding: 60px 0; }
  .hero-content { padding: 0 18px; }
  .hero-brand { font-size: 2rem; letter-spacing: 0.06em; }
  .hero-tagline { font-size: 0.68rem; letter-spacing: 0.28em; }
  .hero-description { font-size: 0.85rem; margin-bottom: 32px; }
  .btn { padding: 13px 26px; font-size: 0.7rem; letter-spacing: 0.18em; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 44px 0; }

  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .product-info { padding: 14px 2px 6px; }
  .product-name { font-size: 1rem; }

  .instagram-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: span 1; }
}

/* ---------- 375px ---------- */
@media (max-width: 375px) {
  body { font-size: 13.5px; }
  .header-logo img { height: 60px; }
  .header-right { gap: 11px; }
  .header-icon { width: 18px; height: 18px; }
  .hero-brand { font-size: 1.7rem; }
  .btn { padding: 12px 22px; font-size: 0.66rem; }
  .container { padding: 0 14px; }
}

/* ============================================================
   MOBILE MENU — POLISHED
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 88%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--pk-black);
  color: var(--pk-white);
  z-index: 2000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 26px 24px 40px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  left: 0;
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.5);
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Menu header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-header img { height: 56px; width: auto; }

.mobile-menu-close {
  width: 44px;
  height: 44px;
  color: var(--pk-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: var(--pk-gold);
  border-color: var(--pk-gold);
  color: var(--pk-black);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* Menu items */
.mobile-menu ul { flex: 1; }

.mobile-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu ul li a,
.mobile-menu .mobile-nav-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pk-white);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a:active,
.mobile-menu .mobile-nav-toggle:hover,
.mobile-menu .mobile-nav-toggle:active {
  color: var(--pk-gold);
  padding-left: 6px;
}

.mobile-nav-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle.is-open svg { transform: rotate(180deg); }

/* Submenu */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 12px;
  margin: 0;
}

.mobile-submenu.is-open { max-height: 600px; }

.mobile-submenu a {
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
  padding: 12px 0 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-submenu a:hover,
.mobile-submenu a:active {
  color: var(--pk-gold) !important;
  padding-left: 6px !important;
}

/* Menu footer */
.mobile-menu-footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu-footer a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pk-off-white);
  transition: all 0.25s ease;
}

.mobile-menu-footer a:hover,
.mobile-menu-footer a:active {
  background: var(--pk-gold);
  border-color: var(--pk-gold);
  color: var(--pk-black);
}

.mobile-menu-footer svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }
}

/* Small phone tweaks */
@media (max-width: 480px) {
  .mobile-menu {
    width: 92%;
    padding: 22px 20px 32px;
  }

  .mobile-menu-header img { height: 48px; }

  .mobile-menu ul li a,
  .mobile-menu .mobile-nav-toggle {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    padding: 14px 0;
  }

  .mobile-menu-footer a {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 375px) {
  .mobile-menu {
    padding: 20px 16px 28px;
  }

  .mobile-menu-header img { height: 44px; }
}