/* ==========================================================================
   WhatsApp Direct Chat Landing Page - Stylesheet
   support.walinkpro.com (Allpanel777)
   ========================================================================== */

:root {
  --wa-green: #25D366;
  --wa-green-hover: #20bd5a;
  --wa-green-dark: #008069;
  --wa-green-light: #d9fdd3;
  --wa-dark-bg: #111b21;
  --wa-dark-surface: #0c1317;
  --wa-dark-border: #222e35;
  --wa-text-primary: #111b21;
  --wa-text-secondary: #54656f;
  --wa-text-footer-muted: #8696a0;
  --wa-text-footer-link: #e9edef;
  --wa-white: #ffffff;
  --wa-border-light: #e2e8f0;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  color: var(--wa-text-primary);
  background-color: var(--wa-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* ==========================================================================
   Header Navigation (Desktop & Mobile)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--wa-white);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 2-Bar Mobile Menu Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px 2px;
  z-index: 1001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn .bar {
  display: block;
  width: 24px;
  height: 2.2px;
  background-color: #111b21;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(4.1px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  transform: translateY(-4.1px) rotate(-45deg);
}

/* Main Nav Desktop Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--wa-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--wa-green-dark);
}

.external-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  margin-left: 2px;
}

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

.dropdown-toggle {
  font-size: 15px;
  font-weight: 500;
  color: var(--wa-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-toggle:hover {
  color: var(--wa-green-dark);
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.dropdown:hover .chevron-icon,
.dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: var(--wa-white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: #f5f6f6;
}

.dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wa-text-primary);
}

.dropdown-desc {
  font-size: 12px;
  color: var(--wa-text-secondary);
  margin-top: 2px;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  border: 1px solid #111b21;
  font-size: 14px;
  font-weight: 600;
  color: var(--wa-text-primary);
  background-color: transparent;
  transition: var(--transition);
}

.btn-login:hover {
  background-color: #f7f8fa;
}

.arrow-right-icon {
  width: 14px;
  height: 14px;
}

.btn-download-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  background-color: var(--wa-green);
  color: var(--wa-text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-download-header:hover {
  background-color: var(--wa-green-hover);
}

.download-icon {
  width: 16px;
  height: 16px;
}

.mobile-nav-drawer {
  display: none;
}

/* ==========================================================================
   Hero Section (Direct Chat Interface)
   ========================================================================== */

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  background-color: #ffffff;
}

.hero-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Profile Avatar */
.profile-avatar-wrapper {
  margin-bottom: 20px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.profile-avatar-link {
  text-decoration: none;
  display: inline-block;
  border-radius: 50%;
}

.profile-avatar-link:hover .profile-avatar {
  transform: scale(1.03);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile Name */
.profile-name-link {
  text-decoration: none;
  display: inline-block;
}

.profile-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--wa-text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 30px;
  transition: var(--transition);
}

.profile-name-link:hover .profile-name {
  color: var(--wa-green-dark);
}

/* Action Buttons Group */
.action-buttons-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.btn-action {
  width: 100%;
  max-width: 320px;
  height: 50px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-open-app {
  background-color: var(--wa-green);
  color: var(--wa-text-primary);
}

.btn-open-app:hover {
  background-color: var(--wa-green-hover);
  transform: translateY(-1px);
}

.btn-whatsapp-web {
  background-color: var(--wa-white);
  color: var(--wa-text-primary);
  border: 1.5px solid var(--wa-text-primary);
}

.btn-whatsapp-web:hover {
  background-color: #f7f8fa;
  transform: translateY(-1px);
}

/* Download Prompt */
.download-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--wa-text-primary);
}

.download-prompt-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.prompt-text {
  font-weight: 400;
  color: var(--wa-text-primary);
}

.download-link {
  font-weight: 700;
  color: var(--wa-text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.download-link:hover {
  color: var(--wa-green-dark);
}

/* ==========================================================================
   Dark Footer
   ========================================================================== */

.site-footer {
  background-color: var(--wa-dark-bg);
  color: var(--wa-text-footer-link);
  padding: 64px 24px 40px;
  border-top: 1px solid var(--wa-dark-border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Mobile top download button & divider (hidden on desktop) */
.footer-mobile-download-wrap,
.footer-mobile-divider,
.footer-mobile-social-bar {
  display: none;
}

/* Main Desktop Footer Grid (Brand + 2 Column Groups) */
.footer-nav-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 34px;
  height: 34px;
}

.footer-logo-text {
  font-size: 23px;
  font-weight: 700;
  color: var(--wa-white);
  letter-spacing: -0.4px;
}

.footer-download-btn-wrap {
  margin-top: 8px;
}

.btn-download-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 23px;
  background-color: var(--wa-green);
  color: var(--wa-text-primary);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-download-footer:hover {
  background-color: var(--wa-green-hover);
}

/* Nav Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--wa-text-footer-muted);
  text-transform: capitalize;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links li {
  display: flex;
  align-items: center;
}

.footer-links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--wa-text-footer-link);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: "•";
  color: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  line-height: 1;
  display: inline-block;
}

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

/* Divider */
.footer-divider {
  height: 1px;
  background-color: var(--wa-dark-border);
  margin-bottom: 32px;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-legal-group {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--wa-text-footer-muted);
}

.footer-copyright {
  color: var(--wa-text-footer-muted);
}

.footer-legal-link {
  color: var(--wa-text-footer-link);
  font-size: 13px;
  font-weight: 500;
}

.footer-legal-link:hover {
  text-decoration: underline;
  color: var(--wa-white);
}

/* Social Media Circles */
.footer-social-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-white);
  transition: var(--transition);
  background-color: transparent;
}

.threads-img-icon {
  width: 15px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.footer-mobile-social-bar .threads-img-icon {
  width: 17px;
  height: 19px;
}

.social-circle:hover {
  border-color: var(--wa-green);
  background-color: rgba(37, 211, 102, 0.1);
  color: var(--wa-green);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--wa-white);
  font-size: 13px;
  font-weight: 500;
  background-color: transparent;
  transition: var(--transition);
}

.lang-btn:hover {
  border-color: var(--wa-white);
}

.chevron-icon-sm {
  width: 14px;
  height: 14px;
}

.lang-menu {
  position: absolute;
  bottom: 110%;
  right: 0;
  min-width: 160px;
  background-color: var(--wa-dark-surface);
  border: 1px solid var(--wa-dark-border);
  border-radius: 10px;
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.lang-menu.show {
  display: flex;
}

.lang-option {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--wa-text-footer-link);
  border-radius: 6px;
  transition: var(--transition);
}

.lang-option:hover,
.lang-option.active {
  background-color: var(--wa-dark-border);
  color: var(--wa-green);
}

/* ==========================================================================
   Mobile Responsive Styles (Matching Mobile Screenshots 1 & 2)
   ========================================================================== */

@media (max-width: 860px) {
  /* Header in Mobile */
  .site-header {
    border-bottom: none;
  }

  .header-container {
    height: 68px;
    padding: 0 16px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .main-nav,
  .btn-login {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .btn-download-header {
    height: 44px;
    padding: 0 22px;
    font-size: 14.5px;
    border-radius: 22px;
  }

  /* Mobile Drawer Navigation */
  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--wa-white);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .mobile-nav-drawer.open {
    transform: translateX(0);
  }

  .mobile-nav-group {
    border-bottom: 1px solid var(--wa-border-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .mobile-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--wa-text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .mobile-nav-link {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--wa-text-primary);
  }

  .mobile-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 44px 16px 64px;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
  }

  .profile-name {
    font-size: 24px;
    margin-bottom: 28px;
  }

  .btn-action {
    max-width: 100%;
    height: 52px;
    border-radius: 26px;
  }

  /* Dark Footer in Mobile (Screenshot 1 & 2 Layout) */
  .site-footer {
    padding: 36px 20px 40px;
    overflow: hidden;
  }

  /* 1. Centered Green Download Button at Top of Footer */
  .footer-mobile-download-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .btn-download-footer-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 290px;
    height: 50px;
    border-radius: 25px;
    background-color: var(--wa-green);
    color: var(--wa-text-primary);
    font-size: 15px;
    font-weight: 600;
  }

  /* 2. Divider & 5 Centered Social Media Circles */
  .footer-mobile-divider {
    display: block;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin: 18px -20px;
    width: calc(100% + 40px);
  }

  .footer-mobile-social-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
  }

  .footer-mobile-social-bar .footer-social-group {
    justify-content: center;
    gap: 14px;
  }

  .footer-mobile-social-bar .social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.2px solid rgba(255, 255, 255, 0.7);
  }

  /* 3. Footer Nav 2-Column Grid */
  .footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    margin-bottom: 16px;
  }

  .footer-brand-col .footer-download-btn-wrap {
    display: none;
  }

  .footer-logo-text {
    font-size: 24px;
    font-weight: 700;
  }

  .footer-col-group {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
  }

  .footer-heading {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--wa-text-footer-muted);
    margin-bottom: 18px;
    letter-spacing: 0.2px;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .footer-links li {
    display: flex;
    align-items: center;
  }

  .footer-links a {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--wa-white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .footer-links a::before {
    content: "•";
    color: rgba(255, 255, 255, 0.22);
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    width: auto;
    opacity: 1;
    margin-right: 2px;
  }

  .footer-divider,
  .footer-social-desktop {
    display: none;
  }

  /* 4. Bottom bar mobile */
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 28px;
  }

  .footer-legal-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--wa-white);
  }

  .footer-legal-link,
  .footer-copyright {
    color: var(--wa-white);
    font-size: 14.5px;
    font-weight: 500;
  }

  .footer-legal-link:hover {
    text-decoration: underline;
  }

  /* Language Selector Pill Button */
  .footer-lang-group {
    width: 100%;
    margin-top: 8px;
  }

  .lang-dropdown {
    width: 100%;
  }

  .lang-btn {
    width: 220px;
    height: 52px;
    border: 2px solid #ffffff;
    border-radius: 26px;
    background-color: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    cursor: pointer;
  }

  .chevron-icon-sm {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
  }
}
