/* =========================================================
   PDF Tools Pro — main.css
   Minimal design system using Inter font
   ========================================================= */

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  rgba(37,99,235,0.10);
  --accent-border: rgba(37,99,235,0.25);

  --bg:            #0a0a0a;
  --bg-2:          #111111;
  --bg-3:          #161616;
  --bg-card:       #141414;
  --bg-card-hover: #1a1a1a;

  --border:        #222222;
  --border-light:  #2a2a2a;

  --text:          #ededed;
  --text-2:        #a0a0a0;
  --text-3:        #666666;

  --white:         #ffffff;
  --danger:        #ef4444;
  --success:       #22c55e;
  --warning:       #f59e0b;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow:     0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.6);

  --font:       'Inter', system-ui, sans-serif;
  --transition: .18s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-2); line-height: 1.7; }
small { font-size: .8rem; color: var(--text-3); }

/* ── CONTAINER ── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; }
.container-xs { max-width: 640px; }

/* ── HEADER / NAV ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 62px;
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
#site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--white);
  flex-shrink: 0;
}
.site-logo img   { height: 32px; width: auto; }
.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: #fff;
}

/* Primary nav */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
#primary-nav .menu { display: flex; align-items: center; gap: 2px; }
#primary-nav .menu li { position: relative; }
#primary-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
#primary-nav .nav-link:hover,
#primary-nav .nav-link.active {
  color: var(--white);
  background: var(--bg-3);
}
.nav-chevron { font-size: .6rem; opacity: .6; }

/* Dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 300;
}
.has-dropdown:hover .sub-menu,
.has-dropdown:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu .nav-link { padding: 8px 12px; font-size: .83rem; border-radius: var(--radius-sm); display: block; }
.sub-menu .nav-link:hover { background: var(--bg-3); color: var(--white); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  background: var(--bg-2);
  z-index: 190;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav .menu { flex-direction: column; gap: 0; }
.mobile-nav .nav-link { padding: 12px 8px; font-size: .95rem; border-bottom: 1px solid var(--border); border-radius: 0; }
.mobile-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform .12s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(.98); }

.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-outline   { background: transparent; color: var(--text); border-color: var(--border-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost     { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-3); color: var(--white); }

.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-sm  { padding: 7px 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl  { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* ── HERO ── */
.site-hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: #60a5fa;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge::before { content: '●'; font-size: .45rem; }
.site-hero h1 { margin-bottom: 18px; }
.site-hero h1 em { font-style: normal; color: var(--accent); }
.site-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
}
.hero-stat span { font-size: .78rem; color: var(--text-3); margin-top: 2px; display: block; }

/* ── SECTION HEADERS ── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p  { font-size: .95rem; max-width: 500px; margin: 0 auto; }

/* ── TOOL CARDS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.tool-card:hover { border-color: var(--accent-border); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card:hover::before { opacity: 1; }

.tool-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.tool-card h3 { font-size: .95rem; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.tool-card p  { font-size: .82rem; line-height: 1.55; margin: 0; flex: 1; }
.tool-arrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--transition);
}
.tool-card:hover .tool-arrow { gap: 10px; }
.tool-arrow::after { content: '→'; }

/* ── TOOL TOOL PAGE ── */
.tool-page-wrap { padding: 48px 0 80px; }
.tool-page-header { margin-bottom: 36px; }
.tool-page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.tool-page-header p  { font-size: .95rem; }

/* Upload Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.drop-zone.dragover { border-color: var(--accent); background: var(--accent-light); }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-zone-icon { font-size: 2.5rem; margin-bottom: 16px; }
.drop-zone h3   { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.drop-zone p    { font-size: .85rem; }
.drop-zone .drop-btn { margin-top: 20px; position: relative; z-index: 1; pointer-events: none; }

/* File list */
.file-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
}
.file-item-icon { font-size: 1.2rem; flex-shrink: 0; }
.file-item-name { flex: 1; font-weight: 500; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { color: var(--text-3); font-size: .75rem; flex-shrink: 0; }
.file-item-remove { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1rem; padding: 4px; border-radius: 4px; transition: color var(--transition); }
.file-item-remove:hover { color: var(--danger); }

/* Progress */
.progress-wrap { margin-top: 20px; }
.progress-bar-outer {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  width: 0%;
  transition: width .3s ease;
}
.progress-label { font-size: .78rem; color: var(--text-2); margin-top: 8px; }

/* Tool action area */
.tool-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tool-output   { margin-top: 28px; }
.output-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.preview-pages { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-page-thumb {
  width: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-3);
}
.preview-page-thumb canvas { width: 100%; display: block; }
.preview-page-thumb span  { font-size: .7rem; color: var(--text-3); text-align: center; padding: 4px 0; display: block; }

/* Alert / Toast */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.5;
}
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #4ade80; }
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.alert-info    { background: var(--accent-light); border: 1px solid var(--accent-border); color: #93c5fd; }

/* Toast notification */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: .85rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: slideIn .2s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Canvas signature pad */
#signature-pad {
  width: 100%;
  height: 200px;
  background: #fff;
  border-radius: var(--radius);
  cursor: crosshair;
  display: block;
}

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .82rem; font-weight: 500; color: var(--text); margin-bottom: 7px; }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .875rem;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-select option { background: var(--bg-2); }
.form-hint { font-size: .75rem; color: var(--text-3); margin-top: 5px; }
.form-error-msg { font-size: .75rem; color: var(--danger); margin-top: 5px; }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 18px 24px; border-top: 1px solid var(--border); background: var(--bg-3); }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}
.tab-btn.active, .tab-btn:hover { color: var(--white); }
.tab-btn.active { border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FAQ ACCORDION ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 500;
  padding: 18px 4px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}
.faq-btn:hover { color: var(--white); }
.faq-chevron { font-size: .75rem; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding: 0 4px; font-size: .875rem; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }

/* ── BLOG ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform .2s;
}
.post-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-3); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-body { padding: 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--text-3); margin-bottom: 10px; }
.post-meta .cat { color: var(--accent); font-weight: 600; }
.post-card h3 { font-size: .95rem; margin-bottom: 8px; color: var(--white); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card p  { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.read-more { font-size: .8rem; font-weight: 600; color: var(--accent); }

/* Single post */
.single-post-header { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.single-post-header h1 { margin-bottom: 16px; }
.post-content { font-size: .95rem; line-height: 1.8; color: var(--text-2); }
.post-content h2 { margin: 32px 0 14px; font-size: 1.4rem; }
.post-content h3 { margin: 24px 0 10px; }
.post-content p  { margin-bottom: 18px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; background: var(--bg-card); margin: 24px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.post-content code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: .85em; color: #60a5fa; }
.post-content pre { background: var(--bg-3); padding: 20px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 20px; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.post-content th { background: var(--bg-3); padding: 10px 14px; font-size: .85rem; text-align: left; border: 1px solid var(--border); }
.post-content td { padding: 10px 14px; font-size: .85rem; border: 1px solid var(--border); }

/* ── BREADCRUMBS ── */
.breadcrumbs { padding: 14px 0; font-size: .78rem; color: var(--text-3); }
.breadcrumbs ol { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; }
.breadcrumbs a { color: var(--text-2); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }

/* ── PAGE SECTIONS ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* Why section */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.why-icon { font-size: 1.4rem; margin-bottom: 12px; display: block; }
.why-card h3 { font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.why-card p  { font-size: .82rem; }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.features-visual { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; text-align: center; font-size: 4rem; }
.features-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-check {
  width: 28px; height: 28px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 { font-size: .9rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.feature-item p  { font-size: .82rem; }

/* ── EMI CALCULATOR ── */
.emi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.emi-result-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }
.emi-result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.emi-result-card .value { font-size: 1.3rem; font-weight: 700; color: var(--white); letter-spacing: -.02em; }
.emi-result-card .label { font-size: .75rem; color: var(--text-3); margin-top: 4px; }
.emi-schedule { margin-top: 28px; overflow-x: auto; }
.emi-schedule table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.emi-schedule th { background: var(--bg-3); padding: 10px 12px; text-align: right; color: var(--text-2); font-weight: 500; border: 1px solid var(--border); }
.emi-schedule th:first-child { text-align: left; }
.emi-schedule td { padding: 9px 12px; text-align: right; border: 1px solid var(--border); color: var(--text-2); }
.emi-schedule td:first-child { text-align: left; color: var(--text); }
.emi-schedule tr:hover td { background: var(--bg-3); }

/* ── ABOUT / CONTACT PAGES ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; }
.team-avatar { width: 72px; height: 72px; background: var(--accent-light); border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.team-card h4 { font-size: .9rem; font-weight: 600; color: var(--white); }
.team-card p  { font-size: .78rem; margin-top: 4px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; background: var(--accent-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: .85rem; font-weight: 600; color: var(--white); }
.contact-info-item p  { font-size: .82rem; margin-top: 2px; }

/* ── FOOTER ── */
#site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: .84rem; margin: 14px 0 18px; line-height: 1.65; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: border-color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent-light); }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .84rem; color: var(--text-2); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: var(--text-3);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: var(--text-3); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text); }
.footer-badge { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .75rem; }
.footer-badge::before { content: '🔒'; }

/* ── SIDEBAR ── */
.with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 80px; }
.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 16px; }
.widget-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.widget ul li a { font-size: .85rem; color: var(--text-2); padding: 6px 0; display: block; border-bottom: 1px solid var(--border); transition: color var(--transition); }
.widget ul li:last-child a { border-bottom: none; }
.widget ul li a:hover { color: var(--accent); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-numbers {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  padding: 0 10px;
}
.page-numbers:hover, .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── SEARCH ── */
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  padding: 10px 42px 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1rem; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.hidden { display: none !important; }
.flex    { display: flex; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .emi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #primary-nav { display: none; }
  .hamburger { display: flex; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .emi-result-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .tools-grid { grid-template-columns: 1fr; }
}
