/* ============================================================================
   JAHATAKSAFAR — 02 MAIN CORE STYLES
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(194, 163, 107, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--ink-secondary);
  font-size: 1rem;
}

.text-brass {
  color: var(--ink-brass);
}

.text-gradient-brass {
  background: linear-gradient(135deg, var(--pigment-brass-hi) 0%, var(--pigment-brass) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

.section-spacer {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  z-index: 1;
}

/* Flex / Grid Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-6 { gap: var(--s-6); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-spring);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

/* Primary Brass Button */
.btn-brass {
  background: linear-gradient(135deg, #ebd9ae 0%, #c2a36b 100%);
  color: #0d1412;
  box-shadow: 0 4px 18px rgba(194, 163, 107, 0.25);
}
.btn-brass:hover {
  background: linear-gradient(135deg, #f5ebd0 0%, #d4b882 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 163, 107, 0.4);
  color: #050807;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae770 0%, #17a090 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

/* Outline Button */
.btn-outline {
  background: rgba(22, 32, 29, 0.4);
  color: var(--ink-primary);
  border: 1px solid var(--line-edge);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--pigment-brass);
  background: rgba(194, 163, 107, 0.08);
  color: var(--pigment-brass-hi);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}
.btn-ghost:hover {
  color: var(--ink-brass);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) ease, backdrop-filter var(--dur-base) ease, border-color var(--dur-base) ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background-color: rgba(10, 15, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-hair);
  height: 72px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.logo-text .brand-main {
  font-weight: 600;
  color: #FFFFFF;
}
.logo-text .brand-sub {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg, #ebd9ae 0%, #c2a36b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--ink-brass);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pigment-brass);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-primary);
  padding: 8px;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--s-8) var(--s-6);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-10);
  border-bottom: 1px solid var(--line-hair);
  padding-bottom: var(--s-4);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  list-style: none;
}
.mobile-drawer-link {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ink-primary);
}
.mobile-drawer-link:hover {
  color: var(--ink-brass);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: var(--s-8);
  border-top: 1px solid var(--line-hair);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-brass {
  background: rgba(194, 163, 107, 0.12);
  color: var(--pigment-brass-hi);
  border: 1px solid rgba(194, 163, 107, 0.35);
}

.badge-whatsapp {
  background: var(--whatsapp-surface);
  color: #25D366;
  border: 1px solid var(--whatsapp-border);
}

.badge-pine {
  background: rgba(38, 51, 47, 0.8);
  color: var(--ink-secondary);
  border: 1px solid var(--line-whisper);
}

/* Footer */
.site-footer {
  background: var(--pigment-pine-900);
  border-top: 1px solid var(--line-hair);
  padding: clamp(60px, 8vw, 90px) 0 40px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s-10);
  margin-bottom: var(--s-12);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-brass);
  margin-bottom: var(--s-4);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-col a {
  color: var(--ink-tertiary);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--ink-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-8);
  border-top: 1px solid var(--line-hair);
  font-size: 0.85rem;
  color: var(--ink-quiet);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

@media (max-width: 768px) {
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--s-4);
    text-align: center;
  }
}
