/* ═══════════════════════════════════════════════════
   Ottappalam.com — Clean Design System
   Font: Inter only. No display fonts.
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #eef2ff;
  --primary-glow:   rgba(79,70,229,.12);
  --success:        #10b981;
  --wa-green:       #25D366;
  --accent:         #f59e0b;

  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --border:         #e5e7eb;
  --bg-page:        #f9fafb;
  --bg-card:        #ffffff;
  --bg-subtle:      #f3f4f6;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10);

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0;
}
a { color: var(--primary); }
img { max-width: 100%; }

/* ── Navbar ─────────────────────────────────────── */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
}
.site-navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-brand-custom {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.brand-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.navbar-search { flex: 1; max-width: 380px; }
.navbar-search .input-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  transition: border-color .15s, box-shadow .15s;
}
.navbar-search .input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #fff;
}
.navbar-search input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: .875rem;
  font-family: var(--font);
  color: var(--text-primary);
  flex: 1;
  outline: none;
}
.navbar-search input::placeholder { color: var(--text-muted); }
.navbar-search .search-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 14px;
  cursor: pointer;
  font-size: .875rem;
  transition: background .15s;
}
.navbar-search .search-btn:hover { background: var(--primary-dark); }
.navbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-login-btn {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-login-btn:hover { background: var(--bg-subtle); color: var(--primary); }
.nav-cta-btn {
  font-size: .875rem;
  font-weight: 600;
  background: var(--primary);
  color: white !important;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background .15s;
}
.nav-cta-btn:hover { background: var(--primary-dark); }
.nav-user-btn {
  display: flex; align-items: center; gap: 7px;
  font-size: .875rem; font-weight: 500;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 5px 10px 5px 5px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
}
.nav-avatar {
  width: 27px; height: 27px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .68rem; font-weight: 700;
}
.mobile-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
}
.mobile-search-bar .input-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
}
.mobile-search-bar input {
  border: none; background: transparent;
  font-size: .875rem; font-family: var(--font);
  padding: 8px 12px; flex: 1; outline: none;
}
.mobile-search-bar button {
  background: var(--primary); border: none; color: white; padding: 0 14px; cursor: pointer;
}
@media (max-width: 768px) {
  .navbar-search { display: none; }
  .nav-cta-btn span { display: none; }
  .nav-cta-btn { padding: 7px 10px; }
}

/* ── Container ──────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── Hero ───────────────────────────────────────── */
.hero-section {
  background: linear-gradient(160deg, #1e1b4b 0%, #3730a3 60%, #4f46e5 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--bg-page);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: .75rem; font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.hero-title .highlight {
  color: #fbbf24;
}
.hero-subtitle {
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 5px;
  display: flex;
  gap: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-search-box input {
  border: none;
  flex: 1;
  padding: 10px 14px;
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
}
.hero-search-box input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .875rem;
  font-family: var(--font);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-dark); }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.hero-stat-label {
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  font-weight: 500;
  margin-top: 1px;
}

/* ── Section ────────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-top: 6px;
}
.section-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.section-link:hover { color: var(--primary-dark); }

/* ── Category Cards ─────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.category-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.category-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-icon-wrap {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all .15s;
}
.category-card:hover .category-icon-wrap { background: var(--primary); }
.category-icon-wrap i { color: var(--primary); font-size: 1.15rem; }
.category-card:hover .category-icon-wrap i { color: #fff; }
.category-name { font-size: .78rem; font-weight: 600; }
.category-count { font-size: .68rem; color: var(--text-muted); }

/* ── Business Card ──────────────────────────────── */
.biz-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .18s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.biz-card:hover {
  border-color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.biz-card-img {
  width: 100%; height: 160px;
  overflow: hidden;
  background: #e0e7ff;
  flex-shrink: 0;
}
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; }
.biz-card-img-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.biz-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
}
.biz-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.biz-card-name {
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 5px;
  margin: 0; color: var(--text-primary);
}
.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  background: var(--success);
  border-radius: 50%;
  color: white; font-size: .52rem;
  flex-shrink: 0;
}
.biz-card-meta {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.biz-card-cat {
  font-size: .7rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px; border-radius: 50px;
  font-weight: 500;
  display: inline-block;
}
.biz-card-desc { font-size: .78rem; color: var(--text-secondary); flex: 1; line-height: 1.5; }
.biz-card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.biz-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: .76rem; font-weight: 600;
  font-family: var(--font);
  border: none; cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none;
}
.biz-btn-view {
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid #c7d2fe;
}
.biz-btn-view:hover { background: var(--primary); color: white; border-color: var(--primary); }
.biz-btn-call { background: var(--primary); color: white; }
.biz-btn-call:hover { background: var(--primary-dark); }
.biz-btn-wa { background: var(--wa-green); color: white; flex: 0 0 auto; padding: 7px 10px; }
.biz-btn-wa:hover { background: #1da851; }

/* ── CTA Section ────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #1e1b4b 0%, #4f46e5 100%);
  padding: 64px 0;
}
.cta-title {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.cta-sub { color: rgba(255,255,255,.6); margin-bottom: 28px; font-size: .9rem; }
.cta-btn-primary {
  background: var(--accent); color: #111827;
  border: none; padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 700; font-size: .875rem; font-family: var(--font);
  cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.cta-btn-primary:hover { background: #e8920e; color: #111827; }
.cta-btn-outline {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 10px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: .875rem; font-family: var(--font);
  cursor: pointer; transition: all .15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
}
.cta-btn-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }

/* ── OTP Lead Modal ─────────────────────────────── */
#leadModal { display: none; position: fixed; inset: 0; z-index: 9999; }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 52px 0 28px;
}
.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.footer-tagline { font-size: .82rem; margin-bottom: 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid #374151;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; text-decoration: none;
  font-size: .85rem;
  transition: all .15s;
}
.footer-social a:hover { border-color: var(--primary); color: #fff; background: var(--primary); }
.footer-heading {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #f9fafb; margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #6b7280; text-decoration: none; font-size: .82rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .78rem;
}

/* ── WhatsApp Float ─────────────────────────────── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px;
  width: 52px; height: 52px;
  background: var(--wa-green); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  text-decoration: none; z-index: 999;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: white; }

/* ── Flash Alert ────────────────────────────────── */
.alert-custom { border-radius: var(--radius); padding: 11px 16px; font-size: .84rem; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 44px 0 40px; }
  .hero-search-box { flex-direction: column; gap: 6px; }
  .hero-search-box input { border-radius: var(--radius-sm); }
  .hero-search-btn { border-radius: var(--radius-sm); justify-content: center; }
  .hero-stats { gap: 20px; }
  .section { padding: 40px 0; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.1rem; }
}
