/* ============== MOBILE OVERRIDES ============== */

@media (max-width: 760px) {
  /* ==== Containers ==== */
  .container, .container-narrow { padding: 0 20px; }

  /* ==== Announcement ==== */
  .announce {
    font-size: 9px;
    letter-spacing: 0.24em;
    padding: 8px 14px;
    line-height: 1.4;
  }

  /* ==== Header — three-column compact: menu / brand / actions ==== */
  .nav {
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 18px;
    gap: 10px;
  }
  .menu-toggle { display: inline-flex; width: 36px; height: 36px; }
  .menu-toggle span { width: 14px; }

  /* Brand: stack K above name above tag, but small */
  .brand { gap: 4px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name {
    font-size: 9.5px;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }
  .brand-tag {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .nav-actions { gap: 8px; }
  .nav-actions > .nav-links-secondary,
  .nav-actions > .nav-links { display: none !important; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 12px; height: 12px; }
  .cart-count {
    width: 15px; height: 15px;
    font-size: 8px;
    margin-left: -8px;
    margin-top: -14px;
  }

  /* ==== Hero ==== */
  .hero { min-height: 78vh; }
  .hero-content { padding: 70px 22px 60px; }
  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
    margin: 18px 0 18px;
    max-width: 100%;
    line-height: 1.0;
  }
  .hero p { font-size: 14.5px; line-height: 1.65; margin-bottom: 28px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 14px 22px; font-size: 9.5px; letter-spacing: 0.3em; gap: 8px; }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .hero-meta div { font-size: 9px; letter-spacing: 0.3em; }
  .hero-meta strong { font-size: 14px; margin-top: 4px; }

  /* ==== Eyebrow ==== */
  .eyebrow { font-size: 9.5px; letter-spacing: 0.34em; }
  .eyebrow::before { width: 18px; margin-right: 10px; }

  /* ==== Section head ==== */
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-top: 14px; }
  .section-head p { font-size: 14px; margin-top: 14px; }

  /* ==== Tagline strip ==== */
  .tagline-strip { padding: 36px 20px; }
  .tagline-strip p { font-size: clamp(1.05rem, 5.2vw, 1.5rem); }
  .tagline-strip p span { padding: 0 8px; }

  /* ==== Marquee ==== */
  .marquee { padding: 16px 0; }
  .marquee-track span { font-size: 14px; }
  .marquee-track { gap: 36px; }
  .marquee-track span::before { margin-right: 36px; font-size: 10px; }

  /* ==== Categories ==== */
  .categories { padding: 70px 0 30px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { aspect-ratio: 3/4; }
  .cat-card-overlay { padding: 16px 14px; }
  .cat-card h3 { font-size: 17px; }
  .cat-card-overlay span { font-size: 8.5px; letter-spacing: 0.28em; }

  /* ==== Featured ==== */
  .featured { padding: 70px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; margin-top: 36px; }
  .product-img { margin-bottom: 12px; }
  .product-tag {
    font-size: 7.5px;
    padding: 4px 8px;
    top: 8px; left: 8px;
    letter-spacing: 0.24em;
  }
  .product-quick { padding: 10px; font-size: 8.5px; letter-spacing: 0.28em; }
  .product-cat { font-size: 8.5px; letter-spacing: 0.32em; margin-bottom: 5px; }
  .product-name { font-size: 16px; margin-bottom: 5px; line-height: 1.18; }
  .product-price { font-size: 12.5px; }

  /* ==== Story ==== */
  .story { padding: 80px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .story h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .story p { font-size: 14px; line-height: 1.7; }
  .story-stats { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; padding-top: 24px; }
  .story-stats div strong { font-size: 36px; margin-bottom: 4px; }
  .story-stats div span { font-size: 9px; letter-spacing: 0.28em; }

  /* ==== Collections ==== */
  .collections { padding: 70px 0; }
  .collections-grid { grid-template-columns: 1fr; gap: 14px; }
  .collection-card { aspect-ratio: 3/3.4; }
  .collection-card-text { padding: 22px; }
  .collection-card-text h3 { font-size: 24px; }
  .collection-card-text p { font-size: 12.5px; }
  .collection-card-text .top span { font-size: 14px; }

  /* ==== Testimonial ==== */
  .testimonial { padding: 70px 20px; }
  .testimonial-quote {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
    margin: 24px auto 22px;
  }
  .testimonial cite { font-size: 9.5px; letter-spacing: 0.3em; }

  /* ==== Journal ==== */
  .journal-grid { grid-template-columns: 1fr; gap: 32px; }
  .journal-card h3 { font-size: 20px; }
  .journal-card p { font-size: 13px; }
  .journal-feature { gap: 32px; margin-bottom: 56px; grid-template-columns: 1fr; }
  .journal-feature h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  /* ==== Newsletter ==== */
  .newsletter { padding: 60px 0; }
  .newsletter h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .newsletter p { font-size: 13.5px; margin-bottom: 24px; padding: 0 12px; }
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
    border: none;
    background: transparent;
  }
  .newsletter-form input {
    border: 1px solid var(--line-strong);
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 10px;
    background: var(--bg-soft);
  }
  .newsletter-form button {
    padding: 14px;
    font-size: 9.5px;
    letter-spacing: 0.3em;
    width: 100%;
  }

  /* ==== Footer ==== */
  .footer { padding: 56px 0 22px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
    text-align: left;
  }
  .footer-brand .brand { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 14px; }
  .footer-brand .brand-mark { width: 36px; height: 36px; }
  .footer-brand .brand-name { font-size: 11px; padding-top: 4px; }
  .footer-brand p { font-size: 13px; line-height: 1.7; max-width: 100%; margin: 14px 0; }
  .footer-social a { width: 34px; height: 34px; }
  .footer-social a svg { width: 12px; height: 12px; }
  .footer h4 { font-size: 9.5px; letter-spacing: 0.32em; margin-bottom: 14px; }
  .footer ul li { font-size: 13px; margin-bottom: 9px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 10.5px;
    padding-top: 22px;
    line-height: 1.6;
  }
  .footer-credit a { font-size: 13px; }

  /* ==== Page head ==== */
  .page-head { padding: 60px 0 40px; }
  .page-head h1 { font-size: clamp(2rem, 8.5vw, 3rem); margin: 12px 0; }
  .page-head p { font-size: 13.5px; padding: 0 8px; }
  .breadcrumb { font-size: 9px; letter-spacing: 0.3em; margin-bottom: 16px; }

  /* ==== Shop ==== */
  .shop-toolbar {
    padding: 18px 0;
    gap: 12px;
    margin-bottom: 26px;
    flex-direction: column;
    align-items: flex-start;
  }
  .filters { gap: 14px; font-size: 9px; letter-spacing: 0.26em; flex-wrap: wrap; }
  .shop-result { font-size: 11px; }
  .shop-result select { font-size: 9px; padding: 7px 10px; margin-left: 8px; }
  .pagination { margin-top: 44px; gap: 6px; }
  .pagination a { width: 36px; height: 36px; font-size: 12px; }

  /* ==== PDP ==== */
  .pdp { padding: 30px 0 70px; }
  .pdp-grid { gap: 32px; grid-template-columns: 1fr; }
  .pdp-info h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin: 10px 0; }
  .pdp-price { font-size: 20px; margin: 16px 0; }
  .pdp-price .old { font-size: 13px; margin-right: 10px; }
  .pdp-desc { padding: 20px 0; font-size: 13.5px; }
  .swatch { padding: 10px 16px; font-size: 10.5px; letter-spacing: 0.16em; }
  .pdp-cta { flex-direction: column; gap: 10px; margin-top: 24px; }
  .qty-input { justify-content: center; }
  .pdp-features { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; padding-top: 22px; }
  .feature span { width: 30px; height: 30px; }
  .feature strong { font-size: 14px; }
  .feature p { font-size: 11.5px; }

  /* ==== About / Values / Timeline ==== */
  .about-intro { padding: 60px 0; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-intro h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .about-intro p { font-size: 14px; }
  .values { padding: 70px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .value-item { padding: 32px 22px; }
  .value-item h3 { font-size: 20px; }
  .value-item .num { font-size: 44px; }
  .timeline { padding: 70px 0; }
  .timeline-grid { grid-template-columns: 1fr; gap: 4px; margin-top: 36px; }
  .timeline-item { padding: 22px 0; }
  .timeline-item .year { font-size: 42px; margin-bottom: 8px; }
  .timeline-item h3 { font-size: 18px; }
  .timeline-item p { font-size: 13px; }

  /* ==== Contact ==== */
  .contact-section { padding: 50px 0; }
  .contact-grid { gap: 44px; grid-template-columns: 1fr; }
  .contact-info h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); margin: 10px 0 22px; }
  .contact-info p { font-size: 14px; }
  .contact-block { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .contact-block strong { font-size: 9px; letter-spacing: 0.3em; }
  .contact-block div { font-size: 13px; }
  .contact-form { padding: 28px 22px; }
  .contact-form h3 { font-size: 22px; margin-bottom: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .btn { padding: 14px 22px; font-size: 9.5px; letter-spacing: 0.3em; gap: 8px; }
  .link-arrow { font-size: 9.5px; letter-spacing: 0.3em; gap: 8px; }
}

@media (max-width: 380px) {
  .container, .container-narrow { padding: 0 16px; }
  .nav { padding: 10px 14px; }
  .brand-mark { width: 22px; height: 22px; }
  .brand-name { font-size: 8.5px; letter-spacing: 0.32em; }
  .icon-btn { width: 30px; height: 30px; }
  .nav-actions { gap: 6px; }
  .menu-toggle { width: 30px; height: 30px; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.6rem); }
  .product-name { font-size: 14.5px; }
  .product-grid { gap: 20px 10px; }
}

/* Force-fix any leaks */
html, body {
  overflow-x: clip !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

section, header, footer, .marquee, .hero, .featured, .story, .collections,
.testimonial, .categories, .newsletter, .page-head, .pdp, .shop-section,
.about-intro, .values, .timeline, .contact-section, .journal-page,
.tagline-strip {
  overflow-x: hidden;
  max-width: 100vw;
}


/* ============== LOGO SIZE FIX — header mobile + footer ============== */

/* Footer logo: smaller everywhere so it stays crisp */
.footer-brand .brand-mark { width: 30px !important; height: 30px !important; }
.footer-brand .brand-name { font-size: 12px !important; letter-spacing: 0.55em !important; }
.footer-brand .brand-tag { font-size: 9px !important; letter-spacing: 0.16em !important; }
.footer-brand .brand-mark img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Mobile header — shrink K and tighten brand */
@media (max-width: 760px) {
  .brand-mark { width: 22px !important; height: 22px !important; }
  .brand-name { font-size: 9px !important; letter-spacing: 0.36em !important; padding-left: 0.36em !important; }
  .brand-tag { display: none !important; }

  /* Footer brand on mobile */
  .footer-brand .brand-mark { width: 28px !important; height: 28px !important; }
  .footer-brand .brand-name { font-size: 11px !important; }
  .footer-brand .brand-tag { font-size: 8.5px !important; }

  /* Tighten nav padding so smaller brand sits cleanly */
  .nav { padding: 10px 16px !important; gap: 8px !important; }
  .icon-btn, .menu-toggle { width: 32px !important; height: 32px !important; }
}

@media (max-width: 380px) {
  .brand-mark { width: 20px !important; height: 20px !important; }
  .brand-name { font-size: 8.5px !important; letter-spacing: 0.32em !important; }
  .icon-btn, .menu-toggle { width: 30px !important; height: 30px !important; }
}

/* Crisp image rendering for the K logo at any size */
.brand-mark img {
  image-rendering: -webkit-optimize-contrast;
}


/* ============== MOBILE DRAWER MENU ============== */

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 30, 56, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 998;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 88%;
  max-width: 420px;
  background: var(--bg);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -10px 0 60px rgba(12, 30, 56, 0.18);
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-drawer-head .brand {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.mobile-drawer-head .brand-mark { width: 28px !important; height: 28px !important; }
.mobile-drawer-head .brand-name {
  font-size: 11px !important;
  letter-spacing: 0.4em !important;
  padding-left: 0 !important;
  padding-top: 4px;
}
.mobile-drawer-head .brand-tag {
  display: none !important;
}
.mobile-drawer-close {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #0c1e38;
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  flex-shrink: 0;
}
.mobile-drawer-close:hover {
  background: #0c1e38;
  color: var(--bg);
  border-color: #0c1e38;
}

/* Main nav links */
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}
.md-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-family: var(--serif);
  font-size: 26px;
  color: #0c1e38;
  font-weight: 400;
  border-bottom: 1px solid rgba(20, 42, 74, 0.08);
  transition: all 0.3s var(--ease);
  text-decoration: none;
}
.md-link span:first-child {
  letter-spacing: -0.005em;
}
.md-arrow {
  font-size: 16px;
  color: var(--coral);
  opacity: 0.5;
  transition: all 0.4s var(--ease);
}
.md-link:hover {
  background: var(--bg-warm);
  color: var(--coral);
  opacity: 1;
}
.md-link:hover .md-arrow {
  opacity: 1;
  transform: translateX(6px);
}
.md-link.active {
  color: var(--coral);
  font-style: italic;
}
.md-link.active .md-arrow { opacity: 1; }

/* Sub-section: collections */
.mobile-drawer-collections {
  padding: 24px 24px 8px;
  border-top: 1px solid rgba(20, 42, 74, 0.12);
  margin-top: 8px;
  background: var(--bg-soft);
}
.mobile-drawer-collections h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 14px;
}
.md-sub {
  display: block;
  padding: 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: #4a4434;
  line-height: 1.4;
  border-bottom: 1px solid rgba(20, 42, 74, 0.06);
}
.md-sub:last-child { border-bottom: none; }
.md-sub:hover { color: var(--coral); opacity: 1; }

/* Footer of drawer */
.mobile-drawer-foot {
  padding: 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}
.mobile-drawer-foot .btn {
  margin-bottom: 22px;
}
.mobile-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4a4434;
  margin-bottom: 18px;
}
.mobile-drawer-contact a {
  color: #0c1e38;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mobile-drawer-contact a:hover { color: var(--coral); opacity: 1; }
.mobile-drawer-contact span {
  color: #6e6755;
  font-style: italic;
  font-family: var(--serif);
  font-size: 14px;
}

.mobile-drawer-social {
  display: flex;
  gap: 10px;
}
.mobile-drawer-social a {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: #0c1e38;
  transition: all 0.4s var(--ease);
}
.mobile-drawer-social a:hover {
  background: #0c1e38;
  color: var(--bg);
  border-color: #0c1e38;
  transform: translateY(-2px);
}

/* Hide drawer entirely on desktop — only mobile uses it */
@media (min-width: 1101px) {
  .mobile-drawer-overlay,
  .mobile-drawer { display: none !important; }
}

/* Small phone tweaks */
@media (max-width: 380px) {
  .md-link { font-size: 22px; padding: 16px 20px; }
  .mobile-drawer-head { padding: 18px 20px 14px; }
  .mobile-drawer-collections { padding: 20px 20px 6px; }
  .mobile-drawer-foot { padding: 20px; }
}
