/* srilankadeals.com - Layout matching exact mockup design */
:root {
  --bg-canvas: #f4f6f8;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #10b981;
  
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;

  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-orange: #f59e0b;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-tld {
  color: var(--text-main);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d1fae5;
  color: #065f46;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(0.95); opacity: 1; }
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
}

/* Hero Section (Split 2-Column) */
.hero-section {
  padding: 44px 0 24px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.hero-left {
  padding-right: 12px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 620px;
}

/* Hero Integrated Search Bar */
.hero-search-bar {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
}

.hero-search-bar:focus-within {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.hero-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
}

.hero-search-bar input::placeholder {
  color: #9ca3af;
}

.btn-search {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-search:hover {
  background: var(--accent-green-hover);
}

/* Compact Lead Capture Card (Right Column) */
.compact-lead-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lead-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.lead-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 16px;
}

.compact-sub-form {
  display: flex;
  gap: 8px;
}

.compact-sub-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.88rem;
  outline: none;
  background: var(--bg-canvas);
  color: var(--text-main);
}

.compact-sub-form input:focus {
  border-color: var(--accent-green);
  background: #ffffff;
}

.btn-sub-icon {
  background: var(--accent-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-sub-icon:hover {
  background: var(--accent-green-hover);
}

.toast {
  padding: 8px 12px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 10px;
}

.toast.hidden {
  display: none;
}

/* Category Filter Pills Section */
.filter-section {
  padding: 12px 0 24px;
}

.filter-pills {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.pill-btn:hover {
  background: #f3f4f6;
  color: var(--text-main);
}

.pill-btn.active {
  background: #e5e7eb;
  color: var(--text-main);
  border-color: #d1d5db;
  font-weight: 700;
}

/* Deals Grid Section */
.deals-section {
  padding-bottom: 64px;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Deal Card (Matching Mockup Screenshot) */
.deal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 240px;
}

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

.deal-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.deal-logo-box {
  height: 32px;
  padding: 0 10px;
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-right: auto;
}

.discount-pill {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.discount-pill.blue-badge {
  background: #2563eb;
}

.discount-pill.green-badge {
  background: #059669;
}

.expiry-pill {
  background: #f3f4f6;
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
}

.deal-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}

.deal-card-seller {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.btn-view-deal {
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  display: block;
  width: 100%;
  transition: background 0.2s;
  margin-top: auto;
  border: none;
}

.btn-view-deal:hover {
  background: var(--accent-green-hover);
}

/* SME Callout Section */
.sme-callout-section {
  padding: 32px 0 64px;
}

.sme-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.badge-sme {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sme-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sme-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
}

/* SEO FAQ Section */
.seo-faq-section {
  padding: 48px 0 64px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.seo-text-block {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.seo-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.seo-text-block p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 10px;
}

.faq-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-canvas);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-split { grid-template-columns: 1fr; }
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-title { font-size: 1.8rem; }
  .deals-grid { grid-template-columns: 1fr; }
}
