/* === Basic Styles === */
:root {
  --mint: #2de2a6;
  --mint-dark: #1bbf83;
  --gray: #f5f5f5;
  --dark: #18181b;
  --white: #fff;
  --text: #222;
  --accent: #00b894;
  --emerald-600: #059669;

  /* New Blue Colors for Footer */
  --blue-100: #bfdfff;
  --blue-200: #80bfff;
  --blue-300: #4099ff;
  --blue-700: #0056b3;
  --blue-800: #003366;
  --blue-900: #001a33;
}

/* Reset and Base Styles */
html {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--gray);
  color: var(--text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* Container and Layout */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}

/* Ensure all sections are properly contained */
section {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  left: 0;
  right: 0;
}

/* Image handling */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }



  .container-custom {
    padding: 0 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }



  /* Hero section adjustments */
  .hero-section {
    width: 100%;
    max-width: 100vw;
    padding: 0 0.75rem;
    overflow: hidden;
  }

  .hero-section .sm\:flex-row {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-content,
  .hero-image {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
  }

  /* Service and Why sections */
  .service-grid, .why-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    gap: 1rem;
  }

  .service-card, .why-card {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
  }

  /* Footer adjustments */
  .site-footer {
    padding: 3rem 0 0;
    overflow: hidden;
  }

  .footer-grid {
    display: block; /* Ensure it's a block-level element for stacking purposes */
    gap: 0; /* Remove gap if stacking as blocks */
    padding: 0 0.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Ensure each grid item (the direct children of .footer-grid) is fully responsive and stacks */
  .footer-grid > div {
    display: block; /* Make sure each column acts as a block */
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 1.5rem; /* Add spacing between stacked sections */
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    text-align: center; /* Center the content as shown in the image */
  }

  .footer-grid > div:last-child {
    border-bottom: none;
    margin-bottom: 0; /* No margin after the last item */
  }

  /* Specific adjustments for footer titles/headings on mobile */
  .footer-title,
  .footer-heading {
    text-align: center;
    margin-bottom: 1rem;
  }

  .footer-desc {
    text-align: center;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure footer links are also stacked vertically */
  .footer-links {
    display: block; /* Make the ul a block to stack list items */
    text-align: center; /* Center the links */
    align-items: center; /* Keep this for internal flex alignment if needed */
  }

  .footer-links li {
    display: block; /* Each list item as a block */
    width: 100%;
    text-align: center; /* Center the list item content */
  }

  .footer-social {
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 0 0.25rem;
    box-sizing: border-box;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
  }

  .footer-link {
    margin: 0 0.15rem;
    padding: 0.2rem;
    min-width: 0;
    flex-shrink: 1;
    display: inline-flex;
    align-items: center;
    word-break: break-all;
  }

  .footer-contact {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .footer-contact li {
    justify-content: center;
    padding: 0 0.1rem;
    box-sizing: border-box;
    text-align: center; /* Center text within contact list items */
    min-width: 0;
    width: 100%;
  }

  .footer-contact li .text-content {
    text-align: center;
  }

  .footer-bottom {
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Collapsible Footer Links specific styles for mobile */
  .footer-links-col {
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .footer-toggle-label {
    display: block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    padding: 0.75rem 0;
    background-color: #282828; /* Dark background for toggle area */
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }

  .footer-toggle-label .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .footer-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .footer-toggle-checkbox:checked + .footer-heading .footer-toggle-label .toggle-icon {
    transform: rotate(180deg);
  }

  .footer-toggle-checkbox:checked + .footer-heading + .footer-collapsible-content {
    max-height: 200px; /* Adjust as needed, large enough to contain all links */
  }

  .footer-links-col .footer-heading {
    display: flex; /* Use flex to align toggle and title */
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0; /* Remove default margin */
  }

  .footer-links {
    align-items: center; /* Center links in collapsible section */
    padding: 0;
    margin: 0;
  }

  .footer-links li {
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .footer-links a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
    text-decoration: none;
    color: #a1a1aa;
  }

  .footer-links a:hover {
    color: var(--mint);
  }

  /* Remove separators for mobile as sections are now blocks */
  .footer-grid > div:first-child,
  .footer-grid > div:nth-child(3),
  .footer-grid > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem; /* Keep consistent spacing */
  }

  .footer-grid > div:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 769px) {
  .footer-links-col .footer-toggle-label,
  .footer-links-col .footer-toggle-checkbox {
    display: none;
  }

  .footer-links-col .footer-collapsible-content {
    max-height: none;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: left;
    padding: 0;
  }

  .footer-grid > div {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: left;
  }

  .footer-title,
  .footer-heading {
    text-align: left;
    margin-bottom: 1rem;
  }

  .footer-desc {
    text-align: left;
    max-width: none;
    margin: 0;
  }

  .footer-links {
    align-items: flex-start;
  }

  .footer-links li {
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
    padding: 0;
  }

  .footer-contact {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .container-custom {
    padding: 0 0.5rem;
  }

  /* Additional fixes for very small screens */
  .site-header,
  .hero-section,
  .service-section,
  .why-section,
  .cta-section,
  .footer-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  /* Adjust text sizes for better mobile display */
  .text-4xl {
    font-size: 1.75rem;
    line-height: 2rem;
  }

  .md\:text-6xl {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .text-xl {
    font-size: 0.9rem;
  }

  .site-footer {
    padding: 2rem 0 0;
  }

  .footer-grid {
    padding: 0 0.1rem;
  }

  .footer-social {
    padding: 0;
  }

  .footer-contact li {
    padding: 0;
  }

  .footer-contact li .text-content {
    font-size: 0.8rem;
  }
}

/* Fix for any potential overflow in specific components */
.btn-primary,
.btn-secondary,
.btn-secondary-outline {
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

/* Ensure all interactive elements don't cause overflow */
a, button, input, textarea {
  max-width: 100%;
}

/* === Utility Classes === */
.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.text-2xl {
  font-size: 2rem;
}

.font-bold {
  font-weight: bold;
}

.section-padding {
  padding: 4rem 0;
}

.bg-white {
  background: #fff;
}

.bg-gray {
  background: var(--gray);
}

.text-mint {
  color: var(--mint);
}

.inline-flex {
  display: inline-flex;
}

.gap-2 {
  gap: 0.5rem;
}

.hover\:gap-3:hover {
  gap: 0.75rem;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.shadow-lg {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 0.3s;
}

.h-48 {
  height: 12rem; /* 192px */
}

.top-4 {
  top: 1rem; /* 16px */
}

.right-4 {
  right: 1rem; /* 16px */
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.text-sm {
  font-size: 0.875rem; /* 14px */
}

.object-cover {
  object-fit: cover;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/60 {
  --tw-gradient-from: rgba(0, 0, 0, 0.6);
  --tw-gradient-to: rgba(0, 0, 0, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.5s;
}

.z-0 {
  z-index: 0;
}

.opacity-10 {
  opacity: 0.1;
}

.max-w-3xl {
  max-width: 48rem; /* 768px */
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.pt-32 {
  padding-top: 8rem; /* 128px */
}

.pb-20 {
  padding-bottom: 5rem; /* 80px */
}

.mb-6 {
  margin-bottom: 1.5rem; /* 24px */
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.md\:text-6xl {
  font-size: 4.5rem; /* 72px */
  line-height: 1;
}

.text-xl {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
}

.text-gray-600 {
  color: #4b5563; /* Equivalent to gray-600 */
}

.mb-8 {
  margin-bottom: 2rem; /* 32px */
}

.text-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
}

.max-w-2xl {
  max-width: 42rem; /* 672px */
}

.sm\:flex-row {
  flex-direction: column; /* Default for mobile */
}

@media (min-width: 640px) { /* sm breakpoint */
  .sm\:flex-row {
    flex-direction: row;
  }
}

.justify-center {
  justify-content: center;
}

/* === Footer === */

.site-footer {
  padding: 3rem 0 0;
  overflow: hidden;
  background: var(--dark); /* Changed to black */
  color: var(--white); /* Ensure text is white */
}

.site-footer .container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* New Footer Grid for ONUM layout */
.footer-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  text-align: center; /* Default for mobile */
}

@media (min-width: 769px) {
  .footer-grid-new {
    grid-template-columns: 1.5fr 1fr; /* Adjust columns for desktop */
    text-align: left;
  }
}

.company-info-col {
  text-align: left ;
}

@media (min-width: 769px) {
  .company-info-col {
    text-align: left;
  }
}

.logo-onum img {
      height: 54px; /* Smaller height for the logo */
      width: 100%; /* Maintain aspect ratio */
      margin: 0 auto;
  /* For desktop, adjust margin to left */
}

@media (min-width: 769px) {
  .logo-onum img {
    margin: 0;
  }
}

.social-links-new {
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 769px) {
  .social-links-new {
    justify-content: flex-start;
  }
}

.social-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--blue-800); /* Dark blue background for icons */
  color: var(--white);
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
  margin-right: 0.99rem; /* Add space between icons */
}

.social-icon-circle:last-child {
  margin-right: 0; /* No margin on the last icon */
}

.social-icon-circle:hover {
  background-color: var(--blue-700); /* Slightly lighter blue on hover */
}

.contact-info-new {
  text-align: center;
}

@media (min-width: 769px) {
  .contact-info-new {
    text-align: left;
  }
}

.contact-info-new h4 {
  color: var(--white);
}

.contact-info-new ul li {
  display: flex;
  align-items: flex-start;
  justify-content: center; /* Center horizontally for mobile */
  gap: 0.75rem;
  color: var(--blue-100);
}

@media (min-width: 769px) {
  .contact-info-new ul li {
    justify-content: flex-start; /* Align left for desktop */
  }
}

.contact-info-new ul li span {
  font-size: 1.2rem;
}

/* Contact Us Button in Footer */
.btn-contact-us-footer {
  background-color: var(--white);
  color: var(--blue-800); /* Dark blue text */
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-contact-us-footer:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Scroll to Top Button */
.scroll-to-top-button {
  background-color: var(--white);
  color: var(--blue-800); /* Dark blue arrow */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.scroll-to-top-button:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.scroll-to-top-button span {
  font-size: 1.5rem;
}

/* Footer Bottom (Copyright) */
.footer-bottom-new {
  border-top: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.footer-bottom-new p {
  color: var(--blue-200);
}

/* === Buttons === */
.btn-primary {
  background-color: var(--mint);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Fully pill-shaped */
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none; /* Ensure no border */
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--mint-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--mint);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--mint);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background-color: var(--mint);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary-outline {
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-secondary-outline:hover {
  background-color: var(--white);
  color: var(--mint);
}

/* === General Card and Icon Animations === */
.service-card, .why-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover, .why-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}
.service-icon, .why-icon-circle {
  transition: transform 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-icon, .why-card:hover .why-icon-circle {
  transform: scale(1.1);
  color: var(--mint-dark);
}

/* Button hover animations (general) */
.btn-primary, .btn-secondary {
  transition: all 0.3s ease;
}
.btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Pulse animation for CTA section */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Contact Info Styles */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* Ensure the contact list can shrink */
}

.footer-contact li {
  color: #a1a1aa;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%; /* Ensure each list item takes full width */
  box-sizing: border-box;
  min-width: 0; /* Allow list item to shrink */
  padding: 0 0.25rem; /* Add some default padding to list items */
  overflow: hidden; /* Crucial: Clip any overflowing content within li */
}

.footer-contact li span:first-child {
  flex-shrink: 0;
  font-size: 1.1rem;
  display: inline-block;
  min-width: 0;
}

.footer-contact li .text-content {
  flex-grow: 1;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0; /* Crucial for text content to shrink */
  text-align: left;
}

