/* Local Fonts */
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/YekanBakh/YekanBakh-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/YekanBakh/YekanBakh-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'YekanBakh';
  src: url('fonts/YekanBakh/YekanBakh-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Color system based on the brief */
:root {
  --bg: #000000; /* normalized from #00000 */
  --accent-dark: #760002;
  --text: #a6996c; /* normalized from a6996c# */
  --detail: #597c1f; /* normalized from 597c1f# */
  --surface: #0e0e0e;
  --muted: #b6b6b6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(166,153,108,0.18), 0 10px 30px rgba(118,0,2,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'YekanBakh', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(118,0,2,0.25), transparent 60%), var(--bg);
  color: var(--text);
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--accent-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Prevent flex children from causing horizontal overflow */
.panel-layout, .content, .card, .grid { min-width: 0; }

/* Generic media containment to avoid accidental overflow from media */
img, video { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.55));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(166,153,108,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.logo { font-size: 1.4rem; }
.logo-img { height: 75px; width: auto; display: block; }
.brand-name { font-weight: 800; letter-spacing: 0.5px; color: var(--text); }

.nav { display: none; gap: 1rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}
.nav a:hover { color: var(--white); background: rgba(166,153,108,0.12); }

.cta.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-dark), #9b0a0a);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--glow);
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, rgba(118,0,2,0.08), rgba(0,0,0,0)); }
h1, h2, h3 { color: var(--white); margin: 0 0 14px; }
p { color: var(--muted); line-height: 1.9; }

/* Panel common elements */
.topbar { display:flex; align-items:center; justify-content:space-between; }
.topbar h1 { font-size: 1.6rem; line-height: 1.3; }
.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.menu a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); padding: 10px 12px; border-radius: 10px; }
.menu a:hover { background: rgba(166,153,108,0.12); color: var(--white); }
.menu a.active { background: rgba(166,153,108,0.18); color:#fff; }
.ra-plain-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ra-plain-table th, .ra-plain-table td { padding: 10px; border-bottom: 1px solid rgba(166,153,108,0.18); color: var(--muted); word-break: break-word; }
.table-scroll { overflow: auto; max-height: calc(100vh - 100px); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.list { padding: 0; margin: 0.4rem 0 0; list-style: none; }
.list li { padding: 0.3rem 0; color: var(--muted); }
.list.tight li { padding: 0.2rem 0; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(166,153,108,0.18);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.accent { border-color: rgba(89,124,31,0.35); }
.card.note { border-color: rgba(166,153,108,0.35); }

/* Hero */
.hero { padding-top: 92px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero-copy h1 { font-size: 2.2rem; line-height: 1.25; letter-spacing: -0.2px; }
.hero-copy h1 .grad { background: linear-gradient(90deg, #f6e3b4, #a6996c, #f6e3b4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(166,153,108,0.22);
  color: var(--white);
}
.btn.primary { background: linear-gradient(135deg, var(--accent-dark), #9b0a0a); border-color: transparent; }
.btn.secondary { background: linear-gradient(135deg, #2e2e2e, #1a1a1a); }
.btn.ghost { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-1px); }

.badge-icon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(166,153,108,0.12); color: var(--white); }
.badge-icon .material-symbols-outlined { font-size: 18px; }

.hero-visual { display: grid; place-items: center; }
.phone {
  width: 260px; height: 520px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px; padding: 10px; background: linear-gradient(180deg, #0a0a0a, #0f0f0f); box-shadow: var(--glow);
}
.screen { height: 100%; overflow: hidden; border-radius: 20px; padding: 12px; background: #0d0d0d; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 12px; margin: 8px 0; font-size: 0.9rem; opacity: 0; transform: translateY(6px); transition: 320ms ease; }
.bubble.bot { background: rgba(118,0,2,0.25); border: 1px solid rgba(118,0,2,0.45); }
.bubble.user { background: rgba(89,124,31,0.25); border: 1px solid rgba(89,124,31,0.45); margin-inline-start: auto; }
.bubble.show { opacity: 1; transform: translateY(0); }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
.feature { padding: 14px; border: 1px dashed rgba(166,153,108,0.25); border-radius: 12px; }
.feature h3 { margin-bottom: 6px; }

/* Chat demo */
.chat { background: #0b0b0b; border: 1px solid rgba(166,153,108,0.18); border-radius: 14px; padding: 12px; }
.msg { padding: 10px 12px; border-radius: 10px; margin: 8px 0; width: fit-content; max-width: 90%; opacity: 0; transform: translateY(6px); transition: 320ms ease; }
.msg.bot { background: rgba(118,0,2,0.2); border: 1px solid rgba(118,0,2,0.35); }
.msg.user { background: rgba(89,124,31,0.2); border: 1px solid rgba(89,124,31,0.35); margin-inline-start: auto; }
.msg.show { opacity: 1; transform: translateY(0); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.price-card { padding: 16px; border: 1px solid rgba(166,153,108,0.22); border-radius: 16px; background: #0b0b0b; box-shadow: var(--shadow); }
.price-card.highlighted { border-color: rgba(118,0,2,0.6); background: linear-gradient(180deg, rgba(118,0,2,0.15), #0b0b0b); }
.price { color: var(--white); font-weight: 800; margin-bottom: 10px; }
.price-card ul { margin: 0; padding-inline-start: 1rem; color: var(--muted); }
.price-card li { margin: 6px 0; }

/* Form */
form { margin-top: 10px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.95rem; }
input, textarea {
  background: #101010;
  border: 1px solid rgba(166,153,108,0.25);
  border-radius: 10px;
  color: var(--white);
  padding: 10px 12px;
}
select { background: #101010; border: 1px solid rgba(166,153,108,0.25); border-radius: 10px; color: var(--white); padding: 10px 12px; }
input:focus, textarea:focus { outline: none; border-color: var(--detail); box-shadow: 0 0 0 3px rgba(89,124,31,0.15); }
label.full { grid-column: 1 / -1; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid rgba(166,153,108,0.18); padding: 18px 0; background: #060606; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.to-top { color: var(--white); text-decoration: none; padding: 6px; border-radius: 8px; background: rgba(166,153,108,0.15); }

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed; bottom: 18px; left: 18px; z-index: 130; width: 52px; height: 52px;
  display: grid; place-items: center; color: var(--white); text-decoration: none;
  background: linear-gradient(135deg, #128c7e, #25d366);
  border-radius: 50%; box-shadow: var(--shadow);
}

/* Responsive */
@media (min-width: 800px) {
  .nav { display: flex; }
  .two-col { grid-template-columns: 1.2fr 0.8fr; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Extra mobile tweaks */
@media (max-width: 600px) {
  .logo-img { height: 48px; }
  /* Full-bleed header on mobile to avoid awkward side gaps */
  .site-header .container { width: 100%; }
  .site-header .header-inner { padding: 0.6rem 12px; }
  .cta.primary-cta { padding: 0.45rem 0.8rem; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
}

/* Panel layout: sidebar right with mobile drawer */
.panel-layout { display: flex; gap: 16px; flex-direction: row-reverse; }
.content { flex: 1 1 auto; }
.sidebar { width: 280px; background: #0b0b0b; border: 1px solid rgba(166,153,108,0.22); border-radius: 12px; padding: 12px; height: fit-content; }
.sidebar-toggle { display: none; }

@media (min-width: 900px) {
  .sidebar { position: sticky; top: 90px; }
  .panel-layout .sidebar { flex: 0 0 280px; align-self: flex-start; }
  .menu a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 900px) {
  .panel-layout { flex-direction: column; }
  /* Top sheet menu */
  .sidebar { position: fixed; top: 0; left: 0; right: 0; height: auto; max-height: 85dvh; overflow: auto; transform: translateY(-100%); transition: transform 300ms ease; z-index: 120; border-radius: 0; width: 100%; }
  .sidebar.is-open { transform: translateY(0); }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 110; }
  .sidebar-backdrop.show { display: block; }
  .sidebar-toggle { display: inline-flex; align-items: center; gap: 6px; }
  body { padding-bottom: 64px; }
}

/* Mobile tab bar on homepage */
.mobile-tabbar { display: none; position: fixed; bottom: 0; right: 0; left: 0; height: 58px; background: #0a0a0a; border-top: 1px solid rgba(166,153,108,0.22); z-index: 95; }
.mobile-tabbar .tabs { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-tabbar a { display: grid; place-items: center; text-decoration: none; color: var(--muted); font-size: 0.8rem; }
.mobile-tabbar a .material-symbols-outlined { font-size: 22px; }
.mobile-tabbar a.active { color: var(--white); }
@media (max-width: 800px) { 
  .mobile-tabbar { display: block; }
  /* Move WhatsApp button above tabbar */
  .floating-whatsapp { bottom: 76px; }
}

/* Welcome Hero Section */
.welcome-hero {
  padding-top: 92px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.welcome-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.welcome-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.welcome-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

.welcome-logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.welcome-brand-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #bc884b;
  margin: 0;
  letter-spacing: -0.5px;
}

.welcome-content {
  text-align: center;
  width: 100%;
}

.welcome-tagline {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 2px;
  margin-top: 0;
}

.welcome-description {
  margin-bottom: 32px;
}

.welcome-main-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.6;
}

.welcome-sub-text {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.welcome-brand-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #bc884b;
  margin-bottom: 16px;
}

.welcome-motto {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
}

.welcome-cta {
  margin-top: 40px;
}

.welcome-cta-text {
  font-size: 1.2rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-logo-inline {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Updated Phone Demo Colors */
.phone {
  width: 260px; 
  height: 520px; 
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px; 
  padding: 10px; 
  background: linear-gradient(180deg, #d8ae79, #c9a066);
  box-shadow: var(--glow);
}

.screen { 
  height: 100%; 
  overflow: hidden; 
  border-radius: 20px; 
  padding: 12px; 
  background: #d8ae79;
}

.bubble.bot { 
  background: #840104; 
  border: 1px solid #840104;
  color: var(--white);
}

.bubble.user { 
  background: #ffbd59; 
  border: 1px solid #ffbd59;
  color: #000;
}

/* Responsive adjustments for Welcome Section */
@media (min-width: 800px) {
  .welcome-container {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 64px;
  }
  
  .welcome-content {
    text-align: center;
  }
  
  .welcome-cta-text {
    justify-content: center;
  }
  
  .welcome-brand-name {
    font-size: 3.2rem;
  }
  
  .welcome-logo-img {
    width: 90px;
    height: 90px;
  }
  
  .welcome-tagline {
    font-size: 2rem;
  }
  
  .welcome-main-text {
    font-size: 1.8rem;
  }
  
  .welcome-sub-text {
    font-size: 1.4rem;
  }
  
  .welcome-brand-text {
    font-size: 1.5rem;
  }
  
  .welcome-motto {
    font-size: 1.6rem;
  }
  
  .welcome-cta-text {
    font-size: 1.35rem;
  }
  
  .chat-logo-inline {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .welcome-hero {
    padding-top: 60px;
  }
  
  .welcome-brand-name {
    font-size: 1.8rem;
  }
  
  .welcome-logo-img {
    width: 50px;
    height: 50px;
  }
  
  .welcome-tagline {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  
  .welcome-main-text {
    font-size: 1.1rem;
  }
  
  .welcome-sub-text {
    font-size: 0.95rem;
  }
  
  .welcome-brand-text {
    font-size: 1rem;
  }
  
  .welcome-motto {
    font-size: 1.1rem;
  }
  
  .welcome-cta-text {
    font-size: 1rem;
  }
  
  .chat-logo-inline {
    width: 40px;
    height: 40px;
  }
  
  .phone {
    width: 220px;
    height: 440px;
  }
}

/* AI Partner Section */
.ai-partner-section {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(118,0,2,0.08));
  border-top: 1px solid rgba(166,153,108,0.18);
}

.ai-partner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ai-partner-text {
  font-size: 2rem;
  font-weight: 700;
  color: #c69969;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.instagram-label {
  color: var(--muted);
  font-weight: 500;
}

.instagram-handle {
  color: #bc884b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.instagram-handle:hover {
  color: var(--white);
}

@media (min-width: 800px) {
  .ai-partner-text {
    font-size: 2.5rem;
  }
  
  .instagram-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .ai-partner-section {
    padding: 32px 0;
  }
  
  .ai-partner-text {
    font-size: 1.5rem;
  }
  
  .instagram-link {
    font-size: 1rem;
  }
}

