/* ========================================
   ANTLARA DENTAL AFFILIATE PROGRAM - STYLES
   ======================================== */

/* Font Face */
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/outfit.woff2') format('woff2');
  font-display: swap;
}

/* ========================================
   ROOT & TYPOGRAPHY
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #fff;
  color: #1a1a2e;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  color: #1a1a2e;
}

h3 {
  font-size: 20px;
  color: #1a1a2e;
}

h4 {
  font-size: 14px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

p {
  color: #666;
}

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

/* ========================================
   LAYOUT - CONTAINER & SECTIONS
   ======================================== */

.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 80px 0;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 150px;
  height: 35px;
  object-fit: contain;
}

.ad-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 14px;
  font-weight: 500;
  color: #666;
}

.ad-nav a {
  color: #666;
  transition: color 0.3s ease;
}

.ad-nav a:hover {
  color: #00BAB2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.mobile-menu-drawer.active {
  display: flex;
}

.mobile-menu-drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f1f1;
  flex-shrink: 0;
}

.mobile-menu-logo {
  width: 120px;
  height: 35px;
}

.mobile-menu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.close-menu-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.close-menu-btn:hover {
  color: #00BAB2;
}

.close-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-menu-body {
  flex: 1;
  padding: 1.5rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  padding: 1rem 0;
  color: #666;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav a:first-child {
  padding-top: 0;
}

.mobile-nav a:hover {
  color: #00BAB2;
}

.mobile-menu-footer {
  border-top: 1px solid #f1f1f1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.mobile-menu-btn-group {
  display: flex;
  gap: 0.75rem;
}

.mobile-menu-btn-group .ad-btn {
  flex: 1;
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 14px;
}

.mobile-lang-select {
  width: 100%;
  background-color: #fff;
  color: #666;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23666%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2.5rem;
  outline: none;
}

.lang-select {
  background-color: #fff;
  color: #666;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27%23666%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.lang-select:hover {
  border-color: #00BAB2;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: #00BAB2;
}

/* Responsive: Show nav + actions on desktop */
@media (min-width: 1024px) {
  .ad-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

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

  .mobile-menu-drawer {
    display: none !important;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background-color: #F8FAFC;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5rem;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.hero-content .hero-title-accent {
  font-size: 36px;
  font-weight: 700;
  color: #00BAB2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: #666;
  margin-bottom: 2rem;
  max-width: 400px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 14px;
  height: 14px;
  stroke: #22c55e;
}

.benefit-item span {
  color: #444;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.hero-image-container {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-card {
  position: absolute;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-card.rewards {
  top: -1rem;
  left: -1rem;
}

.stats-card.referrals {
  bottom: -1rem;
  right: -1rem;
}

.stats-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stats-icon.rewards {
  background-color: #00BAB2;
}

.stats-icon.referrals {
  background-color: #E8F4FF;
}

.stats-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.stats-icon.rewards svg {
  stroke: #fff;
}

.stats-icon.referrals svg {
  stroke: #00BAB2;
}

.stats-text p:first-child {
  font-size: 12px;
  color: #888;
  margin: 0 0 0.25rem 0;
}

.stats-text p:last-child {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.ad-btn {
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.ad-btn--primary {
  background-color: #00BAB2;
  color: #fff;
}

.ad-btn--primary:hover {
  background-color: rgba(0, 186, 178, 0.9);
}

.ad-btn--primary.with-shadow {
  box-shadow: 0 8px 24px rgba(0, 186, 178, 0.3);
}

.ad-btn--outline {
  background-color: transparent;
  color: #00BAB2;
  border: 2px solid #00BAB2;
  padding: 10px 20px;
  font-size: 14px;
}

.ad-btn--outline:hover {
  background-color: rgba(0, 186, 178, 0.05);
}

/* ========================================
   STEPS / HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
  background-color: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  background-color: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 1rem;
  padding: 2rem;
  transition: box-shadow 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-icon.step-1 {
  background-color: #FFF4E5;
}

.step-icon.step-1 svg {
  stroke: #FF9F43;
}

.step-icon.step-2 {
  background-color: #E8F4FF;
}

.step-icon.step-2 svg {
  stroke: #00BAB2;
}

.step-icon.step-3 {
  background-color: #E5FFF4;
}

.step-icon.step-3 svg {
  stroke: #28C76F;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  line-height: 1.6;
}

/* ========================================
   MEMBERSHIP TIERS SECTION
   ======================================== */

.membership-tiers {
  background-color: #F8FAFC;
}

.tiers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tiers-header h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.tiers-header .subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.tiers-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tier-card {
  background-color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}

.tier-left-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

.tier-header {
  flex: 0 0 200px;
  text-align: center;
}

.tier-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.tier-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
}

.tier-level {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.tier-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.tier-content {
  flex: 1;
  min-width: 300px;
}

.tier-section {
  margin-bottom: 1.5rem;
}

.tier-section h4 {
  margin-bottom: 1rem;
}

.tier-list {
  --level-color: #666;
  list-style: none;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.tier-list li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.tier-list li > div {
  flex: 1;
  min-width: 0;
}

.tier-list span {
  font-weight: bold;
  flex-shrink: 0;
  color: var(--level-color);
}

.tier-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #F8FAFC;
  border-radius: 0.75rem;
}

.tier-note h4 {
  margin-bottom: 0.5rem;
  text-transform: none;
  color: #1a1a2e;
}

.tier-note p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   COMMUNITY / CTA SECTION
   ======================================== */

.community {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.wave-background {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

.wave-background svg {
  width: 100%;
  height: 200px;
  display: block;
}

.community-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.avatar-strip {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

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

.avatar.sm {
  width: 50px;
  height: 50px;
  margin-top: 1.25rem;
}

.avatar.md {
  width: 65px;
  height: 65px;
}

.avatar.lg {
  width: 70px;
  height: 70px;
}

.community-cta {
  text-align: center;
}

.community-cta h2 {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.3;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: #1E293B;
  color: #fff;
  padding: 4rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col img {
  width: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
  display: block;
}

.footer-col p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fff;
}

.social-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2D3A4F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #00BAB2;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.ad-text-center {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 4rem;
}

.breadcrumb-link {
  display: inline-block;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

@media (max-width: 1023px) {
  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 28px;
  }

  .hero-inner {
    gap: 3rem;
  }

  .tier-card {
    gap: 1.5rem;
    flex-direction: column;
  }

  .tier-header {
    flex: 100%;
  }

  .tier-content {
    flex: 100%;
  }
}

@media (max-width: 640px) {
  section {
    padding: 40px 0;
  }

  .ad-container {
    padding: 0 1rem;
  }

  h2 {
    font-size: 24px;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .hero-inner {
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero-content,
  .hero-image {
    flex: 100%;
  }

  .avatar-strip {
    gap: 1rem;
  }

  .avatar.sm {
    margin-top: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tiers-list {
    gap: 1.5rem;
  }

  .tier-card {
    padding: 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }
}