/* Critical CSS - Only essential styles for above-the-fold content */
:root {
  --primary-color: #113f4b;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
}

/* Base styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html {
  margin: 0;
  padding: 0;
}

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

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

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

/* Navigation */
.navbar {
  background: var(--primary-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: none;
}

.navbar-brand img:hover {
  transform: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 0.25rem;
}

.nav-link:hover {
  color: #e3a72f;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
  border: none;
  background: transparent;
  color: white;
  transition: transform 0.3s ease;
}

.navbar-toggler:hover {
  transform: rotate(90deg);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
  justify-content: flex-end;
}

/* Navbar effects on scroll */
.navbar.scrolled {
  background-color: #0d3b4a;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Hero section - ONLY for main page, not service pages */
.hero:not(.service-hero) {
  background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)), url('/assets/images/data-centre-background.avif');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 0;
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  margin: 0;
  position: relative;
  top: 0;
  overflow: hidden;
}

.hero:not(.service-hero) .container {
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.hero:not(.service-hero) .row {
  height: 100%;
  margin: 0;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

/* Utility classes */
.text-white { color: white; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.mt-5 { margin-top: 1.25rem; }

/* Mobile styles */
@media (max-width: 768px) {
  .hero:not(.service-hero) {
    padding: 3rem 0;
    min-height: 50vh;
  }
  
  .navbar-toggler {
    display: block;
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem;
    cursor: pointer;
  }
  
  .navbar-collapse {
    display: none;
  }
  
  .navbar-collapse.show {
    display: block;
  }
  
  .navbar-nav {
    flex-direction: column;
  }
} 