/* =========================================
   Hobber Global CSS - Clean Structure
   ========================================= */

/* ===================
   1. CSS Variables
   =================== */
:root {
  /* Colors */
  --color-primary: #8cc615;
  --color-primary-dark: #6b9e15;
  --color-secondary: #99d300;
  --color-secondary-dark: #8dbe04;
  --color-accent: #aee836;
  --color-dark: #363636;
  --color-darker: #333333;
  --color-light: #f6f6f6;
  --color-white: #ffffff;
  --color-text: #4f4f4f;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  
  /* Typography */
  --font-primary: "BeVietnamReg", sans-serif;
  --font-secondary: "BeVietnamSemei", sans-serif;
  --font-bold: "BeVietnam", sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  /* --spacing-xl: 2rem; */
  
  /* Header */
  --header-height: 70px;
  --header-bg: rgba(54, 54, 54, 0.8);
  --header-blur: 15px;
}

/* ===================
   2. Font Declarations
   =================== */
@font-face {
  font-family: "BeVietnamReg";
  src: url("../fonts/Fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "BeVietnamSemei";
  src: url("../fonts/Fonts/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "BeVietnam";
  src: url("../fonts/Fonts/BeVietnamPro-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* ===================
   3. Reset & Base
   =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Hide scrollbar for all elements */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

/* Hide scrollbar for all elements in Chrome, Safari and Opera */
*::-webkit-scrollbar {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html {
  /* Hide scrollbar for all browsers */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none !important;
}

body {
  font-family: var(--font-primary);
  font-weight: normal;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
  margin: 0;
  /* Hide scrollbar for all browsers */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none !important;
}

/* ===================
   4. Typography
   =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-bold);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* ===================
   5. Header Styles
   =================== */
.hobber-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hobber-header .navbar {
  height: 100%;
  padding: 0 14rem;
}

.hobber-header .container-fluid {
  height: 100%;
  padding: 0;
}

/* Logo */
.hobber-header .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.hobber-header .logo img {
  height: 40px;
  width: auto;
}

/* Navigation */
.hobber-header .navbar-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hobber-header .nav-item {
  margin: 0 2.5rem;
}

.hobber-header .nav-link {
  color: #eee;
  font-size: 16px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: color 0.3s ease;
}

.hobber-header .nav-link:hover,
.hobber-header .nav-link.active {
  color: var(--color-accent);
}

/* Become Vendor Button */
.btn-become-vendor {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-secondary);
  display: inline-block;
  text-decoration: none;
}

.btn-become-vendor:hover {
  background-color: var(--color-secondary-dark);
  color: var(--color-white);
  text-decoration: none;
}

/* Mobile Toggle */
.navbar-toggler {
  border: none;
  background: transparent;
  color: var(--color-white);
  font-size: 24px;
  padding: 0;
  display: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Scrolled State */
.hobber-header.scrolled {
  background-color: rgba(54, 54, 54, 0.8);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}

/* ===================
   6. Mobile Menu & Overlay
   =================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #565656;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.active {
  display: flex;
}

.overlay-nav {
  list-style: none;
  padding: 0;
  text-align: left;
  padding-left: 3rem;
  padding-top: 3rem;
  padding-right: 1rem;
}

.overlay-nav li {
  margin: 20px 0;
  font-family: var(--font-primary);
  font-weight: normal;
}

.overlay-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 25px;
  font-weight: 600;
  line-height: 22px;
  font-family: var(--font-primary);
  font-weight: normal;
}

.overlay-nav a.active {
  color: var(--color-accent) !important;
}

.close-button {
  position: absolute;
  top: 2px;
  right: 50px;
  cursor: pointer;
  color: #fff;
  font-size: 50px;
  font-family: var(--font-primary);
  font-weight: normal !important;
}

.become-vendor-button.overlay-button {
  position: absolute;
  bottom: 30px;
  left: 3rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 10px 25px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-secondary);
  transition: all 0.3s ease;
  display: inline-block;
  width: 180px;
  text-align: center;
  line-height: 30px;
}

.become-vendor-button.overlay-button:hover {
  background-color: var(--color-secondary-dark);
  color: var(--color-white);
}

/* ===================
   7. Footer Styles
   =================== */
.hobber-footer {
  background-color: #323232;
  color: var(--color-white);
  padding-top: var(--spacing-lg);
  margin-top: 0;
}

.footer-content {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(131, 131, 131, 0.4);
}

.footer-column {
  margin-bottom: var(--spacing-md);
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #bdbdbd;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

/* Footer Social */
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: transparent;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--color-primary);
}

.footer-social i {
  font-size: 30px; /* 1.90x of 16px */
  transition: color 0.3s ease;
}

/* Social Media Brand Colors - Official 2024 */
.footer-social .fa-instagram {
  color: #E4405F; /* Instagram official gradient start color */
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social .fa-facebook-f {
  color: #0866FF; /* Facebook/Meta official blue 2024 */
}

.footer-social .fa-youtube {
  color: #FF0000; /* YouTube official red */
}

/* Keep icon colors on hover */
.footer-social a:hover i {
  color: var(--color-white);
  background: none;
  -webkit-text-fill-color: var(--color-white);
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--spacing-md) 0;
  text-align: left;
}

.footer-bottom .row > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin: 0;
}

.copyright {
  font-size: 12px;
  color: #666666;
  margin: 0;
}

/* ===================
   8. Scroll to Top Button
   =================== */
#scrollToTopBtn,
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0;
  align-items: center;
  justify-content: center;
}

#scrollToTopBtn:hover,
.scroll-to-top:hover {
  background-color: var(--color-primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(140, 198, 21, 0.4);
}

#scrollToTopBtn.show,
.scroll-to-top.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================
   9. Utility Classes
   =================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

/* ===================
   10. Force Hide Mobile Elements on Desktop
   =================== */
@media screen and (min-width: 769px) {
  .overlay,
  .overlay.active,
  .mobile-nav-overly,
  .mobile-nav,
  .mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  body.mobile-nav-active {
    overflow: auto !important;
    position: static !important;
  }
  
  /* Reset any transform or position changes */
  .overlay {
    transform: translateX(-100%) !important;
  }
}

/* ===================
   11. Common Section Styles
   =================== */
section {
  margin-top: 0;
  padding: var(--spacing-xl) 0;
}

section:first-of-type {
  margin-top: 0;
}

/* Green Banner Section - Used in Contact & Vendor Signup */
.img-text-section {
  background-color: var(--color-secondary-dark);
  padding: 0 14rem; /* Match header padding */
  margin-bottom: 3rem !important;
  margin-top: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.strong-header-img {
  justify-content: center !important;
  align-items: center !important;
  margin-top: 2rem !important;
}

.strong-header-img strong {
  font-style: normal;
  font-weight: 900;
  color: var(--color-white);
  font-family: var(--font-bold);
  font-weight: bold;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.image-cols {
  margin-top: -5rem;
}

/* Form Section Headers */
.strong-become-venor-with-hobber {
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
  text-align: left;
  color: var(--color-text);
  display: block;
  font-family: var(--font-secondary);
  font-weight: bold;
}

/* Form Styles */
.vendor-sign-form input,
.vendor-sign-form select,
.vendor-sign-form textarea {
  background-color: var(--color-light);
  border-color: var(--color-light);
  font-size: 17px !important;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.05em;
  text-align: left;
  border-radius: 8px;
  color: #b0bfa6;
  font-family: var(--font-primary);
  font-weight: normal !important;
}

.vendor-sign-form input::placeholder {
  font-size: 17px;
  font-family: var(--font-primary);
  font-weight: normal;
  color: #c7c7c7 !important;
}

input::placeholder {
  color: #c7c7c7 !important;
  font-family: var(--font-primary);
  font-weight: normal !important;
}

input,
select,
textarea {
  color: #c7c7c7 !important;
  font-family: var(--font-primary);
  font-weight: normal !important;
}

/* International Telephone Input */
.iti__selected-flag {
  border-right: 1px solid #9f9f9f !important;
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: normal !important;
}

/* Terms & Privacy Links */
.term-privacy-link p {
  font-size: 14px;
  font-weight: 400;
  line-height: 5px;
  letter-spacing: -0.05em;
  text-align: left;
  color: #a9a9a9;
  font-family: var(--font-primary);
  font-weight: normal;
}

.term-privacy-link p a {
  color: var(--color-primary);
  text-decoration: underline;
  font-family: var(--font-primary);
  font-weight: normal;
}

.term-privacy-link p a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Submit Button */
.btn-submit-vendor {
  width: 40%;
  height: 47px;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 15px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-primary);
  font-weight: normal;
}

.btn-submit-vendor:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border: 1px solid var(--color-primary-dark);
}

/* Google reCAPTCHA */
.google-capatch {
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-recaptcha {
  display: inline-block;
}

/* ===================
   11. Responsive
   =================== */
@media (max-width: 1199px) {
  .hobber-header .navbar {
    padding: 0 3rem;
  }
  
  .img-text-section {
    padding: 0 3rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    display: none !important;
  }
  
  .header-cta {
    display: none !important;
  }
}

/* Tablet Styles */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* Prevent horizontal overflow on tablets */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  .container, .container-fluid,
  .row, section {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  .img-text-section {
    padding: 2rem 1rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .strong-header-img {
    text-align: center !important;
  }
  
  .strong-become-venor-with-hobber {
    font-size: 25px;
    line-height: 30px;
  }
  
  .btn-submit-vendor {
    width: 40%;
    font-size: 15px;
  }
  
  .vendor-sign-form input,
  .vendor-sign-form textarea {
    font-size: 14px !important;
  }
  
  .vendor-sign-form select {
    font-size: 11px !important;
  }
  
  input::placeholder,
  textarea::placeholder {
    font-size: 11px !important;
  }
  
  input {
    height: 40px !important;
  }
  
  .iti__selected-flag {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative !important;
  }
  
  /* Prevent horizontal scroll on all main containers */
  .container, .container-fluid, 
  .row, main, section, 
  div[class*="col-"] {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  
  /* Ensure all sections don't cause overflow */
  section {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  /* Fix any absolutely positioned elements */
  * {
    max-width: 100vw !important;
  }
  
  body {
    padding-top: 60px !important; /* Reduced header height on mobile */
  }
  
  .hobber-header {
    height: 60px; /* Smaller header on mobile */
  }
  
  .hobber-header .navbar {
    padding: 0 1.5rem;
    height: 60px;
  }
  
  .hobber-header .logo img {
    height: 30px; /* Smaller logo on mobile */
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  section:first-of-type {
    padding-top: var(--spacing-md); /* Less padding on first section mobile */
  }
  
  /* Green Banner Mobile */
  .img-text-section {
    padding: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  
  .img-text-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .image-cols {
    margin-top: -1rem;
  }
  
  .strong-header-img {
    text-align: center !important;
  }
  
  /* Form Mobile */
  .strong-become-venor-with-hobber {
    font-size: 25px;
    line-height: 30px;
    text-align: center;
  }
  
  .btn-submit-vendor {
    width: 60%;
    font-size: 15px;
  }
  
  .vendor-sign-form input,
  .vendor-sign-form textarea {
    font-size: 14px !important;
    height: 40px !important;
  }
  
  .vendor-sign-form select {
    font-size: 11px !important;
  }
  
  input::placeholder,
  textarea::placeholder {
    font-size: 11px !important;
  }
  
  .iti__selected-flag {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  
  .form-group {
    margin-bottom: 25px !important;
  }
  
  /* Footer 2-column layout on mobile */
  .footer-column {
    margin-bottom: 2rem;
  }
  
  .footer-column:nth-child(odd) {
    padding-right: 0.5rem;
  }
  
  .footer-column:nth-child(even) {
    padding-left: 0.5rem;
  }
  
  .footer-title {
    font-size: 14px;
    margin-bottom: 0.75rem;
  }
  
  .footer-links {
    font-size: 12px;
  }
  
  .footer-links li {
    margin-bottom: 0.25rem;
  }
  
  .footer-bottom {
    text-align: left;
  }
  
  .footer-bottom .row > div {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .footer-logo {
    height: 25px;
  }
  
  .copyright {
    font-size: 11px;
  }
}