/* base styles */
* {
  box-sizing: border-box;
  margin: 0;
  font-family: gilroy;
  padding: 0;
}

body {
 
  background-color: #f4f4f4;
  color: #111;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #222;
}

nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12vh;
  width: 100%;
  padding: 0 6vw;
  background-color: transparent;         /* Fully transparent */
  backdrop-filter: blur(4px);            /* Keeps the blur effect */
  -webkit-backdrop-filter: blur(4px);    /* Safari support */
  z-index: 10;
}
nav h1, .nav-right ul li a {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


nav h1 {
    font-size: 1.6vw;
    color: white;
    white-space: nowrap;
}

.nav-right{
    display: flex;
    align-items: center;
    gap: 2vw;
    
}

.nav-right ul{
    list-style: none;
    display: flex;
}

.nav-right ul li a{
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    font-weight: 550;
    font-size: 18.6px;
    padding: 20px 25px;
    overflow: hidden;
}

.nav-right ul li a:before{
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background-color: #fff;
    transform: all ease 0.5s;
    transform: scaleX(0);
}

.nav-right ul li a:hover:before{
    transform: scaleX(1);
}

.nav-right ul li a span{
    display:block;
    transition: all ease 0.5s;
}

.nav-right ul li a span:nth-child(2){
       left:0;
       top: 0; right: 0;
       text-align: center;
       position: absolute;
       transform: translateY(-30px);
}


.nav-right ul li a.btn {
  display: inline-block;
  padding: 20px 20px;              
       /* Light grey background */
  color: white !important;           /* Dark text inside */
  border-radius: 50px;             /* Fully rounded */
  font-weight: 550;
  font-size: 17.6px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-right ul li a:hover span:nth-child(1){
    transform: translateY(50px);

}

.nav-right ul li a:hover span:nth-child(2){
    transform: translateY(20px);
}
nav.hero-overlap h1,
nav.hero-overlap .nav-right ul li a {
  color: #111 !important;
  text-shadow: none;
}


/* hero section */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  height: 100%;
  width: 100%;
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  text-align: left;
  z-index: 2;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 400;
}

/* section */
.section {
  padding: 4rem 5%;
  background-color: #fff;
}

.section:nth-child(even) {
  background-color: #eaeaea;
}

/* who we are */
.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.split-image,
.split-text {
  flex: 1 1 45%;
}

.split-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.split-text p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: #333;
}

/* what we stand for */
.stand-for-gallery {
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
}

.stand-for-gallery h2 {
  text-align: center;
}

.gallery-row {
  display: flex;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  padding: 2rem 0;
  gap: 1rem;
}

.gallery-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
  position: relative;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 2;
}

.gallery-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: white;
  z-index: 3;
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}


/* what we deliver */
.deliver-simple {
  background-color: #fff;
  color: #111;
}

.deliver-simple h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.deliver-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
  border-top: 0;
  border-bottom: 0;
  padding: 2rem 1rem;
}

.deliver-item {
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.deliver-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  margin-bottom: 0.5rem;
}

.deliver-item .arrow {
  font-size: 1.2rem;
  color: #111;
}

.deliver-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* our engagement model */
.section.engagement-gallery {
  padding: 4rem 2rem;
  background-color: #111;
  color: white;
}

.engagement-gallery h2 {
  color: #fff;
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
}

.engagement-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.engagement-item {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.engagement-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.3s ease;
}

.engagement-item:hover {
  transform: scale(1.02);
}

.engagement-text {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* why revitalised works */
.black-bars {
  padding: 4rem 2rem;
  background-color: #fff;
  color: #111;
}

.black-bars h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
}

.bar-chart {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 1fr 4fr 50px;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  font-size: 1.05rem;
  font-weight: 600;
}

.bar-track {
  background-color: #ddd;
  width: 100%;
  height: 16px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  background-color: #111;
  height: 100%;
  width: 0%;
  transition: width 1.5s ease-out;
}

.bar-fill.static {
  width: 100%;
}

.bar-value {
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

/* call to action (cta) section */
.cta-image {
  position: relative;
  background: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.cta-links a {
  color: #eaeaea;
  text-decoration: underline;
  transition: color 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cta-links a:hover {
  color: #e28b10;
}

.cta-links span {
  color: #aaa;
}

nav.scrolled {
  background-color: white;
  backdrop-filter: none; /* 🚫 You want to keep blur always */
}

nav.scrolled h1,
nav.scrolled .nav-right ul li a {
  color: #111 !important;
  text-shadow: none;
}

html {
  scroll-behavior: smooth;
}