@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --primary-color: #172F47; /* Dark blue from footer/header */
  --accent-color: #F17912;  /* Orange from highlights */
  --bg-color: #D3D9DE;      /* Light grey background */
  --text-dark: #172F47;     /* Dark text */
  --text-light: #FFFFFF;    /* Light text */
  --font-family: 'Roc Grotesk', sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../assets/fonts/RocGrotesk-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../assets/fonts/RocGrotesk-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../assets/fonts/RocGrotesk-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Roc Grotesk';
  src: url('../assets/fonts/RocGrotesk-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
  font-weight: 300; /* Use Nord Book */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Common Section */
section {
  padding: var(--spacing-xl) 0;
}

/* --- Navigation --- */
header {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-md) 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: var(--text-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 0;
}

header.scrolled .nav-links a {
  color: var(--text-dark);
}

header.scrolled .hamburger-menu span {
  background-color: var(--text-dark);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* Header style modifications for non-hero pages (if needed) */
header.solid {
  background-color: var(--text-light);
  position: fixed;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-dark);
}

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

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

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: var(--spacing-xl) 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}


@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 250px 250px 1fr;
    justify-content: space-between;
  }
  .footer-col.links {
    justify-self: end;
  }
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: #A0B3C6;
}

.footer-col .time {
  font-size: 2rem;
  font-weight: normal;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  color: #D3D9DE;
}

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

.footer-col.links a {
  color: #A0B3C6;
  font-size: 0.9rem;
}

.footer-col.links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #A0B3C6;
  font-weight: bold;
}

/* --- Mobile Navigation --- */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

header:not(.solid) .hamburger-menu span {
  background-color: var(--text-light); /* White icon on hero */
}

.hamburger-menu.open span {
  background-color: var(--text-dark) !important;
}

.hamburger-menu.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #DDE2E5; /* Light grey from screenshot */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--spacing-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.mobile-nav-header .logo img {
  height: 40px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1rem;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-family);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Responsive utility */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas: 
      "sg links"
      "dxb links" !important;
    gap: 3.5rem 0.5rem;
  }
  .footer-col:nth-child(1) {
    grid-area: sg;
  }
  .footer-col:nth-child(2) {
    grid-area: dxb;
  }
  .footer-col:nth-child(3) {
    grid-area: links;
    justify-self: start;
    padding-left: 5rem; /* Adjust this to fine-tune the gap if needed */
  }
  .footer-col h4 {
    font-size: 13px !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 0.25rem !important;
  }
  .footer-col .time {
    font-size: 39.2px !important;
    margin-bottom: 1.5rem;
    line-height: 1 !important;
  }
  .footer-col p {
    font-size: 11.2px !important;
    letter-spacing: normal !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }
  .footer-col.links a {
    font-size: 11.2px !important;
  }
  .footer-bottom {
    font-size: 7px !important;
  }
  footer {
    padding-bottom: 4rem !important;
  }
}
