/*
Theme Name: DoNirman
Theme URI: https://donirman.com
Author: Kusumit Pvt Ltd
Author URI: https://kusumit.com
Description: Official WordPress theme for DoNirman — India's construction marketplace. Part of the MyDoApp ecosystem by Kusumit Pvt Ltd.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
License URI: https://kusumit.com/licenses
Text Domain: donirman
Tags: construction, marketplace, india, business
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:        #4a7c1f;
  --green-mid:    #639922;
  --green-light:  #8ab84a;
  --green-pale:   #eef5e4;
  --green-xpale:  #f7faf2;
  --amber:        #ba7517;
  --amber-mid:    #d4891e;
  --amber-pale:   #fdf3e3;
  --concrete:     #e8e4dc;
  --concrete-mid: #c8c3b8;
  --concrete-dark:#8a8578;
  --ink:          #1c1f17;
  --ink-mid:      #3a3e30;
  --ink-soft:     #6a6e60;
  --ink-xsoft:    #9a9e90;
  --white:        #fafaf7;
  --card-bg:      #ffffff;
  --border:       #e0dbd2;
  --border-dark:  #c8c3b8;
  --verified:     #2e7d32;
  --shadow-sm:    0 1px 3px rgba(28,31,23,0.08);
  --shadow-md:    0 4px 16px rgba(28,31,23,0.10);
  --shadow-lg:    0 8px 32px rgba(28,31,23,0.12);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --font-display: 'Tiro Devanagari Hindi', serif;
  --font-body:    'DM Sans', sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.hindi {
  font-family: var(--font-display);
  font-weight: 400;
}

p { color: var(--ink-soft); line-height: 1.7; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-mid);
  color: #fff;
}
.btn-primary:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent;
  color: var(--green-mid);
  border: 1.5px solid var(--green-mid);
}
.btn-secondary:hover { background: var(--green-pale); }

.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-amber:hover { background: var(--amber-mid); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-verified { background: #e8f5e9; color: var(--verified); }
.badge-featured { background: var(--amber); color: #fff; }
.badge-pending  { background: #fff3e0; color: #e65100; }
.badge-green    { background: var(--green-pale); color: var(--green); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--concrete);
  color: var(--ink-mid);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .overline {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 560px; margin: 0 auto; font-size: 1rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.logo-do    { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.logo-nirman{ font-size: 22px; font-weight: 700; color: var(--green-mid); letter-spacing: -0.5px; }
.logo-hindi { font-family: var(--font-display); font-size: 13px; color: rgba(255,255,255,0.35); margin-left: 4px; }

#primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  display: block;
}
.nav-item a:hover,
.nav-item.current-menu-item a {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 22px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--ink);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--ink);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(99,153,34,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(186,117,23,0.10) 0%, transparent 60%);
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 20px;
}
.hero-overline::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--green-mid); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .val {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat .label {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  padding-bottom: 40px;
}

.hero-card-float {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-search-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.hsb-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.hsb-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hsb-input-wrap {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.hsb-input-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}
.hsb-input {
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  background: none;
  border: none;
  outline: none;
  width: 100%;
}
.hsb-input::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--green-pale);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
}
.trust-icon { font-size: 18px; color: var(--green-mid); }

/* ============================================================
   FEATURES / SERVICES SECTION
   ============================================================ */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
  cursor: pointer;
}
.feature-card:hover {
  border-color: var(--green-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { font-size: 13px; }
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-mid);
  margin-top: 12px;
}

/* ============================================================
   CONTRACTOR LISTING (HOMEPAGE PREVIEW)
   ============================================================ */
.contractor-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: all 0.2s;
  cursor: pointer;
}
.contractor-card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contractor-card.featured { border-color: var(--amber); }

.c-avatar {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.c-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.c-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.c-stats { display: flex; gap: 16px; margin-bottom: 8px; }
.c-stat .val { font-size: 13px; font-weight: 600; color: var(--ink); }
.c-stat .key { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }
.c-right { margin-left: auto; text-align: right; flex-shrink: 0; }
.c-rate { font-size: 17px; font-weight: 700; color: var(--ink); }
.c-rate-unit { font-size: 11px; color: var(--ink-soft); font-weight: 400; }

/* ============================================================
   COST ESTIMATOR SECTION
   ============================================================ */
.estimator-section {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.estimator-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(99,153,34,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.estimator-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.form-input, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--green-mid);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-select option { background: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.estimate-result {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  display: none;
}
.estimate-result.show { display: block; }
.est-amount { font-size: 2rem; font-weight: 700; color: var(--green); }
.est-label { font-size: 13px; color: var(--ink-soft); }
.est-breakdown { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.est-row { display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.est-row:last-child { border-bottom: none; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars { color: #f59e0b; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--ink-soft); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.t-name { font-size: 13px; font-weight: 600; }
.t-loc  { font-size: 11px; color: var(--ink-soft); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section { background: var(--green-pale); }
.stat-box { text-align: center; padding: 20px; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--green); line-height: 1; }
.stat-suffix { font-size: 1.5rem; color: var(--green-mid); }
.stat-name { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--green);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--green-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-ecosystem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.eco-logo { color: var(--green-mid); font-weight: 600; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--green-mid); }
.breadcrumb-sep { color: var(--concrete-mid); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  padding: 48px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.page-hero p { color: rgba(255,255,255,0.55); margin-top: 8px; }

/* ============================================================
   CONTRACTOR LISTING PAGE
   ============================================================ */
.listing-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.listing-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.listing-main { flex: 1; min-width: 0; }

.filter-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-mid);
  transition: background 0.12s;
}
.filter-option:hover { background: var(--green-pale); color: var(--green); }
.filter-option input[type=checkbox] { accent-color: var(--green-mid); }
.filter-count { margin-left: auto; font-size: 11px; color: var(--concrete-dark); }

.search-bar-strip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  margin-bottom: 16px;
}
.sbs-seg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex: 1;
  border-right: 1px solid var(--border);
}
.sbs-seg:last-of-type { border-right: none; }
.sbs-icon { color: var(--concrete-dark); font-size: 16px; }
.sbs-inner { flex: 1; }
.sbs-label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.sbs-input {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  width: 100%;
}
.sbs-input::placeholder { color: var(--concrete-mid); }

.chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 5px;
}
.chip:hover { border-color: var(--green-mid); color: var(--green); }
.chip.active { background: var(--green-pale); border-color: var(--green-mid); color: var(--green); font-weight: 500; }
.chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--verified); }

/* ============================================================
   CONTRACTOR PROFILE PAGE
   ============================================================ */
.profile-hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.profile-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.profile-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.profile-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0;
}
.ps-val { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.ps-key { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }

/* ============================================================
   MATERIALS PAGE
   ============================================================ */
.material-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}
.material-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.material-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--amber-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.material-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.material-price { font-size: 1.1rem; font-weight: 700; color: var(--amber); }
.material-unit  { font-size: 11px; color: var(--ink-soft); }
.material-change { font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.price-up   { background: #ffebee; color: #c62828; }
.price-down { background: #e8f5e9; color: var(--verified); }
.price-same { background: var(--concrete); color: var(--ink-soft); }

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.dash-metric {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.dash-metric-val { font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1; }
.dash-metric-label { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.dash-metric-delta { font-size: 12px; margin-top: 8px; }
.delta-up   { color: var(--verified); }
.delta-down { color: #c62828; }

.project-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.project-row:last-child { border-bottom: none; }
.project-name { font-size: 14px; font-weight: 500; flex: 1; }
.project-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-active   { background: #e8f5e9; color: var(--verified); }
.status-pending  { background: #fff3e0; color: #e65100; }
.status-complete { background: var(--green-pale); color: var(--green); }

.progress-bar { height: 6px; background: var(--concrete); border-radius: 20px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; background: var(--green-mid); border-radius: 20px; transition: width 0.6s ease; }

/* ============================================================
   NIRMAN GYAN (BLOG)
   ============================================================ */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.blog-thumb {
  background: var(--concrete);
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.blog-body { padding: 20px; }
.blog-category {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 8px;
}
.blog-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; }
.blog-meta { font-size: 11px; color: var(--concrete-dark); display: flex; gap: 12px; }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th {
  background: var(--ink);
  color: #fff;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.compare-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--green-xpale); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-green  { color: var(--green-mid); }
.text-amber  { color: var(--amber); }
.text-soft   { color: var(--ink-soft); }
.fw-600 { font-weight: 600; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden-mobile { }
@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.avail-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}
.avail-dot.green  { background: #4caf50; }
.avail-dot.amber  { background: #ff9800; }

/* ============================================================
   COMPARE BAR (sticky)
   ============================================================ */
.compare-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 2px solid var(--green-mid);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.compare-sticky.visible { transform: translateY(0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
