/* ============================================================
   ARMAAZ LEATHER GEAR — LAYOUT SYSTEM (2026)
   ============================================================ */

/* Container Setup */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-md {
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-sm {
  max-width: var(--container-sm);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section Spacing */
.section {
  padding-top: clamp(5rem, 10vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 10rem);
}

.section-sm {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.section-xs {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Background Utilities (Phase 4) */
.bg-light { background-color: var(--c-bg); }
.bg-ivory { background-color: var(--c-ivory); }
.bg-stone { background-color: var(--c-stone); }
.bg-dark { 
  background-color: var(--c-black); 
  color: var(--c-white); 
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--c-white);
}
.bg-dark p, .bg-dark .text-muted {
  color: #A6A39E;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--s-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-2-3 { grid-template-columns: 2fr 3fr; }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-1-2, .grid-2-1, .grid-2-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GLOBAL MOBILE OVERFLOW SAFEGUARD & RESPONSIVE FIXES
   ============================================================ */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
}

body {
  padding-top: 104px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px !important;
  }
}

/* Container & Frame Responsiveness */
.container, .container-md, .container-sm, .pr-container {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hm-page-frame, .acc-page-frame, .rfq-page-frame, .ind-page-frame, .mat-page-frame, .mfg-page-frame, .hde-page-frame {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  border-left: none !important;
  border-right: none !important;
}

/* Header Top Bar Responsiveness */
.header-top-bar {
  background: rgba(15, 13, 11, 0.98);
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #C8C0B5;
  padding: 0.4rem 0;
}

.header-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top-left, .header-top-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-top-right a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (max-width: 1024px) {
  .header-top-tagline { display: none; }
}

@media (max-width: 768px) {
  .header-top-bar {
    display: none !important;
  }
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(11, 10, 9, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.3) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.site-header.scrolled {
  background-color: rgba(6, 5, 4, 0.97) !important;
  border-bottom-color: rgba(255, 107, 0, 0.5) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px !important;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-logo:hover {
  transform: translateY(-1px);
}

.header-logo-img-wrap {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 0, 0.45);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.3);
  transition: all 0.35s ease;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo:hover .header-logo-img-wrap {
  border-color: #FF6B00;
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.6), 0 0 8px #FF6B00;
  transform: scale(1.05) rotate(3deg);
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F4EFEA !important;
  transition: color 0.25s ease;
}

.header-logo:hover .header-logo-name {
  color: #FFFFFF !important;
}

.header-logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF6B00 !important;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C8C0B5 !important;
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active {
  color: #FF6B00 !important;
  background: rgba(255, 107, 0, 0.12);
  text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--s-2);
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: #F4EFEA;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 104px;
  left: 0; right: 0; bottom: 0;
  background-color: rgba(11, 10, 9, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  padding: var(--s-6) var(--gutter) var(--s-10);
  gap: 0;
  border-top: 1px solid rgba(255, 107, 0, 0.3);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav > a {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F4EFEA;
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
  letter-spacing: -0.02em;
  display: block;
  text-decoration: none;
}

.mobile-nav > a:hover {
  color: #FF6B00;
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .header-cta .btn { display: none; }
}

body { padding-top: var(--header-h); }

/* Footer */
.site-footer {
  background-color: var(--c-black);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--s-8);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
}

/* ── FLOATING WHATSAPP BUTTON (LEFT SIDE) ────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: auto;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 15px rgba(37, 211, 102, 0.2);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
  animation: pulseWhatsApp 3s infinite;
}

@keyframes pulseWhatsApp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  background-color: #1EBE55;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 4.5rem; /* Above mobile sticky CTA bar */
    left: 1.25rem;
    width: 48px;
    height: 48px;
  }
  .floating-whatsapp svg {
    width: 24px;
    height: 24px;
  }
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s-3);
}

.footer-tagline {
  font-size: var(--text-xs);
  line-height: 1.6;
  max-width: 320px;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--s-6);
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--s-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-6);
  font-size: var(--text-3xs);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--c-black);
  padding: 0.75rem var(--gutter);
}

.mobile-sticky-cta a {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
}

@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 52px; }
}
