/* NILS RISK SL - Professional Risk Consulting */

:root {
  --navy-deep: #0d1b2a;
  --navy-dark: #1b263b;
  --navy-mid: #415a77;
  --slate: #778da9;
  --gold-primary: #c9a227;
  --gold-light: #f4d03f;
  --cream: #e0e1dd;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

/* Geometric Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: 
    linear-gradient(30deg, var(--gold-primary) 12%, transparent 12.5%, transparent 87%, var(--gold-primary) 87.5%, var(--gold-primary)),
    linear-gradient(150deg, var(--gold-primary) 12%, transparent 12.5%, transparent 87%, var(--gold-primary) 87.5%, var(--gold-primary)),
    linear-gradient(30deg, var(--gold-primary) 12%, transparent 12.5%, transparent 87%, var(--gold-primary) 87.5%, var(--gold-primary)),
    linear-gradient(150deg, var(--gold-primary) 12%, transparent 12.5%, transparent 87%, var(--gold-primary) 87.5%, var(--gold-primary));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--navy-deep) 60%, transparent);
  transition: all 0.4s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-icon {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 3px;
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold-primary);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
  opacity: 0.05;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.08; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-shield {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--gold-primary);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--slate);
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 2px;
}

.hero-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  margin: 0 auto 2.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--cream);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Sections Common */
section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gold-primary);
  margin: 0 auto 3rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  position: relative;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.risk-graphic {
  width: 280px;
  height: 280px;
  position: relative;
}

.risk-graphic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.risk-graphic::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 2px dashed var(--slate);
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.risk-graphic-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--navy-deep);
  font-weight: bold;
}

/* Services */
.services {
  background: var(--navy-deep);
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: linear-gradient(145deg, var(--navy-dark) 0%, rgba(27,38,59,0.5) 100%);
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.service-card p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(27,38,59,0.5);
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--gold-primary);
  transform: scale(1.02);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.contact-item p {
  font-size: 1.1rem;
  color: var(--cream);
}

.contact-item a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--white);
}

/* Footer */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 2rem 5%;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.2rem;
  color: var(--gold-primary);
  letter-spacing: 2px;
  font-weight: 600;
}

.footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 2rem;
  transition: color 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-copy {
  color: var(--navy-mid);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(65, 90, 119, 0.3);
}

/* Privacy Page Specific */
.privacy-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.privacy-content h2 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: 1px;
}

.privacy-content p {
  color: var(--cream);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-content a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-content a:hover {
  color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gold-primary);
  }

  nav ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 3px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links a {
    margin: 0 1rem;
  }
}
