html { scroll-behavior: smooth; }

:root {
  --header-h: 55px; /* fallback */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
	padding-top: var(--header-h);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
header {
  background: #000;
  color: #e66a00;
  position: fixed;   /* was sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: center; /* centers nav */
  align-items: center;
  padding: 10px 0;
  min-height: 55px; /* thicker header to accommodate LinkedIn icon */
  position: relative;
}


.logo-small { font-weight: bold; }

nav {
  display: flex;
  overflow-x: auto; /* scrollable if too wide */
  gap: 20px;
  padding: 10px 0;
}

nav::-webkit-scrollbar {
  display: none; /* hide scroll bar for neat look */
}
nav a {
  color: #e66a00;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.linkedin-icon {
  height: 36px;
  margin-left: 5px;
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 100dvh;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--header-h)); /* cancels body padding for hero only */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

/* Background slide layers */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: -2;
}

.hero-bg.active {
  opacity: 1;
  z-index: -1;
}



.hero-overlay {
  background: rgba(0,0,0,0.55);
  padding: 40px;
  border-radius: 10px;
  z-index: 2;

  /* Centre the logo inside the black surround */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Dark overlay */
/* Section heading animations */
.section h2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section h2.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Dark overlay for readability */
.hero-logo {
  max-width: 550px;
  width: 90%;
  margin: 0; /* prevents the logo sitting high within the overlay */
  display: block;
}


.hero-links a {
  display: inline-block;
  margin: 12px 18px;
  font-size: 22px;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.hero-links a:hover {
  color: #e66a00;
  transform: scale(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease-in-out;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

/* Ken Burns effect on hero slides */
.hero-bg {
  background-size: cover;
  background-position: center center;
  animation: kenburns 20s ease-in-out infinite alternate;

}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(5px, 5px);
  }
  100% {
    transform: scale(1.1) translate(10px, 10px);
  }
}



/* SECTIONS */
.section { padding: 70px 0; }

.light-bg { background: #f7f7f7; }

h2 { color: #e66a00; }

/* CLIENT GRID */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  text-align: center;
}

/* 4 items per row on desktop */
.client {
  flex: 0 1 calc(25% - 30px);
  max-width: calc(25% - 30px);
}

@media (max-width: 1024px) {
  /* 2 items per row on tablets */
  .client {
    flex: 0 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  /* 1 item per row on small phones */
  .client {
    flex: 0 1 100%;
    max-width: 100%;
  }
}

.client img { max-height: 70px; }

.client {
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.client:last-child {
  border-bottom: none;
}


/* FOOTER */
footer {
  background: #000;
  color: #e66a00;
  text-align: center;
  padding: 15px;
  position: sticky;
  bottom: 0;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: auto;
    background: #000;
    flex-direction: column;
    width: 220px;
    display: none;
    padding: 15px;
  }

  nav.show { display: flex; }

  .hamburger {
    display: block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.08em;
    color: #e66a00;
    user-select: none;
  }
}

/* FADE ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  scroll-margin-top: 90px; /* prevents header covering content */
}

.mobile-footer-nav {
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #000;
  padding: 10px 0;
  z-index: 1000;
}

.mobile-footer-nav a {
  color: #e66a00;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

/* Header controls for mobile (MENU + LinkedIn beside it) */
.header-mobile-controls { display: none; }
.linkedin-mobile { display: none; }

@media (max-width: 768px) {
  /* Put MENU + LinkedIn in the header bar (not inside the dropdown) */
  .header-mobile-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 12px;
  }

  .linkedin-mobile { display: inline-flex; }
  .linkedin-desktop { display: none; }
}
