/* ============================================
   SHARNIR TECHNOLOGIES — Global Stylesheet
   Aesthetic: Premium Corporate Light
   Palette: White · Deep Blue #082567 · Charcoal #36454F
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:         #ffffff;
  --bg2:        #f4f6fa;
  --bg3:        #eaecf4;
  --surface:    #dde2ee;
  --border:     rgba(8,37,103,0.1);
  --border2:    rgba(8,37,103,0.22);

  --text:       #0d1a3a;
  --text-muted: #36454F;
  --text-dim:   #7a8599;

  --blue:       #082567;
  --blue-light: #1a3d8f;
  --blue-dim:   rgba(8,37,103,0.08);
  --blue-glow:  rgba(8,37,103,0.05);

  --charcoal:   #36454F;
  --charcoal-light: #4d6170;
  --charcoal-dim: rgba(54,69,79,0.1);

  --teal:       #1a7a6e;
  --teal-dim:   rgba(26,122,110,0.1);

  --accent-mall:    #082567;
  --accent-health:  #1a7a6e;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:  8px;
  --radius2: 16px;
  --shadow:  0 4px 32px rgba(8,37,103,0.08);
  --shadow2: 0 1px 0 rgba(8,37,103,0.04);
  --shadow3: 0 2px 20px rgba(8,37,103,0.07);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography Scale ── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 500; color: var(--text); }
p  { font-size: 1rem; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.section-header {
  margin-bottom: 4rem;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; color: var(--text); }
.section-header p { max-width: 52ch; font-size: 1.05rem; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, padding 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(8,37,103,0.07);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 139px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  white-space: nowrap;
}
.nav-logo-text span { color: var(--charcoal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--blue-dim);
}
.nav-cta {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.4rem !important;
  background: var(--blue) !important;
  color: #ffffff !important;
  border-radius: var(--radius) !important;
  transition: background 0.2s, opacity 0.2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }
.nav-cta.active { background: var(--blue) !important; color: #fff !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue);
  transition: all 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(8,37,103,0.2); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-dim); }
.btn-teal {
  background: var(--teal);
  color: #ffffff;
}
.btn-teal:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-charcoal {
  background: var(--charcoal);
  color: #ffffff;
}
.btn-charcoal:hover { background: var(--charcoal-light); transform: translateY(-1px); }

/* ── Cards ── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow3);
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── Divider line ── */
.rule {
  width: 48px; height: 2px;
  background: var(--blue);
  margin: 1.5rem 0;
}
.rule-teal { background: var(--teal); }

/* ── Tag / Pill ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(8,37,103,0.15);
}
.tag-teal {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: rgba(26,122,110,0.2);
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 4rem 0 2.5rem;
}
footer p, footer a, footer span, footer li { color: rgba(255,255,255,0.65); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo-text { color: #fff; margin-bottom: 1rem; display: block; font-size: 1.5rem; }
.footer-brand .nav-logo-text span { color: rgba(255,255,255,0.55); }
.footer-brand p { font-size: 0.9rem; max-width: 30ch; }
.footer-col h5 {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #ffffff; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

.animate-fadeup { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Stat number ── */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(8,37,103,0.1);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
