/* ============================================================
   NARS Support and Services — Shared Design System
   Brand Primary: #1B2B6B (Navy from logo)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1E293B;
  background: #F8FAFC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* === CONTAINER === */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* === SECTION SPACING === */
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }

/* === TYPOGRAPHY === */
.display-xl  { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.display-lg  { font-size: clamp(1.875rem, 4vw, 3rem);   font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.display-md  { font-size: clamp(1.5rem, 3vw, 2.25rem);  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.heading-sm  { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.body-lg     { font-size: 1.0625rem; line-height: 1.75; color: #475569; }
.body-md     { font-size: 0.9375rem; line-height: 1.7;  color: #475569; }
.label-tag   { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* === SECTION LABEL (green pill) === */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #059669; margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: inline-block;
  width: 1.25rem; height: 2px; background: #059669; border-radius: 1px;
}

/* === BUTTONS === */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: 0.625rem; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) !important; }
.btn:focus-visible { outline: 2px solid #2D40B0; outline-offset: 3px; }

.btn-navy {
  background: linear-gradient(135deg, #1B2B6B 0%, #2D40B0 100%);
  color: white; padding: 0.75rem 1.75rem; font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(27,43,107,0.32), 0 1px 3px rgba(0,0,0,0.1);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,43,107,0.42), 0 2px 6px rgba(0,0,0,0.1); }

.btn-navy-lg {
  background: linear-gradient(135deg, #1B2B6B 0%, #2D40B0 100%);
  color: white; padding: 1rem 2rem; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(27,43,107,0.32), 0 1px 3px rgba(0,0,0,0.1);
}
.btn-navy-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,43,107,0.42), 0 2px 6px rgba(0,0,0,0.1); }

.btn-white-lg {
  background: white; color: #1B2B6B; padding: 1rem 2rem; font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 1px 3px rgba(0,0,0,0.08);
}
.btn-white-lg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.1); }

.btn-outline-white {
  background: transparent; color: white; padding: 1rem 2rem; font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }

.btn-outline-navy {
  background: transparent; color: #1B2B6B; padding: 0.75rem 1.75rem; font-size: 0.9375rem;
  border: 2px solid #DDE2F5;
}
.btn-outline-navy:hover { border-color: #1B2B6B; background: #F0F2FC; transform: translateY(-2px); }

.btn-green {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: white; padding: 0.75rem 1.75rem; font-size: 0.9375rem;
  box-shadow: 0 4px 16px rgba(5,150,105,0.28);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,0.38); }

/* === NAVIGATION === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  transition: box-shadow 0.2s ease;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; height: 6.5rem; }
@media (min-width: 640px) { .nav-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 2rem; } }

.nav-logo img { height: 5.5rem; width: auto; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-family: 'Inter', sans-serif; font-size: 0.9375rem; font-weight: 500;
  color: #374151; padding: 0.5rem 0.625rem; border-radius: 0.5rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease; white-space: nowrap;
}
.nav-link:hover { color: #1B2B6B; background: #F0F2FC; }
.nav-link.active { color: #1B2B6B; font-weight: 600; background: #F0F2FC; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: white; border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 0.5rem; min-width: 200px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 600;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.875rem; border-radius: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: #374151;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.dropdown-item:hover { background: #F0F2FC; color: #1B2B6B; }
.dropdown-item.view-all {
  background: #EEF0FA; color: #1B2B6B; font-weight: 600;
  justify-content: center; margin-top: 0.25rem;
}
.dropdown-item.view-all:hover { background: #DDE2F5; }

.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }

.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: transparent; border: none; cursor: pointer;
  color: #374151; transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-menu-btn:hover { background: #F1F5F9; color: #1B2B6B; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu */
#mobile-menu {
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  background: white; border-top: 1px solid #F1F5F9;
}
#mobile-menu.open { max-height: 85vh; overflow-y: auto; }
.mobile-menu-inner { padding: 1rem 1.25rem 1.5rem; }
.mobile-nav-link {
  display: flex; align-items: center; padding: 0.75rem 1rem;
  border-radius: 0.625rem; font-size: 0.9375rem; font-weight: 500;
  color: #374151; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-nav-link:hover { background: #F8FAFC; color: #1B2B6B; }
.mobile-nav-link.active { background: #EEF0FA; color: #1B2B6B; font-weight: 600; }
.mobile-nav-section { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8; padding: 0.5rem 1rem 0.25rem; margin-top: 0.5rem; }

/* === HERO === */
.hero-bg {
  background: linear-gradient(135deg, #060B2B 0%, #0F1940 30%, #1B2B6B 65%, #2A3DA8 100%);
  position: relative; overflow: hidden;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' fill-opacity='0.15'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23ffffff' fill-opacity='0.08'/%3E%3Ccircle cx='100' cy='0' r='1' fill='%23ffffff' fill-opacity='0.08'/%3E%3Ccircle cx='0' cy='100' r='1' fill='%23ffffff' fill-opacity='0.08'/%3E%3Ccircle cx='100' cy='100' r='1' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
}

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: linear-gradient(135deg, #0F1940 0%, #1B2B6B 60%, #2D40B0 100%);
  padding: 8rem 0 4rem; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
.page-header .container { text-align: center; }
.page-header .container h1,
.page-header .container p { margin-left: auto; margin-right: auto; }

/* === CARDS === */
.card {
  background: white; border-radius: 1.25rem; padding: 2rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 20px rgba(27,43,107,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.2,0.64,1), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 40px rgba(27,43,107,0.12); }

/* === ICON BOX === */
.icon-box {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-box-lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.ib-navy   { background: #EEF0FA; color: #1B2B6B; }
.ib-green  { background: #D1FAE5; color: #059669; }
.ib-orange { background: #FFEDD5; color: #EA580C; }
.ib-blue   { background: #DBEAFE; color: #2563EB; }
.ib-purple { background: #EDE9FE; color: #7C3AED; }
.ib-rose   { background: #FFE4E6; color: #E11D48; }
.ib-teal   { background: #CCFBF1; color: #0D9488; }

/* === CHECK LIST === */
.check-list { list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.375rem 0; font-size: 0.9375rem; color: #475569; line-height: 1.6;
}
.check-list li::before {
  content: ''; flex-shrink: 0; margin-top: 0.25rem;
  width: 1.125rem; height: 1.125rem; border-radius: 50%;
  background: #D1FAE5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23059669'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

/* === ACCORDION (FAQ) === */
.accordion-item { border-bottom: 1px solid #E2E8F0; }
.accordion-item:first-child { border-top: 1px solid #E2E8F0; }
.accordion-btn {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 600; color: #1E293B;
  transition: color 0.15s ease;
}
.accordion-btn:hover { color: #1B2B6B; }
.accordion-icon {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #F0F2FC; color: #1B2B6B;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s ease, transform 0.3s ease;
}
.accordion-btn[aria-expanded="true"] .accordion-icon { background: #1B2B6B; color: white; transform: rotate(180deg); }
.accordion-content { overflow: hidden; max-height: 0; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.accordion-content-inner { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: #475569; line-height: 1.75; }

/* === FORMS === */
.form-group { margin-bottom: 1.25rem; }
.form-label { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.875rem; font-weight: 600; color: #374151; display: block; margin-bottom: 0.5rem; }
.form-label .required { color: #E11D48; margin-left: 0.125rem; }
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0; border-radius: 0.625rem;
  font-family: 'Inter', sans-serif; font-size: 0.9375rem; color: #1E293B; background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; outline: none; appearance: none;
}
.form-input:focus { border-color: #1B2B6B; box-shadow: 0 0 0 3px rgba(27,43,107,0.1); }
.form-input::placeholder { color: #94A3B8; }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.5rem; }
.form-hint { font-size: 0.8125rem; color: #94A3B8; margin-top: 0.375rem; }
.form-input.input-error { border-color: #EF4444 !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important; }
.field-error { font-size: 0.8125rem; color: #EF4444; margin-top: 0.375rem; display: none; }
.field-error.visible { display: block; }

/* === FOOTER === */
footer { background: #060B1E; color: #94A3B8; }
.footer-top { padding: 4rem 0 3rem; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 7rem; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-heading { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #CBD5E1; margin-bottom: 1rem; }
.footer-link { font-size: 0.875rem; color: #64748B; text-decoration: none; display: block; line-height: 2; transition: color 0.15s ease; }
.footer-link:hover { color: #E2E8F0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; color: #475569; }

/* === BADGE === */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3125rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-green  { background: #D1FAE5; color: #059669; }
.badge-navy   { background: #EEF0FA; color: #1B2B6B; }
.badge-orange { background: #FFEDD5; color: #EA580C; }
.badge-blue   { background: #DBEAFE; color: #2563EB; }

/* === STATS === */
.stat-number { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -0.03em; }

/* Text gradient */
.text-gradient { background: linear-gradient(135deg,#60A5FA,#818CF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Wave divider */
.wave-white { display: block; width: 100%; }

/* === ACCESSIBILITY === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid #2D40B0; outline-offset: 3px; border-radius: 4px; }
