/* ============================================================
   RAP — rapiam.com  |  Global Stylesheet
   ============================================================ */

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ----- VARIABLES ----- */
:root {
  --blue:        #3A6494;
  --blue-dark:   #2d4e78;
  --white:       #FFFFFF;
  --dark-navy:   #1E2D3D;
  --light-gray:  #F4F6F9;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --max-w:       1160px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 6px rgba(0,0,0,0.06);
  --shadow:      0 2px 14px rgba(0,0,0,0.09);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.13);
  --ease:        0.22s ease;
}

/* ----- CONTAINER ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- TYPOGRAPHY ----- */
h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.375rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
p  { line-height: 1.7; }

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  border-radius: 7px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              box-shadow var(--ease), transform var(--ease);
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(58,100,148,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: #eef2f8;
  border-color: #eef2f8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ----- NAVBAR ----- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.nav-container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--light-gray);
}
.nav-cta { margin-left: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border-radius: 6px;
  transition: background var(--ease);
}
.nav-toggle:hover { background: var(--light-gray); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: opacity var(--ease), transform var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- SECTION BASE ----- */
.section { padding: 88px 0; }
.section-gray  { background: var(--light-gray); }
.section-blue  { background: var(--blue); }
.section-navy  { background: var(--dark-navy); }
.section-white { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 620px;
  margin: 0 auto;
}
.section-blue .section-header p,
.section-navy .section-header p { color: rgba(255,255,255,0.72); }

/* ----- HERO ----- */
.hero {
  background: linear-gradient(140deg, var(--dark-navy) 0%, #243b55 55%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 60%, rgba(58,100,148,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 80% 40%, rgba(30,45,61,0.4)  0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-logo   { margin-bottom: 36px; }
.hero-logo img { height: 60px; width: auto; margin: 0 auto; }
.hero h1     { color: var(--white); margin-bottom: 20px; }
.hero-sub    {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- PROBLEM CARDS ----- */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  flex-shrink: 0;
}
.problem-card h3 { margin-bottom: 10px; }
.problem-card p  { color: var(--text-muted); font-size: 0.9375rem; }

/* ----- SOLUTION TILES ----- */
.solution-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.solution-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.solution-tile-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.solution-tile-body h3 { margin-bottom: 8px; }
.solution-tile-body p  { color: var(--text-muted); font-size: 0.9375rem; }

/* ----- WHY RAP ----- */
.why-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.why-item-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.why-item h3 { margin-bottom: 10px; }
.why-item p  { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.72; }

/* ----- NIS2 HOOK / URGENCY ----- */
.nis2-hook,
.urgency-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.nis2-hook h2,
.urgency-content h2 { color: var(--white); margin-bottom: 20px; }
.nis2-hook p,
.urgency-content p  {
  color: rgba(255,255,255,0.78);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}
.urgency-content p  { margin-bottom: 0; }

/* ----- PILOT OFFER ----- */
.pilot-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.pilot-content h2 { margin-bottom: 20px; }
.pilot-content > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 36px;
}
.pilot-callout {
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  background: #eef4fc;
  margin-bottom: 32px;
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.5;
}
.pilot-callout strong { color: var(--blue); font-weight: 700; }

/* ----- STATS / SOCIAL PROOF ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 200px;
  margin: 0 auto;
}
.stats-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ----- CTA BANNER ----- */
.cta-banner {
  text-align: center;
  padding: 88px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p  {
  color: rgba(255,255,255,0.72);
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

/* ----- FOOTER ----- */
.footer {
  background: var(--dark-navy);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
.footer-brand img     { height: 48px; width: auto; margin-bottom: 14px; }
.footer-tagline       { color: rgba(255,255,255,0.55); font-size: 0.9375rem; }
.footer-nav ul        { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a         {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--ease);
}
.footer-nav a:hover   { color: var(--white); }
.footer-social        { display: flex; gap: 10px; padding-top: 4px; }
.linkedin-link        {
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
  display: flex;
  align-items: center;
}
.linkedin-link:hover  { color: var(--white); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  color: rgba(255,255,255,0.38);
  font-size: 0.8125rem;
}

/* ----- NIS2 PAGE: REQUIREMENTS ----- */
.requirements-intro {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.requirements-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.req-block {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 24px 26px 28px;
  box-shadow: var(--shadow-sm);
}
.req-block h3 { color: var(--blue); margin-bottom: 10px; }
.req-block p  { color: var(--text-muted); font-size: 0.9375rem; }

/* ----- NIS2 PAGE: COVERAGE TABLE ----- */
.coverage-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9375rem;
  min-width: 600px;
}
.coverage-table thead th {
  background: var(--dark-navy);
  color: var(--white);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
}
.coverage-table tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.coverage-table tbody tr:last-child td { border-bottom: none; }
.coverage-table tbody tr:nth-child(even) td { background: var(--light-gray); }
.status-covered { color: #16a34a; font-weight: 600; white-space: nowrap; }

/* ----- NIS2 PAGE: SCOPE ----- */
.scope-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.scope-content h2  { margin-bottom: 20px; }
.scope-content > p { color: var(--text-muted); font-size: 1.0625rem; margin-bottom: 36px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-prose {
  max-width: 720px;
  margin: 0 auto 0;
}
.about-prose--centered {
  text-align: center;
  margin-bottom: 48px;
}
.about-prose h2 {
  margin-bottom: 24px;
}
.about-prose p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 20px;
}
.about-prose p:last-child { margin-bottom: 0; }

.person-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--ease), transform var(--ease);
}
.person-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.person-card-avatar {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
}
.person-card-avatar svg { width: 100%; height: 100%; }
.person-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.person-card-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-hero { padding: 72px 0 60px; }
.privacy-hero h1 { color: var(--white); margin-bottom: 8px; }
.privacy-hero .hero-sub { margin-bottom: 0; font-size: 0.9375rem; }

.policy-content {
  max-width: 760px;
  margin: 0 auto;
}

.policy-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.policy-section--last {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.policy-section h2 {
  font-size: 1.1875rem;
  color: var(--blue);
  margin-bottom: 16px;
}
.policy-section p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 12px;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section a { color: var(--blue); text-decoration: underline; }
.policy-section a:hover { color: var(--blue-dark); }

.policy-address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-top: 12px;
}
.policy-address strong { color: var(--text-dark); }

.policy-list {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.policy-list li { margin-bottom: 8px; line-height: 1.65; }
.policy-list li:last-child { margin-bottom: 0; }
.policy-list strong { color: var(--text-dark); }

.policy-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 16px 0;
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.policy-table thead th {
  background: var(--dark-navy);
  color: var(--white);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.policy-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}
.policy-table tbody tr:last-child td { border-bottom: none; }
.policy-table tbody tr:nth-child(even) td { background: var(--light-gray); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.cookie-banner-inner a {
  color: var(--white);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.cookie-btn--accept:hover {
  background: #eef2f8;
  border-color: #eef2f8;
}
.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}
.cookie-btn--reject:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .problem-cards        { grid-template-columns: repeat(2, 1fr); }
  .why-items            { grid-template-columns: repeat(2, 1fr); }
  .requirements-blocks  { grid-template-columns: repeat(2, 1fr); }
  .footer-content       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .person-cards         { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .cta-banner { padding: 64px 0; }
  .hero { padding: 72px 0 68px; }

  /* Navbar mobile */
  .nav-cta     { display: none; }
  .nav-toggle  { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: none;
  }
  .nav-links.open  { display: flex; }
  .nav-links a     { padding: 10px 14px; width: 100%; }
  .navbar { position: sticky; }

  /* Layout */
  .problem-cards        { grid-template-columns: 1fr; }
  .solution-tiles       { grid-template-columns: 1fr; }
  .why-items            { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid           { grid-template-columns: 1fr; gap: 28px; }
  .requirements-blocks  { grid-template-columns: 1fr; }
  .person-cards         { grid-template-columns: 1fr; }
  .footer-content       { grid-template-columns: 1fr; gap: 28px; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 36px; }
}
