/* style.css - Nordic Ice-Blue Theme with Sticky Side Navigation & Asymmetric Grid */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@500;700;800&display=swap');

:root {
  --bg-primary: #f6f8fa;
  --bg-sidebar: #12181f;
  --bg-card: #ffffff;
  --text-primary: #1a202c;
  --text-muted: #627285;
  --text-light: #f8fafc;
  --accent-color: #3b82f6; /* Ice blue accent */
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(59, 130, 246, 0.08);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Syne', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.02), 0 1px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px rgba(59, 130, 246, 0.08), 0 1px 12px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Layout Structure */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background-color: var(--bg-sidebar);
  color: var(--text-light);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
  border-right: 1px solid var(--border-dark);
  transition: var(--transition-smooth);
}

.main-content {
  margin-left: 300px;
  width: calc(100% - 300px);
  min-height: 100vh;
  padding: 4rem 5% 2rem 5%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Sidebar Elements */
.brand {
  text-decoration: none;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  border-left: 3px solid var(--accent-color);
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
}

.sidebar-footer p {
  margin-bottom: 0.5rem;
}

.sidebar-footer a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.sidebar-footer a:hover {
  color: var(--accent-color);
}

/* Mobile Toggle Bar */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-sidebar);
  color: var(--text-light);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 200;
  border-bottom: 1px solid var(--border-dark);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 1rem;
  background-color: var(--accent-soft);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 800px;
  letter-spacing: -0.03em;
  z-index: 1;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  z-index: 1;
}

/* General Layout Elements */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background-color: var(--border-color);
}

/* Asymmetric Grid Layout (Layout 6) */
.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.card {
  grid-column: span 3; /* Default spans 3 cols */
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Asymmetric sizing rules */
.card.span-4 {
  grid-column: span 4;
}

.card.span-2 {
  grid-column: span 2;
}

.card.span-6 {
  grid-column: span 6;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: var(--shadow-hover);
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-text {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.card-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.card-link:hover {
  color: var(--accent-color);
}

.card-link svg {
  transition: var(--transition-smooth);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Info Grid (Split layout) */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-content p {
  color: var(--text-muted);
}

.info-image-placeholder {
  height: 350px;
  background-color: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.info-image-placeholder::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
}

.info-image-placeholder svg {
  color: var(--accent-color);
  width: 48px;
  height: 48px;
  opacity: 0.8;
  z-index: 1;
}

/* Interactive Form & Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.contact-info p {
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

.contact-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-text p {
  font-size: 0.85rem;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.form-checkbox input {
  margin-top: 0.25rem;
}

.form-checkbox span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-checkbox a {
  color: var(--text-primary);
  text-decoration: underline;
}

.form-checkbox a:hover {
  color: var(--accent-color);
}

.btn {
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.btn:active {
  transform: translateY(0);
}

/* Legal Documents Layout */
.legal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: var(--shadow-soft);
  max-width: 1000px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.legal-header h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
}

.legal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.legal-section p, .legal-section ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-disclaimer {
  background-color: rgba(220, 38, 38, 0.03);
  border-left: 4px solid #ef4444;
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

/* Footer style (inside main-content) */
.main-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info {
  max-width: 450px;
}

.footer-info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--text-muted);
}

/* Responsive CSS */
@media (max-width: 1024px) {
  .sidebar {
    width: 260px;
    padding: 2.5rem 1.5rem;
  }
  .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 3rem 4%;
  }
  .asymmetric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .card.span-4, .card {
    grid-column: span 2;
  }
  .card.span-6 {
    grid-column: span 4;
  }
  .card.span-2 {
    grid-column: span 2;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  .mobile-header {
    display: flex;
  }
  .sidebar {
    position: fixed;
    top: 60px;
    left: -100%;
    bottom: 0;
    width: 280px;
    height: calc(100vh - 60px);
    padding: 2rem;
    box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  }
  .sidebar.active {
    left: 0;
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    margin-top: 60px;
    padding: 2rem 1.25rem;
    gap: 3rem;
  }
  .hero-section {
    padding: 2.5rem 1.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .card, .card.span-4, .card.span-2, .card.span-6 {
    grid-column: span 1;
    padding: 1.5rem;
  }
  .info-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .info-image-placeholder {
    height: 250px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2.5rem;
  }
  .legal-container {
    padding: 2rem 1.5rem;
  }
  .legal-header h2 {
    font-size: 1.75rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Animations & Transitions */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .hero-section, .contact-container, .legal-container {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
