/* =============================================
   HOME PAGE & NAVIGATION SYSTEM STYLING
   ============================================= */

.main-layout-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  position: relative;
}

/* =============================================
   SCROLLABLE CONTENT AREA
   ============================================= */
.screen-content-area {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for bottom bar on mobile */
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.screen-content-area::-webkit-scrollbar {
  display: none;
}
.screen-content-area {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =============================================
   MOBILE HEADER (MAIN PAGES)
   ============================================= */
.mobile-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  background-color: #ffffff;
  border-bottom: 1.5px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* =============================================
   MOBILE HEADER (INNER PAGES)
   ============================================= */
.mobile-services-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  background-color: #ffffff;
  border-bottom: 1.5px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-arrow-btn {
  background: transparent;
  border: none;
  outline: none;
  font-size: 18px;
  color: var(--dark-charcoal);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.back-arrow-btn:active {
  background-color: #edf2f7;
}

.services-header-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-charcoal);
  text-align: center;
}

.user-greeting-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  object-fit: cover;
}

.greeting-details {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.welcome-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.user-display-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.location-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.location-badge i {
  color: var(--accent-orange);
}

.mobile-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-header-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-section {
  padding: 16px 12px;
  width: 100%;
}

.search-bar-inner {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: var(--transition-smooth);
}

.search-bar-inner:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(11, 128, 67, 0.1);
}

.search-icon {
  color: var(--text-muted);
  font-size: 15px;
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--dark-charcoal);
  background: transparent;
}

.search-input::placeholder {
  color: #a0aec0;
}

.filter-icon {
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding-left: 12px;
  border-left: 1.5px solid #edf2f7;
}

/* =============================================
   PROMO BANNER
   ============================================= */
.consultation-banner {
  margin: 4px 12px 16px;
  border-radius: 20px;
  background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=800&q=80'); /* KFC/Neon branding aesthetic */
  background-size: cover;
  background-position: center;
  height: 180px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.banner-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px;
  color: #ffffff;
}

.banner-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.banner-title span {
  color: #38a169; /* Branding green matching standouts */
}

.banner-action-btn {
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(11, 128, 67, 0.3);
  transition: var(--transition-smooth);
}

.banner-action-btn:hover {
  transform: translateY(-1px);
  background-color: #096836;
}

.banner-action-btn:active {
  transform: translateY(0);
}

/* =============================================
   QUICK CATEGORIES HORIZONTAL SCROLL
   ============================================= */
.quick-categories-wrapper {
  width: 100%;
  padding: 0 0 20px;
  overflow: hidden;
}

.quick-categories {
  display: flex;
  gap: 18px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.quick-categories::-webkit-scrollbar {
  display: none;
}
.quick-categories {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.quick-category-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 72px;
}

.quick-category-item:hover {
  transform: translateY(-2px);
}

.category-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  background-color: var(--category-bg-color, rgba(11, 128, 67, 0.14));
  color: var(--category-color, #0b8043);
}

.category-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-charcoal);
  text-align: center;
  line-height: 1.2;
}

/* =============================================
   QUICK ACTION CARDS
   ============================================= */
.quick-action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 12px 24px;
}

.action-card {
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.card-orange { background-color: #fff6f0; border-color: #ffe6d9; color: #dd6b20; }
.card-green { background-color: #f2faf5; border-color: #d1f2e1; color: #2f855a; }
.card-blue { background-color: #f0f7ff; border-color: #d9ecff; color: #2b6cb0; }

.action-icon {
  font-size: 22px;
}

.action-title {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

/* =============================================
   SECTION HEADER (Featured Services / Portfolio)
   ============================================= */
.section-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 14px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.section-view-all-btn {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-green);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.section-view-all-btn:hover {
  color: #096836;
  text-decoration: underline;
}

/* =============================================
   FEATURED SERVICES GRID
   ============================================= */
.featured-services-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 0 12px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.featured-services-grid::-webkit-scrollbar {
  display: none;
}

.featured-services-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.service-card {
  flex: 0 0 240px;
  width: 240px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border: 1px solid #edf2f7;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-icon-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}

.service-card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-charcoal);
}

.service-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =============================================
   PORTFOLIO SERVICES GRID
   ============================================= */
.portfolio-services-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 0 12px 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.portfolio-services-grid::-webkit-scrollbar {
  display: none;
}

.portfolio-services-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-card {
  flex: 0 0 240px;
  width: 240px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 128, 67, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  text-align: center;
  color: #ffffff;
}

.portfolio-card:hover .portfolio-hover-overlay {
  opacity: 1;
}

.portfolio-hover-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.portfolio-hover-client {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.8;
}

.portfolio-card-info {
  padding: 12px;
}

.portfolio-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-charcoal);
  margin-bottom: 2px;
}

.portfolio-card-client {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-empty-state {
  min-width: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  background-color: #f8fafc;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* =============================================
   MOBILE BOTTOM BAR (App Bottom Navigation)
   ============================================= */
.mobile-bottom-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  border-top: 1.5px solid #edf2f7;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
}

.tab-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #a0aec0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.tab-bar-item i {
  font-size: 18px;
}

.tab-bar-item span {
  font-size: 10px;
  font-weight: 700;
}

.tab-bar-item.active {
  color: var(--primary-green);
}

/* =============================================
   PLACEHOLDER SCREEN STYLES
   ============================================= */
.placeholder-tab-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 24px 20px;
}

.placeholder-card {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #edf2f7;
  padding: 40px 30px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.placeholder-icon {
  font-size: 48px;
  color: var(--primary-green);
  opacity: 0.8;
}

.placeholder-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-charcoal);
}

.placeholder-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.placeholder-card .action-btn {
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.placeholder-card .action-btn:hover {
  background-color: #096836;
}

/* =============================================
   DESKTOP WEB VIEW STYLES
   ============================================= */
.web-nav-header {
  display: none; /* Hidden by default on mobile view */
}

/* Web detail header used globally for inner pages */
.web-detail-header {
  display: none; /* Mobile view doesn't show this header */
}

@media (min-width: 768px) {
  /* Hide mobile-specific nodes */
  .mobile-screen-header,
  .mobile-services-header {
    display: none !important;
  }
  .mobile-bottom-bar {
    display: none !important;
  }

  /* Show web navigation bar at the top */
  .web-nav-header {
    display: block;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1.5px solid #edf2f7;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .web-detail-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .web-back-link {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    width: max-content;
    transition: var(--transition-smooth);
  }

  .web-back-link:hover {
    color: #096836;
    transform: translateX(-2px);
  }

  .web-service-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-charcoal);
  }

  .web-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 92px;
  }

  .web-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .web-logo-wrapper:hover {
    transform: translateY(-1px);
  }

  .web-nav-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
  }

  .web-brand-text {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
    font-family: var(--font-family);
  }

  /* Add top padding since nav bar is fixed now */
  .screen-content-area {
    padding-top: 92px;
  }

  .web-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .nav-item-btn {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav-item-btn i {
    display: none;
  }

  .nav-item-btn:hover {
    background-color: #f7fafc;
    color: var(--dark-charcoal);
  }

  .nav-item-btn.active {
    background-color: #f0fff4;
    color: var(--primary-green);
  }

  .web-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .web-login-btn {
    background-color: #00c853;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .web-login-btn:hover {
    background-color: #00b44a;
  }

  .web-login-btn[style*="display:none"] {
    display: none !important;
  }

  .web-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-green);
  }

  .web-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }

  .web-user-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark-charcoal);
  }

  .web-user-loc {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .web-user-loc i {
    color: var(--accent-orange);
  }

  .web-notification-bell {
    position: relative;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-smooth);
  }

  .web-notification-bell:hover {
    color: var(--dark-charcoal);
  }

  .bell-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #e53e3e;
    border: 1px solid #ffffff;
  }

  /* Desktop layouts for inner home tab page */
  .screen-content-area {
    padding-bottom: 0; /* Remove mobile padding space */
  }

  .home-tab-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
  }

  .search-section {
    padding: 0 0 24px;
  }

  .search-bar-inner {
    max-width: 500px;
  }

  .consultation-banner {
    margin: 0 0 30px;
    height: 320px;
    border-radius: 20px;
  }

  .banner-title {
    font-size: 36px;
  }

  .banner-action-btn {
    font-size: 14px;
    padding: 12px 24px;
  }

  .quick-categories-wrapper {
    padding: 0 0 30px;
  }
  .quick-categories {
    gap: 24px;
    padding: 0 0 8px;
  }
  .quick-category-item {
    width: 90px;
  }

  .category-icon-wrapper {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .category-label {
    font-size: 13px;
  }

  .quick-action-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 0 30px;
  }

  .action-card {
    padding: 24px 16px;
    gap: 14px;
  }

  .action-icon {
    font-size: 26px;
  }

  .action-title {
    font-size: 14px;
  }

  .section-header-wrapper {
    padding: 10px 0 16px;
  }

  .section-heading {
    font-size: 20px;
  }

  .featured-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 0 36px;
    overflow: visible;
  }

  .service-card {
    width: auto;
    flex: initial;
    flex-shrink: 1;
    min-height: 250px;
  }

  .service-img-wrapper {
    height: 155px;
  }

  .service-card-info {
    padding: 16px;
    gap: 6px;
  }

  .portfolio-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 0 40px;
    overflow: visible;
  }

  .portfolio-card {
    width: auto;
    flex: initial;
    flex-shrink: 1;
    min-height: 245px;
  }

  .portfolio-img-wrapper {
    height: 155px;
  }

  .portfolio-card-info {
    padding: 16px;
  }
}

/* =============================================
   GLOBAL WHITE BG — all inner page wrappers
   ============================================= */
.screen-content-area,
.home-tab-wrapper,
.services-tab-wrapper,
.portfolio-tab-wrapper,
.portfolio-detail-wrapper,
.profile-screen-wrapper,
.edit-profile-wrapper,
.support-screen-wrapper,
.detail-page-wrapper {
  background-color: #ffffff;
}
