/* ═══════════════════════════════════════════════════════════════
   GLOBAL STYLESHEET — Nordic Riser AB
   Elite Identity System — Quiet Luxury Edition
   ═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Color Palette — Quiet Luxury */
  --navy:        #00234B;   /* Deep Nordic Navy */
  --blue:        #0a3567;   /* Navy Hover / Active */
  --blue-light:  #C9A96E;   /* Champagne Gold Accent */
  --gold:        #C9A96E;   /* Alias */
  --gold-hover:  #B8935A;   /* Champagne Gold — darkened for hover states */
  --paper:       #F9F7F2;   /* Off-White Page Background */
  --sky:         #EEF2F9;   /* Muted Blue Tint (section alt) */
  --text:        #333333;   /* Charcoal Grey Body Text */
  --charcoal:    #333333;   /* Alias */
  --muted:       #6B7280;   /* Secondary Text */
  --border:      #E5E0D5;   /* Warm Divider */
  --white:       #ffffff;

  /* Pillar accents — reserved for icon tints/borders/badges on light backgrounds only */
  --pillar-it:           #3E6B99;   /* steel blue, 5.57:1 vs white — passes AA */
  --pillar-it-hover:     #2E5A87;
  --pillar-global:       #2E7D82;   /* muted teal, 4.80:1 vs white — passes AA */
  --pillar-global-hover: #1F6B70;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Premium Easing */
  --ease-premium: cubic-bezier(0.165, 0.84, 0.44, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 35, 75, 0.06);
  --shadow-md: 0 8px 28px rgba(0, 35, 75, 0.09);
  --shadow-lg: 0 20px 48px rgba(0, 35, 75, 0.12);
}

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

html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[dir="rtl"] body {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.35;
}

[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { font-family: var(--font-arabic); }

p { line-height: 1.75; }

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

/* ── NAVBAR — Glassmorphism ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.22);
  transition: box-shadow 0.35s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0, 35, 75, 0.09);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark { flex-shrink: 0; }

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
}

[dir="rtl"] .nav-links a { font-family: var(--font-arabic); letter-spacing: 0; text-transform: none; }

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(201, 169, 110, 0.12);
}

.nav-links .btn-login {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition: background 0.35s var(--ease-premium),
              border-color 0.35s var(--ease-premium);
}

.nav-links .btn-login:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 38px;
  height: 36px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── LANGUAGE SWITCHER ── */
.nr-lang-switch { position: relative; }
.nr-lang-desktop { display: flex; align-items: center; }
.nr-lang-mobile { display: none; }

.nr-lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nr-lang-btn:hover { border-color: var(--gold); background: rgba(201,169,110,0.08); }
.nr-lang-globe { display: inline-flex; line-height: 1; }
.nr-lang-globe svg { width: 15px; height: 15px; }

.nr-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(249, 247, 242, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 35, 75, 0.12);
  min-width: 160px;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  z-index: 200;
  padding: 0.4rem 0;
}
[dir="rtl"] .nr-lang-menu { right: auto; left: 0; }
.nr-lang-menu.open { display: block; }
.nr-lang-menu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nr-lang-menu li a:hover { color: var(--navy); background: rgba(201, 169, 110, 0.1); }
.nr-lang-menu li a.current { color: var(--navy); font-weight: 700; }

/* ── HERO / PAGE-HERO ── */
.hero,
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0a2d5e 55%, #1a4a8a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='rgba(201,169,110,0.07)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero         { padding: 8rem 2rem 7rem; text-align: center; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.page-hero    { padding: 5.5rem 2rem 5rem; text-align: center; }

.hero-inner       { position: relative; z-index: 1; max-width: 820px; width: 100%; margin: 0 auto; }
.page-hero-inner  { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.hero-label,
.page-hero-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

[dir="rtl"] .hero-label, [dir="rtl"] .page-hero-label { letter-spacing: 0; text-transform: none; }

.hero h1,
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.hero p,
.page-hero p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* ── SHARED SECTION STYLES ── */
.section         { padding: 6rem 2rem; }
.section-alt     { background: var(--sky); }
.section-dark    { background: var(--navy); }

.section-inner         { max-width: 1100px; margin: 0 auto; }
.section-inner-narrow  { max-width: 820px; margin: 0 auto; }

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

[dir="rtl"] .section-label { letter-spacing: 0; text-transform: none; }

.section-dark .section-label  { color: rgba(201, 169, 110, 0.65); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 1.25rem;
  scroll-margin-top: 100px;
  line-height: 1.2;
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-sub   { color: rgba(255,255,255,0.62); }

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 0.35rem; }
[dir="rtl"] .breadcrumb-inner { flex-direction: row-reverse; justify-content: flex-end; }
.breadcrumb a     { color: var(--gold); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── BUTTONS — Ghost Style ── */
.btn-primary,
.btn-cta {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.95rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-premium),
              color 0.4s var(--ease-premium),
              transform 0.4s var(--ease-premium),
              box-shadow 0.4s var(--ease-premium);
  cursor: pointer;
}

[dir="rtl"] .btn-primary, [dir="rtl"] .btn-cta { letter-spacing: 0; text-transform: none; }

.btn-primary:hover,
.btn-cta:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero variant — solid gold, the primary conversion action on the page */
.hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.hero .btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy);
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.95rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

[dir="rtl"] .btn-secondary { letter-spacing: 0; text-transform: none; }

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── TRUST STRIP — org. nr. line ── */
.trust-org-nr {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: -1.75rem auto 2.5rem;
}

.trust-org-nr strong { color: var(--navy); font-weight: 700; }

/* ── CARD TRANSITION BASE — all interactive cards ── */
.service-card,
.audience-card,
.approach-card,
.pillar,
.pillar-card,
.step,
.why-card,
.value-card,
.engagement-card,
.not-fit-card,
.trait-item,
.approach-item,
.group-card {
  transition: transform 0.4s var(--ease-premium),
              box-shadow 0.4s var(--ease-premium),
              border-color 0.4s var(--ease-premium),
              background 0.4s ease;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 7rem 2rem;
  background: var(--paper);
}

.cta-box { max-width: 640px; margin: 0 auto; }

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
  line-height: 1.85;
}

.contact-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.contact-item { text-align: center; }

.contact-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--blue); }

/* ── FOOTER — Multi-column Premium ── */
.footer {
  background: #080f1e;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1.8fr 2.4fr 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.footer-services-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-services-group .footer-col {
  flex: 1 1 120px;
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 1.1rem;
  letter-spacing: 0.3px;
}

.footer-brand .footer-logo span { color: var(--gold); }

.footer-brand > p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.8;
  max-width: 260px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.footer-address {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.9;
}

.footer-address strong {
  color: #94a3b8;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-address a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-address a:hover { color: #94a3b8; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.75);
  margin-bottom: 1.35rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: #94a3b8; }

.footer-disclaimer-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 169, 110, 0.14);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
}

.footer-disclaimer-box strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.7);
  margin-bottom: 0.65rem;
}

.footer-disclaimer-box p {
  font-size: 0.8rem;
  color: #5a6880;
  line-height: 1.8;
  letter-spacing: 0.01em;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #475569;
  letter-spacing: 0.01em;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: #94a3b8; }

/* ── FADE-IN ANIMATION ── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-premium),
              transform 0.75s var(--ease-premium);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ── RTL OVERRIDES — existing physical-property CSS that needs to visually flip ── */
[dir="rtl"] .testimonial-card { border-left: none; border-right: 4px solid var(--gold); }
[dir="rtl"] .mission-statement { border-left: none; border-right: 4px solid var(--gold); border-radius: 10px 0 0 10px; }
[dir="rtl"] .pillar { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .pillar:hover { border-right-color: var(--gold); }
[dir="rtl"] .group-sidebar { border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .group-card { border-left: none; border-right: 4px solid transparent; }
[dir="rtl"] .group-card:hover { border-right-color: var(--navy); transform: translateX(-4px); }
[dir="rtl"] .service-card[id] { border-left: none; }
[dir="rtl"] .info-box { border-left: none; border-right: 3px solid var(--gold); border-radius: 6px 0 0 6px; }
[dir="rtl"] .toc-list a { border-left: none; border-right: 2px solid transparent; }
[dir="rtl"] .toc-list a:hover { border-right-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(249, 247, 242, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(0, 35, 75, 0.14);
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links li   { border-bottom: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    border-radius: 0;
  }

  .nav-links .btn-login {
    margin: 0.75rem 1rem;
    border-radius: 4px;
    text-align: center;
  }

  .mobile-toggle { display: flex; }

  .nr-lang-desktop { display: none; }
  .nr-lang-mobile { display: block; padding: 0.9rem 1.5rem; }
  .nr-lang-mobile .nr-lang-switch { position: static; }
  .nr-lang-mobile .nr-lang-menu {
    position: static; box-shadow: none; border: none;
    background: rgba(0, 35, 75, 0.04); margin-top: 0.6rem; max-height: none;
  }
  .nr-lang-mobile .nr-lang-menu.open { display: block; }
  .nr-lang-mobile .nr-lang-btn { width: 100%; justify-content: space-between; }

  .section       { padding: 4rem 1.25rem; }
  .hero          { padding: 5.5rem 1.25rem 4.5rem; }
  .page-hero     { padding: 4rem 1.25rem 3.5rem; }
  .cta-section   { padding: 5rem 1.25rem; }

  .footer-main         { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-bottom       { padding: 1.25rem; flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}
