/* Defining my Css Variables */
:root {
  /* Color variables for the web pages */
  --light-bg: #f9f9f9;
  --text-main: #333333;
  --text-muted: #666666;
  --fnl-green: #27ae60; /* Matches your eco-friendly branding */
  --border-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --text-color: #d1d1d1;
  --accent-color: #007bff38; /* Change this to match fnlhub's brand color */
  --primary: #3D52A0;
  --secondary: #7091E6;
  --grey: #8697C4;
  --light-grey: #ADBBDA;
  --off-white: #EDE8F5;
  /* Sizes variables for all elements */
  --company-logo-width: 100px;
  /* font sizes for  */
  --font-size-extra-sm: 0.6rem;
  --font-size-sm: 1rem;
  --font-size-m: 2rem;
  --font-size-l: 2.24rem;
  --font-size-el: clamp(1rem, 0.4rem + 3vw, 4rem);
  /* Font weights */
  --font-weight-extra-light: 100;
  --font-weight-light: 300;
  --font-weight-medium: 400;
  --font-weight-bold: 600;
  --font-weight-exbold: 800;
  /* line heights */
  --line-height-small: 1.2rem;
  --line-height-medium: 1.6rem;
  --line-height-big: 2rem;
}

html {   
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
}

 /* Main Scroll Button Container */
#scrollToTopBtn {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #009C99;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

#scrollToTopBtn.show {
  bottom: 30px;
  opacity: 1;
}

/* Pulsing Ring (Kirupa style) */
#scrollToTopBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(77, 255, 246, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: pulse-ring 1.5s infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

#scrollToTopBtn:hover {
  background-color: #009C99;
}

/* Styling the main height of the webpage */
.wrapper-main {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
}

/* Styling the Navigational Bar of the main page*/
nav {
    background-color: rgb(255, 255, 255);
}

nav ul{
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav li {
  height: 70px;
}

nav a {
  height: 100%;
  padding: 0 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: 0.3s ease;
}

nav a.active {
  color: #009C99;
  font-weight: 700;
  border-radius: 5px;
}

nav a:hover {
  background-color: #f0f0f0;
  color: #009C99;
}

nav li:first-child {
  margin-right: auto;
}

/* Update this to match your existing 'nav a' styles precisely */
.nav-label {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: black;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Ensure the hover background matches the other links */
.dropdown:hover .nav-label {
  color: #009C99;
}

/* Fix for the icon alignment */
.dropdown-icon {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.4s ease;
  line-height: 0; 
}

.comp-logo {
  inline-size: 130px;
}

.home-btn {
  color: #009C99;
}

/* Styling the Sidebar of the main page*/
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.395);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Ensure the sidebar container allows for natural height expansion */
.sidebar li {
  height: auto; /* Changed from 70px to allow content to grow */
  width: 100%;
}

.sidebar li a {
  height: 50px; /* Reduced from 70px for tighter spacing */
  padding: 0 20px;
}

/* Mobile Dropdown specific behavior */
.mobile-dropdown {
  display: flex;
  flex-direction: column; /* Stack header and sub-menu vertically */
  width: 100%;
}

.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

/* The Sub-Menu: Using 'static' so it pushes content down */
.mobile-sub-menu {
  display: none; 
  position: static; /* Vital: This pushes other links down */
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.03); /* Subtle contrast */
  width: 100%;
}

.mobile-sub-menu li a {
  padding-left: 40px; /* Indent sub-links */
  height: 45px; /* Even tighter spacing for sub-links */
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Toggle state */
.mobile-dropdown.open .mobile-sub-menu {
  display: block;
}

.mobile-dropdown.open .mobile-icon {
  transform: rotate(180deg);
}

.menu-button {
    display: none;
}

/* Dropdown Container */
.dropdown {
    position: relative;
}

/* Hide the menu by default */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 70px; /* Match your 'nav li' height */
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    list-style: none;
    padding: 0;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid var(--fnl-green);
}

/* Style the dropdown links */
.dropdown-menu li {
    height: auto; /* Allow items to shrink to text size */
    width: 100%;
}

.dropdown-menu li a {
  padding: 12px 20px;
  font-size: 0.9rem;
  display: block;
}

/* Show the menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
  background-color: #dae3e794;
}

/* Ensure the sidebar (mobile) doesn't break */
.sidebar .dropdown-menu {
  position: static;
  display: block; /* Always show in sidebar or use a toggle */
  box-shadow: none;
  padding-left: 20px;
  background: transparent;
}

/* Starting position: Tip pointing UP */
.dropdown-icon {
  margin-left: 8px;
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth, snappy feel */
  color: inherit;
}

/* Hover position: Rotate 180 degrees to point DOWN */
.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
  color: var(--fnl-green); /* Optional: changes color when active */
}

@media (max-width: 800px) {
  .hideOnMobile{
    display: none;
  }
  .menu-button {
    display: block;
  }
}

@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 100%;
  }
}

/* Reach Out to us banners */
.reach-out-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px;
  text-align: center;
}

.reach-out-banners .cards img {
  width: 160px;
}

/* Live Support */
.reach-out-support {
  max-width: 100%;
  width: 100%;
  height: 100vh;
  background-image: url("../images/contact-bg_3.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  display: grid;
  align-items: center;
}

.support-content {
  width: 500px;
  text-align: left;
  margin-left: 12rem;
}

.support-content h1 {
  font-size: var(--font-size-el);
  font-weight: var(--font-size-l);
  padding-bottom: 1rem;
}

.support-content p {
  color: #87848a;
  font-weight: var(--font-weight-medium);
  padding-bottom: 1rem;
  line-height: var(--line-height-big);
}

#call-tag {
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-light);
  padding-right: 5px;
}

#call-us-number {
  color: rgba(34,193,195,1);
  font-weight: var(--font-weight-extra-light);
  font-size: var(--font-size-m);
}

.support-content h3 {
  padding-bottom: 1rem;
}

.support-content .chat-now {
  display: block;
  margin-top: 3rem;
}

.support-content a {
  text-decoration: none;
  border: 3.5px solid rgba(34,193,195,1);
  border-radius: 30px;
  padding: 1.8rem 3.5rem;
  text-align: center;
  color: black;
  font-size: var(--font-size-extra-sm);
  font-weight: var(--font-weight-exbold);
  letter-spacing: 0.1rem;
  transition: all 0.3s ease-in-out;
}

.support-content a:hover {
  background: rgba(34,193,195,1);
  /* background: radial-gradient(circle, rgba(238,174,202,1) 0%, rgba(34,193,195,1) 100%); */
  color: var(--off-white);
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  justify-content: center;
  margin: 5rem auto;
}

.contact-details {
  width: 100%;
}

/* Contact Date */
.contact-dates ul{
  display: flex;
  gap: 20px;
}

.contact-dates ul li {
  list-style: none;
  padding-bottom: 0.4rem;
}

.contact-dates ul li img{
  margin-right: 20px;
}

.contact-dates h2 {
  padding: 1rem 0;
}

.contact-dates.times {
  text-align: right;
}

.contact-dates p {
  padding-bottom: 1rem;
}

.contact-dates p img {
  margin-right: 20px;
}

.contact-container h1 {
  padding-bottom: 3rem;
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-medium);
}

.contact-details input[type='text'], [type='email'], [type='tel'] {
  width: 100%;
  background: #edebefa2;
  border: none;
  height: 3.8rem;
  margin-bottom: 1rem;
  outline: none;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus {
  box-shadow: 0 0 5px rgba(6, 233, 214, 0.726);
}

input::placeholder {
  padding-left: 2rem;
  color: #87848a;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2rem;
  font-size: 0.8rem;
}

input:focus::placeholder {
  opacity: 0; /* Makes the placeholder completely transparent */
}

/* For older browsers or specific browser engines */
input:focus::-webkit-input-placeholder { /* For WebKit browsers like Chrome, Safari */
  opacity: 0;
}

input:focus::-moz-placeholder { /* For Mozilla Firefox */
  opacity: 0;
}

input:-moz-placeholder { /* For older Firefox versions */
  opacity: 0;
}

/* Matching the contact-details input styling exactly */
#prod-services {
    width: 100%;
    background: #edebefa2; /* Matches your input[type='text'] */
    border: none;
    height: 3.8rem; /* Matches your input height */
    margin-bottom: 1rem;
    outline: none;
    padding-left: 2rem; /* Matches your placeholder padding */
    
    /* Font Styling to match your placeholder */
    color: #87848a; 
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    
    /* Remove default browser arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Add a clean custom arrow to the right */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2387848a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 2rem center;
    cursor: pointer;
}

/* Match the focus effect you have on inputs */
#prod-services:focus {
    box-shadow: 0 0 5px rgba(6, 233, 214, 0.726);
}

/* Ensure the options inside look clean */
#prod-services option {
    background: white;
    color: var(--text-main);
    letter-spacing: normal; /* Reset tracking for readability */
    text-transform: none;
    padding: 10px;
}

/* Style for the group headings */
#prod-services optgroup {
    font-weight: var(--font-weight-bold);
    color: #009C99; /* Using your brand teal for contrast */
    background: #f0f0f0;
}

/* Style the groups (the bold headings inside the menu) */
optgroup {
    font-weight: bold;
    color: #1d5851; /* Using your signature green */
    background: #f9f9f9;
}

option {
    color: #333;
    padding: 10px;
}

/* This works in some browsers to change the selection color */
#prod-services option:checked,
#prod-services option:hover {
    box-shadow: 0 0 10px 100px #009C99 inset; /* Forces your teal color */
    color: white !important;
}

.contact-details button {
  width: 220px;
  height: 70px;
  border-radius: 40px;
  text-align: center;
  cursor: pointer;
  background: rgba(34,193,195,1);
  color: var(--off-white);
  font-weight: var(--font-weight-exbold);
  font-size: var(--font-size-extra-sm);
  letter-spacing: 0.2;
  border: none;
  margin-top: 2rem;
  transition: all 0.4s ease-in-out;
}

.contact-details button:hover {
  background: none;
  color: rgba(34,193,195,1);
  border: rgba(34,193,195,1) 4px solid;
}

.full-width-field textarea {
  width: 100%;
  height: 200px; /* Fixed height */
  padding: 12px 20px; /* Padding inside the textarea */
  box-sizing: border-box; /* Includes padding and border in the width/height calculation */
  background-color: #edebefa2; /* Light gray background */
  font-size: 16px; /* Font size */
  color: #333; /* Dark gray text color */
  resize: vertical; /* Allow vertical resizing only */
  outline: none;
  border: none;
}

textarea:focus {
  box-shadow: 0 0 5px rgba(6, 233, 214, 0.726); /* Subtle shadow when focused */
}

textarea::placeholder {
  color: #87848a;
  font-weight: 100;
}

/* FNL Faq Section */
.fnl-faq-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  font-family: "Roboto", sans-serif;
}

.fnl-faq-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: #009C99;
}

.fnl-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.fnl-faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.fnl-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.fnl-faq-icon {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #009C99;
}

.fnl-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.fnl-faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Active state */
.fnl-faq-item.fnl-active .fnl-faq-answer {
  max-height: 300px;
}

.fnl-faq-item.fnl-active .fnl-faq-icon {
  transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .fnl-faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fnl-faq-section h2 {
    font-size: 2rem;
  }
}

/* Styling the Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    /* background-color: var(--light-bg);
    color: var(--text-main); */
    padding: 60px 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-section h3 {
    color: #009C99;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.social-icons a.facebook {
    background-color: #1778F2;
}

.social-icons a.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons a.twitter {
    background-color: #000000;
}

.social-icons a.whatsapp {
    background-color: #25D366;
}

.social-icons a.linkedin {
    background-color: #17a9ec;
}

.social-icons a.youtube {
    background-color: #FF0000;
}

.social-icons a.whatsapp:hover {
    color: #fff;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Media Queries */
@media (max-width: 1212px) {
  .contact-container {
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 0 20px;
  }
}

@media (max-width: 949px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 846px) {
  .service-list {
    left: 31%;
  }
  .reach-out-banners {
    grid-template-columns: repeat(1, 1fr);
  }
  .reach-out-banners .cards img {
    width: 250px;
  }
}

@media (max-width: 800px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .support-content {
    text-align: left;
    margin: auto;
  }
}

@media (max-width: 746px) {
  .footer-socials {
    margin-left: 1rem;
  }
  .cog-icon {
    margin-right: 5rem;
  }
}

@media (max-width: 701px) {
  .navbar-container .default-menu .hideOnMobile {
    display: none;
  }
  .navbar-container .default-menu .menu-button {
    display: block;
  }
  .nav-bar .navbar-container {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .support-content {
    width: 100%;
    text-align: center;
    padding: 0 2rem;
  }
  .service-list {
    left: 29%;
  }
}

@media (max-width: 500px) {
  .service-list {
    left: 24%;
  }
}

@media (max-width: 400px) {
  .navbar-container.sidebar {
    width: 100%;
  }
}