/* Tailwind CSS */
@import 'https://cdn.tailwindcss.com';

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;700&family=Merriweather:wght@300;400&display=swap');

:root {
  --color-primary: #2A4365;
  --color-accent: #E53E3E;
  --color-secondary: #4A5568;
  --color-bg-light: #F7FAFC;
  --color-bg-dark: #1A202C;
  --color-neutral: #718096;
  --color-success: #38A169;
  --color-warning: #DD6B20;
  --font-primary: 'Schibsted Grotesk', sans-serif;
  --font-secondary: 'Merriweather', serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--color-secondary);
  background-color: var(--color-bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

p, li {
  font-family: var(--font-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover, a:focus {
  color: var(--color-accent);
}

.bg-primary {
  background-color: var(--color-bg-dark);
}

/* Utility classes */
.nx-text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nx-section {
  padding: 4rem 0;
}

.nx-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and Navigation */
.nx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nx-header--scrolled {
  padding: 0.5rem 0;
}

.nx-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nx-logo {
  height: 40px;
  width: auto;
}

.nx-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

.nx-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nx-nav-item a {
  font-weight: 500;
  position: relative;
}

.nx-nav-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nx-nav-item a:hover::after,
.nx-nav-item a:focus::after,
.nx-nav-item.active a::after {
  width: 100%;
}

/* Hero Section */
.nx-hero {
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--color-bg-dark);
  color: white;
  overflow: hidden;
}

.nx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem;
}

.nx-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.nx-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-bg-dark) 30%, transparent 70%);
  z-index: 1;
}

.nx-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
}

.nx-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--color-bg-light);
  font-weight: 300;
  max-width: 90%;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.nx-btn-primary {
  background-color: var(--color-accent);
  color: white;
  border: none;
}

.nx-btn-primary:hover, .nx-btn-primary:focus {
  background-color: #C53030;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.nx-btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.nx-btn-outline:hover, .nx-btn-outline:focus {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 67, 101, 0.3);
}

/* Cards */
.nx-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.nx-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nx-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nx-card-content {
  padding: 1.5rem;
}

.nx-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Case Studies */
.nx-case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.nx-case-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.nx-case-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nx-case-result {
  display: inline-block;
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--color-success);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Process Steps */
.nx-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.nx-step {
  text-align: center;
  position: relative;
}

.nx-step-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-weight: 700;
}

.nx-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  right: -1rem;
  width: calc(100% - 50px);
  height: 2px;
  background-color: var(--color-primary);
}

/* Form */
.nx-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.nx-form-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.nx-form-group {
  margin-bottom: 1.5rem;
}

.nx-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.nx-input,
.nx-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #CBD5E0;
  border-radius: 4px;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.nx-input:focus,
.nx-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42, 67, 101, 0.1);
}

.nx-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.nx-checkbox input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.nx-submit {
  width: 100%;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nx-submit:hover,
.nx-submit:focus {
  background-color: #1A365D;
  transform: translateY(-2px);
}

/* Modal */
.nx-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.nx-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.nx-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-neutral);
}

/* Footer */
.nx-footer {
  background-color: var(--color-primary);
  color: white;
  padding: 3rem 0 2rem;
}

.nx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.nx-footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.nx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nx-footer-links li {
  margin-bottom: 0.75rem;
}

.nx-footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.nx-footer-links a:hover,
.nx-footer-links a:focus {
  color: white;
  text-decoration: underline;
}

.nx-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nx-social {
  display: flex;
  gap: 1rem;
}

.nx-social a {
  color: white;
  font-size: 1.25rem;
}

/* Cookie Consent */
.nx-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
  display: none;
}

.nx-cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nx-cookie-text {
  flex: 1;
}

.nx-cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

.nx-cookie-settings {
  background-color: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.nx-cookie-accept {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.nx-cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.nx-cookie-modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.nx-cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.nx-cookie-category:last-child {
  border-bottom: none;
}

.nx-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.nx-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.nx-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nx-cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E0;
  transition: .4s;
  border-radius: 34px;
}

.nx-cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .nx-cookie-slider {
  background-color: var(--color-primary);
}

input:checked + .nx-cookie-slider:before {
  transform: translateX(26px);
}

.nx-cookie-save {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 1rem;
  cursor: pointer;
  font-weight: 500;
}

/* Breadcrumb */
.nx-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.nx-breadcrumb-item {
  display: flex;
  align-items: center;
}

.nx-breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--color-neutral);
}

.nx-breadcrumb a {
  color: var(--color-neutral);
}

.nx-breadcrumb a:hover, .nx-breadcrumb a:focus {
  color: var(--color-primary);
}

/* Page Title */
.nx-page-title {
  margin-bottom: 3rem;
}

.nx-page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.nx-page-subtitle {
  font-size: 1.25rem;
  color: var(--color-neutral);
}

/* Integrations */
.nx-integrations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.nx-integration-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.nx-integration-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Thank You Page */
.nx-thanks {
  text-align: center;
  padding: 4rem 0;
  max-width: 600px;
  margin: 0 auto;
}

.nx-thanks-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: 2rem;
}

/* Policy Pages */
.nx-policy {
  max-width: 800px;
  margin: 0 auto;
}

.nx-policy-date {
  margin-bottom: 2rem;
  color: var(--color-neutral);
}

.nx-policy h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
}

.nx-policy h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.nx-policy ul, .nx-policy ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Contact Page */
.nx-contact-info {
  margin-bottom: 2rem;
}

.nx-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.nx-contact-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: 1rem;
  min-width: 24px;
}

.nx-map {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-top: 2rem;
}

/* International Tel Input */
.iti { 
  width: 100% 
}

.nx-menu-close {
  display: none;
}

img {
  width: 100%;
}

header + section {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nx-menu-toggle {
    display: block;
  }

  .nx-nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nx-nav-list.active {
    right: 0;
  }

  .nx-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
  }

  .nx-hero {
    height: auto;
    min-height: 90vh;
  }

  .nx-hero-image {
    opacity: 0.3;
    width: 100%;
    right: -30%;
  }

  .nx-hero-overlay {
    background: linear-gradient(180deg, rgba(26, 32, 44, 0.7) 0%, var(--color-bg-dark) 100%);
  }

  .nx-case-study {
    grid-template-columns: 1fr;
  }

  .nx-step:not(:last-child)::after {
    display: none;
  }

  .nx-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nx-hero-image {
    width: 45%;
  }

  .nx-case-study {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) {
  .nx-case-study {
    grid-template-columns: 1fr 1fr;
  }

  .nx-case-study:nth-child(even) .nx-case-image {
    order: 2;
  }

  .nx-case-study:nth-child(even) .nx-case-content {
    order: 1;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nx-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nx-slide-up {
  animation: slideUp 0.5s ease forwards;
}