/*
Theme Name: DigitalBoardWala
Theme URI: https://digitalboardwala.com
Author: DigitalBoardWala
Author URI: https://digitalboardwala.com
Description: A professional WordPress theme for DigitalBoardWala - Interactive Flat Panel solutions for smart classrooms.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digitalboardwala
*/

/* ===== CSS Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1e293b; line-height: 1.6; background: #ffffff; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Accessibility */
.screen-reader-text{
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;}
.skip-link:focus{
  position:fixed !important;top:14px;left:14px;width:auto;height:auto;padding:10px 12px;
  background:#fff;border:2px solid #2563eb;border-radius:12px;clip:auto;z-index:100000;
}

/* ===== Utility Classes ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: 0.5rem; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s; border: none; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #6d28d9); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; border: 2px solid #2563eb; color: #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-white { background: #fff; color: #2563eb; }
.btn-white:hover { background: #f0f4ff; }
.btn-block{ width:100%; justify-content:center; }
.mobile-only { display: none !important; }

/* ===== Typography ===== */
h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; color: #475569; }
.gradient-text { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== Top Bar ===== */
.top-bar { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #cbd5e1; padding: 0.5rem 0; font-size: 0.85rem; }
.topbar-inner { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.topbar-left { display:flex; gap:18px; flex-wrap:wrap; align-items:center; }
.topbar-link { color:#93c5fd; }
.topbar-link:hover { color:#fff; }
.top-bar-social { display: flex; gap: 1rem; }
.top-bar-social a { color:#93c5fd; }
.top-bar-social a:hover { color:#fff; }

/* ===== Navbar (Dynamic Desktop & Drawer System) ===== */
.navbar {
  background: #fff;
  border-bottom: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .25s ease, background .25s ease;
}
.navbar.is-scrolled { box-shadow: 0 12px 34px rgba(2,6,23,.12); }

.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: .75rem 0; }

/* Site Branding & Dynamic Logo */
.site-branding { display: flex; align-items: center; }
.site-branding img.custom-logo { max-height: 50px; width: auto; object-fit: contain; }

/* Fallback Logo */
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed); border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.logo-text { font-size: 1.5rem; font-weight: 800; }

/* Desktop Links (WP Default Classes) */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: .65rem .9rem; border-radius: 12px; font-weight: 600; color: #475569; position: relative; }

/* Classic underline */
.nav-links > li > a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: linear-gradient(135deg, #2563eb, #7c3aed); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-links > li > a:hover { background: #f8fafc; color: #0f172a; }
.nav-links > li > a:hover::after { transform: scaleX(1); }
.nav-links > li.current-menu-item > a { color: #2563eb; }
.nav-links > li.current-menu-item > a::after { transform: scaleX(1); }

/* Dropdown Sub-menu */
.dropdown-row { display: flex; align-items: center; gap: 8px; }
.dropdown-toggle { display: none; }

.nav-links .sub-menu {
  position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); border-radius: .75rem; padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; pointer-events: none; z-index: 999;
}
.nav-links .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.nav-links .sub-menu li { display: block; }
.nav-links .sub-menu a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; color: #475569; font-size: .9rem; }
.nav-links .sub-menu a:hover { background: #f0f4ff; color: #2563eb; }
.nav-cta { margin-left: 1rem; }

/* ===== Hero Section ===== */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%); color: #fff; padding: 6rem 0 4rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%); border-radius: 50%; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p { color: #94a3b8; font-size: 1.125rem; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat .label { font-size: 0.85rem; color: #94a3b8; }

/* ===== Cards ===== */
.card { background: #fff; border-radius: 1rem; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s; border: 1px solid #e2e8f0; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.card-icon { width: 60px; height: 60px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }
.card-icon.blue { background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #2563eb; }
.card-icon.green { background: linear-gradient(135deg, #d1fae5, #dbeafe); color: #059669; }
.card-icon.purple { background: linear-gradient(135deg, #ede9fe, #fce7f3); color: #7c3aed; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: #64748b; font-size: 0.95rem; }

/* ===== Grid Layouts ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== Section Styles ===== */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header .badge { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #2563eb; padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: #64748b; }

/* ===== Feature Section ===== */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-image { border-radius: 1rem; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.feature-content h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.feature-list { margin: 1.5rem 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; color: #475569; }
.feature-list li .check { color: #059669; font-weight: bold; flex-shrink: 0; }

/* ===== Spec Table ===== */
.spec-table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.spec-table thead { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff; }
.spec-table th { padding: 1rem 1.5rem; text-align: left; font-weight: 600; }
.spec-table td { padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.spec-table tbody tr:hover { background: #f8fafc; }
.spec-table tbody tr:last-child td { border-bottom: none; }

/* ===== Pricing Cards ===== */
.pricing-card { border-radius: 1rem; padding: 2.5rem; background: #fff; border: 2px solid #e2e8f0; transition: all 0.3s; position: relative; }
.pricing-card.recommended { border-color: #2563eb; box-shadow: 0 12px 40px rgba(37,99,235,0.15); transform: scale(1.05); }
.pricing-card.recommended::before { content: 'MOST POPULAR'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; padding: 0.35rem 1.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .feature-list li { font-size: 0.95rem; }

/* ===== CTA Section ===== */
.cta-section { background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff; padding: 5rem 0; text-align: center; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: #94a3b8; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Blog Cards ===== */
.blog-card { border-radius: 1rem; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; transition: all 0.3s; }
.blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-3px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-content { padding: 1.5rem; }
.blog-card .category { display: inline-block; background: #dbeafe; color: #2563eb; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card .meta { display: flex; gap: 1rem; color: #94a3b8; font-size: 0.8rem; margin-top: 1rem; }

/* ===== Contact Form ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #1e293b; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.875rem 1rem; border: 2px solid #e2e8f0; border-radius: 0.5rem; font-size: 1rem; transition: border-color 0.3s; background: #fff; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FAQ ===== */
.faq-item { border: 1px solid #e2e8f0; border-radius: 0.75rem; margin-bottom: 1rem; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; background: #fff; transition: background 0.3s; }
.faq-question:hover { background: #f8fafc; }
.faq-answer { padding: 0 1.5rem 1.25rem; color: #64748b; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question { background: #f0f4ff; color: #2563eb; }

/* ===== Footer ===== */
.footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer h4 { color: #fff; margin-bottom: 1.25rem; }
.footer a { color: #94a3b8; display: block; padding: 0.3rem 0; transition: color 0.3s; }
.footer a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: #1e293b; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: all 0.3s; }
.footer-social a:hover { background: #2563eb; color: #fff; }

/* ===== Page Header / Banner ===== */
.page-header { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 4rem 0; text-align: center; }
.page-header h1 { margin-bottom: 1rem; }
.page-header p { color: #94a3b8; max-width: 600px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; font-size: 0.9rem; color: #94a3b8; }
.breadcrumb a { color: #60a5fa; }

/* ===== Responsive (layout) ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-card.recommended { transform: scale(1); }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 0.25rem; align-items:flex-start; }
}

/* =========================================================
   FINAL: Drawer Nav (Mobile) - breakpoint 980px
   ========================================================= */
@media (max-width: 980px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .mobile-toggle.mobile-only { display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid rgba(2,6,23,.12); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 1.5rem; cursor: pointer; color: #1e293b; }

  body.nav-open { overflow: hidden; }
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(2,6,23,.55); opacity: 0; pointer-events: none; transition: opacity .22s ease; border: none; z-index: 10000; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }

  .drawer-head { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 4px 12px; border-bottom: 1px solid rgba(2,6,23,.08); margin-bottom: 10px; }
  .drawer-title { font-weight: 900; color: #0f172a; }
  .drawer-close { border: 1px solid rgba(2,6,23,.12); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }

  .nav-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(86vw, 360px); background: #fff; border-left: 1px solid rgba(2,6,23,.12); transform: translateX(110%); transition: transform .25s ease; z-index: 10001; padding: 14px; overflow: auto; display: block !important; }
  body.nav-open .nav-drawer { transform: translateX(0); }

  .nav-links { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-links > li { border: 1px solid rgba(2,6,23,.08); border-radius: 16px; padding: 10px; background: #fff; }
  .nav-links > li > a::after { display: none !important; }

  .dropdown-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(2,6,23,.12); background: #fff; border-radius: 12px; cursor: pointer; }
  .dropdown-row a { flex: 1; }

  .nav-links .sub-menu { position: static; min-width: 0; box-shadow: none; opacity: 1 !important; visibility: visible !important; transform: none !important; padding: 8px 0 0; display: none; }
  .menu-item-has-children.open .sub-menu { display: block; }
}

/* Back to top */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
.back-to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal animation */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}