/* ==========================================================================
   Sokax International — public site theme
   Warm, artisanal palette for a wooden-kitchenware manufacturer/exporter:
   cream/paper backgrounds, deep walnut text, amber/copper accent. Built on
   Bootstrap 5.3 utilities; this file only adds what Bootstrap doesn't.
   ========================================================================== */

:root {
  --cream: #faf6ef;
  --paper: #ffffff;
  --sand: #efe3d2;
  --sand-dark: #e3d3ba;
  --walnut-900: #2b1c10;
  --walnut-800: #3a2717;
  --walnut-700: #4a3220;
  --walnut-600: #6b4a2f;
  --amber-600: #b97a2e;
  --amber-500: #cf9147;
  --amber-400: #e0ac6a;
  --text: #2a2015;
  --text-muted: #6f6152;
  --border: #e2d3bb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px -12px rgba(43, 28, 16, 0.18);
  --shadow-lift: 0 20px 45px -18px rgba(43, 28, 16, 0.32);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber-400); color: var(--walnut-900); }

a { color: var(--amber-600); text-decoration: none; }
a:hover { color: var(--walnut-700); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--walnut-900);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.6rem;
}

.lead-muted { color: var(--text-muted); font-size: 1.08rem; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn-brand-primary {
  background: var(--amber-600);
  border: 1px solid var(--amber-600);
  color: #fff;
  font-weight: 600;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-brand-primary:hover { background: var(--walnut-800); border-color: var(--walnut-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-brand-outline {
  background: transparent;
  border: 1.5px solid var(--walnut-900);
  color: var(--walnut-900);
  font-weight: 600;
  padding: 0.68rem 1.45rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.btn-brand-outline:hover { background: var(--walnut-900); color: #fff; }

.btn-brand-light {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  font-weight: 600;
  padding: 0.68rem 1.45rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: all .2s ease;
}
.btn-brand-light:hover { background: #fff; color: var(--walnut-900); }

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -8px rgba(43,28,16,0.15);
  padding: 8px 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color .3s ease;
}
.brand-mark .brand-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--amber-500), var(--amber-600));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.brand-mark small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); text-transform: uppercase; transition: color .3s ease; }
.brand-mark .brand-word .char-mask { display: inline-block; overflow: hidden; line-height: 1.15; vertical-align: bottom; }
.brand-mark .brand-word .char-inner { display: inline-block; will-change: transform; }

.main-nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.main-nav a.btn-brand-primary, .main-nav a.btn-brand-primary:hover { color: #fff; }

.site-header .btn.d-lg-none { color: #fff; }

.site-header.is-scrolled .brand-mark { color: var(--walnut-900); }
.site-header.is-scrolled .brand-mark small { color: var(--text-muted); }
.site-header.is-scrolled .main-nav a { color: var(--walnut-800); }
.site-header.is-scrolled .main-nav a:hover, .site-header.is-scrolled .main-nav a.active { background: var(--sand); color: var(--walnut-900); }
.site-header.is-scrolled .btn.d-lg-none { color: var(--walnut-900); }

.offcanvas-brand { font-weight: 800; color: var(--walnut-900); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 900px 500px at 85% 20%, rgba(207,145,71,0.16), transparent 60%),
    linear-gradient(160deg, var(--walnut-900) 0%, #241609 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 100px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.15' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-visual .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(43,28,16,0.55) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}
.hero-visual-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  background: rgba(43,28,16,0.55); backdrop-filter: blur(4px);
  padding: 0.4rem 0.8rem; border-radius: 999px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p.lead { color: rgba(255,255,255,0.82); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 620px; }
.hero-eyebrow { color: var(--amber-400); }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent); }

/* ---------------------------------------------------------------------- */
/* Full-width hero slider (admin-managed banners/videos)                  */
/* ---------------------------------------------------------------------- */
.hero-slider-full { position: relative; }
.hero-full-swiper, .hero-full-swiper .swiper-slide { height: 92vh; min-height: 520px; max-height: 900px; }
.hero-slide-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-media img, .hero-slide-video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,28,16,0.5) 0%, rgba(43,28,16,0.3) 40%, rgba(43,28,16,0.8) 100%);
}
.hero-slide-content {
  position: absolute; left: 0; right: 0; bottom: 10%; z-index: 2;
  color: #fff;
}
.hero-slide-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; max-width: 780px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero-slide-content p.lead { color: rgba(255,255,255,0.9); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 600px; margin-top: 0.75rem; text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.hero-slide-content .btn-brand-primary { margin-top: 1.25rem; }
.hero-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(43,28,16,0.35); color: #fff; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .2s ease;
}
.hero-nav-btn:hover { background: rgba(43,28,16,0.6); }
.hero-nav-btn.swiper-prev { left: 20px; }
.hero-nav-btn.swiper-next { right: 20px; }
@media (max-width: 767.98px) {
  .hero-full-swiper, .hero-full-swiper .swiper-slide { height: 78vh; min-height: 440px; }
  .hero-nav-btn { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Compact page header (non-homepage pages, no full hero)                 */
/* ---------------------------------------------------------------------- */
.page-header {
  padding: 152px 0 4.5rem;
  background: var(--walnut-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.6rem; }
.page-header p { color: rgba(255,255,255,0.78); max-width: 640px; margin-bottom: 0; }
.page-header .breadcrumb-nav { margin-bottom: 1.4rem; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.4); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item a:hover { color: var(--amber-400); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.92); }
@media (max-width: 575.98px) { .page-header { padding: 128px 0 3.2rem; } }

.breadcrumb-nav .breadcrumb { --bs-breadcrumb-divider-color: var(--text-muted); margin-bottom: 0; font-size: 0.88rem; }
.breadcrumb-nav .breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-nav .breadcrumb-item a:hover { color: var(--amber-600); }
.breadcrumb-nav .breadcrumb-item.active { color: var(--walnut-800); }

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
.section { padding: 6rem 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--walnut-900); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--walnut-800);
  color: #fff;
  min-height: 320px;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.category-card .cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.category-card:hover .cat-bg { transform: scale(1.06); }
.category-card .cat-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,28,16,0) 30%, rgba(43,28,16,0.92) 100%); }
.category-card .cat-body { position: relative; z-index: 2; padding: 1.75rem; width: 100%; }
.category-card .cat-count { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-400); }
.category-card h3 { color: #fff; margin-bottom: 0.25rem; }

.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.product-card .product-media {
  aspect-ratio: 1 / 1;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}
.product-card .product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.07); }
.product-card .featured-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--amber-600); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem; border-radius: 999px; text-transform: uppercase;
}
.product-card .product-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.product-card .art-no { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.04em; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.product-card .product-actions { margin-top: auto; display: flex; gap: 0.5rem; padding-top: 0.9rem; }

.feature-tile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
}
.feature-tile .feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sand);
  color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------------------- */
/* Gallery / Swiper tweaks                                                 */
/* ---------------------------------------------------------------------- */
.swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--amber-500); }
.gallery-swiper .swiper-slide { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------- */
/* Product detail                                                         */
/* ---------------------------------------------------------------------- */
.product-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-soft);
}
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.spec-table th { color: var(--text-muted); font-weight: 600; width: 40%; }
.spec-table td, .spec-table th { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,13,7,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 24px; right: 28px; color: #fff; font-size: 1.6rem; background: none; border: none; }

/* ---------------------------------------------------------------------- */
/* Forms (RFQ / contact)                                                  */
/* ---------------------------------------------------------------------- */
.brand-form .form-control, .brand-form .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: 0.7rem 0.9rem;
}
.brand-form .form-control:focus, .brand-form .form-select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 0.2rem rgba(185, 122, 46, 0.15);
}
.brand-form label { font-weight: 600; font-size: 0.88rem; color: var(--walnut-800); margin-bottom: 0.35rem; }

.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--walnut-900); color: rgba(255,255,255,0.75); padding: 4.5rem 0 2rem; }
.site-footer h5 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--amber-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.social-chip {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; margin-right: 8px;
  transition: background .2s ease;
}
.social-chip:hover { background: var(--amber-600); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Floating action buttons (WhatsApp / back-to-top)                       */
/* ---------------------------------------------------------------------- */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; box-shadow: var(--shadow-lift);
  transition: transform .2s ease, opacity .25s ease, visibility .25s ease, background .2s ease;
}
.fab-whatsapp { background: #25d366; color: #fff; animation: fabPulse 2.6s ease-in-out infinite; }
.fab-whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.05); }
.fab-top {
  background: var(--walnut-900); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.fab-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-top:hover { background: var(--amber-600); }
@keyframes fabPulse {
  0%, 100% { box-shadow: var(--shadow-lift), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: var(--shadow-lift), 0 0 0 9px rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp { animation: none; }
  .fab-btn { transition: none; }
}
@media (max-width: 575.98px) {
  .fab-stack { right: 14px; bottom: 14px; gap: 10px; }
  .fab-btn { width: 46px; height: 46px; font-size: 1.15rem; }
}

/* ---------------------------------------------------------------------- */
/* Product page: WhatsApp inquiry + share row                             */
/* ---------------------------------------------------------------------- */
.btn-whatsapp-inquiry {
  display: inline-flex; align-items: center; padding: 0.7rem 1.4rem;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 600;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-whatsapp-inquiry:hover { background: #1ebc59; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.share-label { font-size: 0.85rem; color: var(--text-muted); margin-right: 4px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--sand); color: var(--walnut-800);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.share-btn:hover { background: var(--amber-600); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Utility / reveal states (GSAP/AOS hook targets)                        */
/* ---------------------------------------------------------------------- */
.reveal-up { opacity: 0; transform: translateY(28px); }
.no-js .reveal-up { opacity: 1; transform: none; }

.wood-texture {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.15' numOctaves='2' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.badge-soft { background: var(--sand); color: var(--walnut-800); font-weight: 600; border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.78rem; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .section { padding: 4rem 0; }
  .hero { min-height: 84vh; padding-top: 120px; }
}
@media (max-width: 575.98px) {
  .hero { min-height: 78vh; }
  .hero-stats { gap: 1.4rem; }
  .section { padding: 3.2rem 0; }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                          */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
}
