/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #ffffff;
  color: #111827;
  overflow-x: hidden;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Background animation */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/background1.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: floatBG 15s ease-in-out infinite;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 25px;
  height: 100%;
  width: 100%;
  padding: 0 20px;
  padding-top: 120px;
}


/* =========================
   ICON ROW ON IMAGE
========================= */

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-bottom: 5px;
  padding-top: 120px;
  position: relative;
}


/* icon container */
.icon-box{
  position: relative;
  display: flex;
  justify-content: center;
}

/* icon */

/* hidden text */
.icon-text{
  position: absolute;
  top: 42px;                /* text appears below icon */
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* show text on hover */
.icon-box:hover .icon-text{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ICON STYLE (WORKS FOR <a>) */
.hero-icons .icon {
  width: 46px;
  height: 46px;
  font-size: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Deeper background */
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(10px);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);

  /* Anchor fixes */
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;

  transition:
    transform 0.25s cubic-bezier(.34,1.56,.64,1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Hover pop */
.hero-icons .icon:hover,
.hero-icons .icon:focus-visible {
  transform: translateY(-6px) scale(1.15);
  background: rgba(0, 0, 0, 0.7);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.75),
    0 0 16px currentColor;
}

/* Remove focus outline */
.hero-icons .icon:focus {
  outline: none;
}

/* =========================
   BACKGROUND FLOAT
========================= */
@keyframes floatBG {
  0% { transform: scale(1) translate(0, 0); }
  25% { transform: scale(1.05) translate(30px, -20px); }
  50% { transform: scale(1.1) translate(-30px, 30px); }
  75% { transform: scale(1.05) translate(20px, -20px); }
  100% { transform: scale(1) translate(0, 0); }
}

/* =========================
   HERO TEXT
========================= */

/* =========================
   HERO BUTTONS
========================= */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
}

.btn {
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
}

.primary-btn {
  background: #22c55e;
  color: #ffffff;
}

.primary-btn:hover {
  background: #16a34a;
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(34, 197, 94, 0.45);
}

.secondary-btn {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}



/* =========================
   FACILITIES SECTION
========================= */
.facilities-section {
  padding: 100px 7%;
  background: #ffffff;
}

.section-tag {
  text-align: center;
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 10px 0;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto 70px;
}

/* =========================
   GRID
========================= */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}


.facility-link {
  text-decoration: none;
  color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;   /* spacing instead of margin-left */
}

.logo {
    height: auto;     /* 🔥 match navbar height */
    max-width: 200px; 
}
.franchise-sticker-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.franchise-sticker-wrap img{
    width: 240px;           /* change size here */
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: -50px;
}

/* small premium hover effect */
.franchise-sticker-wrap img:hover{
    transform: translateY(-5px);
}



.franchise-section { /* container for robot and text */
    width: 100%;
    height: 250px;       /* adjust depending on your layout */
    background: #fff;    /* or your section background */
    display: flex;
    align-items: center; /* vertically center within section */
    justify-content: flex-end; /* position robot on right */
    padding-left: 30px; /* space from right edge */
    box-sizing: border-box;
    display: flex;
}

.franchise-robot {
    width: 400px;        /* robot size */
    margin-left: -40px;
    margin-top: -70px;
     
}



/* =========================
   FACILITY CARD (CREATIVE)
========================= */
.facility-card {
  background: linear-gradient(145deg, #ffffff, #f4f6fb);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  opacity: 0;
  transform: translateY(60px) scale(0.94);
  animation: cardReveal 0.9s cubic-bezier(.22,1,.36,1) forwards;

  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   CARD HOVER EFFECT
========================= */
.facility-card:hover {
  transform: translateY(-18px) scale(1.04);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.18),
    0 0 40px rgba(34, 197, 94, 0.15);
}

/* =========================
   GLOW BORDER
========================= */
.facility-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(34, 197, 94, 0.6),
    rgba(59, 130, 246, 0.6),
    transparent
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.facility-card:hover::before {
  opacity: 1;
}

/* =========================
   SHINE SWEEP
========================= */
.facility-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 40%;
  height: 260%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.8s ease;
}

.facility-card:hover::after {
  left: 120%;
}

/* =========================
   ICON STYLE
========================= */
.icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;

  transition:
    transform 0.6s cubic-bezier(.22,1,.36,1),
    box-shadow 0.6s ease;
}

.facility-card:hover .icon {
  transform: translateY(-12px) rotate(-8deg) scale(1.15);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

/* ICON COLORS */
.blue { background: #e0f2fe; }
.purple { background: #ede9fe; }
.gray { background: #f3f4f6; }
.green { background: #dcfce7; }
.teal { background: #ccfbf1; }
.orange { background: #ffedd5; }
.cyan { background: #cffafe; }
.red { background: #fee2e2; }
.indigo { background: #e0e7ff; }


/* =========================
   CARD TEXT
========================= */
.facility-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: transform 0.4s ease, color 0.4s ease;
}

.facility-card p {
  font-size: 0.95rem;
  color: #6b7280;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.facility-card:hover h3 {
  transform: translateY(-4px);
  color: #0b132b;
}

.facility-card:hover p {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* =========================
   STAGGERED ANIMATION
========================= */
.facility-card:nth-child(1)  { animation-delay: 0.1s; }
.facility-card:nth-child(2)  { animation-delay: 0.2s; }
.facility-card:nth-child(3)  { animation-delay: 0.3s; }
.facility-card:nth-child(4)  { animation-delay: 0.4s; }
.facility-card:nth-child(5)  { animation-delay: 0.5s; }
.facility-card:nth-child(6)  { animation-delay: 0.6s; }
.facility-card:nth-child(7)  { animation-delay: 0.7s; }
.facility-card:nth-child(8)  { animation-delay: 0.8s; }
.facility-card:nth-child(9)  { animation-delay: 0.9s; }
.facility-card:nth-child(10) { animation-delay: 1s; }
.facility-card:nth-child(11) { animation-delay: 1.1s; }
.facility-card:nth-child(12) { animation-delay: 1.2s; }
.facility-card:nth-child(13) { animation-delay: 1.3s; }
.facility-card:nth-child(14) { animation-delay: 1.4s; }
.facility-card:nth-child(15) { animation-delay: 1.5s; }


.franchise-widget img{
    width: 70px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-8px); }
}






/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero-section {
    height: 75vh;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .facilities-section {
    padding: 80px 6%;
  }
}






/*downward cards section ends here*/

/* FULL PAGE WRAPPER */

/* REMOVE UNDERLINES FROM FACILITY LINKS */
.facility-link {
  text-decoration: none;
  color: inherit;
}

/* ALSO ENSURE NO UNDERLINE ON HOVER */
.facility-link:hover {
  text-decoration: none;
}

.facility-image-wrapper {
  position: relative;
}

.facility-image {
  width: 100%;
  height: 500px;
  display: block;
  object-fit: cover;
}

 





/* TEXT CONTENT */
.facility-content {
  width: 100%;
  padding: 60px  20px;
  margin: 0 auto;
  text-align: left;
}

/* HEADING */
.facility-content h1 {
  font-size: 32px;
  margin-bottom: 15px;
  text-align: left;
}

/* PARAGRAPH */
.facility-content p {
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line; /* keeps your 8 lines */
  text-align: left;
}

/* CENTER BUTTON */
.button-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* BUTTON STYLE */
.book-btn {
  background-color: #22c55e;
  color: white;
  padding: 14px 30px;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: none; /* JS controls visibility */
}

.book-btn:hover {
  background-color: #22c55e;
}

@media (max-width: 1024px) {

  .hero-icons {
    gap: 25px;
    top: 80px;
  }

  .hero-buttons {
    top: 120px;
  }

}
@media (max-width: 768px) {
  /* buttons come lower */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    top: 100px;
  }

}
@media (max-width: 480px) {

  .hero-icons {
    gap: 12px;
    top: 40px;
  }

  .hero-buttons {
    top: 70px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

}
/* =========================
   FIX MOBILE WHITE SPACE
========================= */
/* =========================
   MOBILE WIDTH FIX
========================= */
@media (max-width: 768px) {

  .hero-content {
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 15px; 
    padding-top: 60px;  
  }
  .hero-buttons {
    top: 0 !important;
    margin-top: 20px;
  }
  .hero-section {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    padding-bottom: 40px;
  }

  .hero-icons {
    flex-wrap: wrap;          /* 🔥 MOST IMPORTANT */
    justify-content: center;
    gap: 12px;
    padding: 0 10px;
  }
  .hero-icons .icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

}