/* ============================================
   BridgeIT — Visual System
   Palette: Deep Teal + Warm Amber on Stone neutrals
   Font:    Plus Jakarta Sans (display + body)
   ============================================ */

:root {
  /* Brand */
  --bi-primary:       #0F766E;  /* teal-700 — trust, calm, academic */
  --bi-primary-dark:  #115E59;  /* teal-800 */
  --bi-primary-soft:  #CCFBF1;  /* teal-100 */
  --bi-accent:        #D97706;  /* amber-600 — warmth, CTAs */
  --bi-accent-dark:   #B45309;  /* amber-700 */
  --bi-accent-soft:   #FEF3C7;  /* amber-100 */

  /* Neutrals (stone family — warmer than slate) */
  --bi-ink:           #1C1917;  /* stone-900 */
  --bi-ink-soft:      #44403C;  /* stone-700 */
  --bi-muted:         #78716C;  /* stone-500 */
  --bi-line:          #E7E5E4;  /* stone-200 */
  --bi-surface:       #FAFAF9;  /* stone-50 */
  --bi-card:          #FFFFFF;

  /* Status */
  --bi-success:       #15803D;
  --bi-warning:       #B45309;
  --bi-danger:        #B91C1C;
  --bi-info:          #0E7490;

  --bi-radius:        12px;
  --bi-radius-lg:     16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bi-surface);
  color: var(--bi-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bi-ink);
}
h1 { font-weight: 800; letter-spacing: -0.035em; }

p { color: var(--bi-ink-soft); line-height: 1.65; }
.text-muted { color: var(--bi-muted) !important; }

a { color: var(--bi-primary); text-decoration: none; }
a:hover { color: var(--bi-primary-dark); }

/* ==== NAVBAR ==== */
.navbar {
  background: rgba(250, 250, 249, 0.85) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--bi-line);
  padding: .85rem 0;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--bi-ink) !important;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: .5rem;
}
.navbar-brand i {
  color: var(--bi-primary);
  font-size: 1.5rem;
}
.navbar .nav-link {
  color: var(--bi-ink-soft) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .9rem !important;
  border-radius: 8px;
  transition: all .15s ease;
}
.navbar .nav-link:hover { color: var(--bi-primary) !important; background: var(--bi-primary-soft); }
.navbar .nav-link.text-danger:hover { background: #FEF2F2; }

/* ==== BUTTONS ==== */
.btn {
  font-weight: 600;
  font-size: .95rem;
  border-radius: 10px;
  padding: .6rem 1.25rem;
  transition: all .15s ease;
  border-width: 1.5px;
  letter-spacing: -0.005em;
}
.btn-lg { padding: .85rem 1.75rem; font-size: 1.025rem; }
.btn-sm { padding: .35rem .75rem; font-size: .82rem; border-radius: 8px; }

.btn-primary {
  background: var(--bi-primary);
  border-color: var(--bi-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--bi-primary-dark);
  border-color: var(--bi-primary-dark);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(15, 118, 110, .35);
}
.btn-outline-primary {
  color: var(--bi-primary);
  border-color: var(--bi-primary);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--bi-primary);
  border-color: var(--bi-primary);
  color: #fff;
}

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

.btn-success { background: var(--bi-success); border-color: var(--bi-success); }
.btn-success:hover { background: #166534; border-color: #166534; }
.btn-danger { background: var(--bi-danger); border-color: var(--bi-danger); }
.btn-warning { background: var(--bi-warning); border-color: var(--bi-warning); color: #fff; }
.btn-warning:hover { color: #fff; }

.btn-outline-secondary {
  color: var(--bi-ink-soft);
  border-color: var(--bi-line);
  background: var(--bi-card);
}
.btn-outline-secondary:hover { background: var(--bi-surface); color: var(--bi-ink); border-color: var(--bi-muted); }

/* ==== CARDS ==== */
.card {
  border: 1px solid var(--bi-line);
  border-radius: var(--bi-radius-lg);
  background: var(--bi-card);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: 0 10px 30px -10px rgba(28, 25, 23, 0.12);
  border-color: #d6d3d1;
}

/* ==== HERO ==== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(217, 119, 6, .18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(17, 94, 89, .35) 0%, transparent 55%),
    linear-gradient(180deg, #134E4A 0%, #115E59 100%);
  color: #f5f5f4;
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bi-line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fafaf9;
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .lead {
  font-size: 1.2rem;
  opacity: .85;
  margin: 0 0 2rem;
  color: #f5f5f4;
  max-width: 620px;
  line-height: 1.6;
}
.hero .container.text-center .lead { margin-left: auto; margin-right: auto; }
.hero .container.text-center .hero-badges { justify-content: center; }
.hero .btn-light {
  background: #fff; color: var(--bi-primary); border-color: #fff; font-weight: 700;
}
.hero .btn-light:hover { background: #fafaf9; color: var(--bi-primary-dark); }
.hero .btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.hero .btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); color: #fff; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.1);
  padding: .45rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.18);
  color: #f5f5f4;
  font-weight: 500;
}
.hero-badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ==== SECTIONS ==== */
.section { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.4rem; margin-bottom: .85rem; letter-spacing: -0.035em; }
.section-title p {
  color: var(--bi-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  background: var(--bi-primary-soft);
  color: var(--bi-primary-dark);
  font-weight: 700;
  font-size: .78rem;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ==== STAT CARDS ==== */
.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bi-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-card .stat-lbl {
  color: var(--bi-muted);
  font-weight: 500;
  margin-top: .65rem;
  font-size: .9rem;
}

/* ==== FEATURE ICON ==== */
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bi-primary-soft);
  color: var(--bi-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-icon.accent { background: var(--bi-accent-soft); color: var(--bi-accent-dark); }

/* ==== STEP CARD ==== */
.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-card h4, .step-card h5 { margin-top: 0; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bi-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  box-shadow: 0 6px 16px -4px rgba(15, 118, 110, .45);
  flex-shrink: 0;
}

/* ==== PROJECT CARD ==== */
.project-card {
  padding: 1.5rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.project-card .badge { font-size: .7rem; padding: .35rem .65rem; font-weight: 600; }
.project-card h5 { margin: .5rem 0; font-size: 1.1rem; }
.project-card .small-meta {
  color: var(--bi-muted);
  font-size: .85rem;
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .35rem;
}

/* ==== CATEGORY ==== */
.cat-card {
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--bi-ink);
  display: block;
}
.cat-card i {
  font-size: 1.85rem;
  color: var(--bi-primary);
  margin-bottom: .65rem;
  display: block;
}
.cat-card:hover { color: var(--bi-primary); border-color: var(--bi-primary); }

/* ==== SERVICES PAGE ==== */
.services-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .18);
  aspect-ratio: 4 / 3;
}
.services-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, .15) 0%, transparent 60%);
  pointer-events: none;
}
.services-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .55rem 0;
  color: var(--bi-ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.services-list li i {
  color: var(--bi-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ==== TESTIMONIAL ==== */
.testi-card { padding: 2rem; height: 100%; }
.testi-card .stars { color: var(--bi-accent); margin-bottom: 1rem; font-size: .95rem; }
.testi-card .quote { color: var(--bi-ink); margin-bottom: 1.5rem; line-height: 1.65; font-size: .98rem; }
.testi-card .author { display: flex; align-items: center; gap: .85rem; }

/* ==== CTA SECTION ==== */
.cta-section {
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, .25) 0%, transparent 50%),
    linear-gradient(135deg, var(--bi-primary-dark), var(--bi-primary));
  color: #fff;
  border-radius: 24px;
  padding: 4.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; font-size: 2.2rem; margin-bottom: .85rem; letter-spacing: -0.03em; }
.cta-section p { opacity: .9; font-size: 1.1rem; color: #f5f5f4; }

/* ==== FOOTER ==== */
footer.site-footer {
  background: var(--bi-ink);
  color: #a8a29e;
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
}
footer.site-footer h5 {
  color: #fafaf9;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
footer.site-footer a {
  color: #a8a29e; text-decoration: none; display: block; padding: .3rem 0;
  font-size: .92rem;
  transition: color .15s;
}
footer.site-footer a:hover { color: #fafaf9; }
footer.site-footer .brand-block .brand-name {
  font-size: 1.4rem; font-weight: 800; color: #fafaf9;
  display: flex; align-items: center; gap: .5rem;
}
footer.site-footer .brand-block .brand-name i { color: var(--bi-accent); }
footer.site-footer .brand-block p { color: #a8a29e; font-size: .92rem; }
footer.site-footer .social a {
  display: inline-flex; width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-right: .5rem;
}
footer.site-footer .social a:hover { background: var(--bi-primary); color: #fff; }
footer.site-footer .copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem; margin-top: 2.5rem;
  text-align: center; font-size: .87rem;
  color: #78716c;
}

/* ==== DASHBOARD ==== */
.dash-card { padding: 1.75rem; }
.dash-card h5 {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.05rem;
}
.dash-card h5 i { color: var(--bi-primary); }
.dash-stat {
  padding: 1.5rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.dash-stat i { font-size: 1.85rem; }
.dash-stat h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; }
.dash-stat small { font-size: .82rem; font-weight: 500; }

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.dash-header h3 { margin: 0; letter-spacing: -0.03em; font-size: 1.6rem; }
.dash-header .subtitle { color: var(--bi-muted); margin: .3rem 0 0 0; font-size: .95rem; }

/* ==== TABLES ==== */
.table { color: var(--bi-ink); }
.table > :not(caption) > * > * { padding: .9rem 1rem; vertical-align: middle; }
.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bi-muted);
  border-bottom: 1px solid var(--bi-line);
  font-weight: 700;
  background: var(--bi-surface);
  white-space: nowrap;
}
.table tbody tr { border-color: var(--bi-line); }
.table tbody tr:hover { background: var(--bi-surface); }

/* Action-cell button row — never wrap */
.action-row {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: nowrap;
}
.action-row .btn { padding: .35rem .55rem; font-size: .8rem; line-height: 1; }
.action-row .btn i { font-size: .9rem; }

/* Compact tables: keep status/action narrow, allow text columns to flex */
.table-compact td { font-size: .9rem; }
.table-compact .col-action { white-space: nowrap; width: 1%; }
.table-compact .col-status { white-space: nowrap; width: 1%; }

/* ==== FORM ==== */
.form-control, .form-select {
  border-color: var(--bi-line);
  border-radius: 10px;
  padding: .65rem .85rem;
  font-size: .95rem;
  color: var(--bi-ink);
  background: var(--bi-card);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bi-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
.form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--bi-ink);
  margin-bottom: .4rem;
}
.input-group-text { background: var(--bi-card); border-color: var(--bi-line); color: var(--bi-muted); }

/* ==== BADGES ==== */
.badge {
  font-weight: 600;
  letter-spacing: .015em;
  padding: .4em .7em;
  border-radius: 6px;
  text-transform: capitalize;
  font-size: .75rem;
}
.bg-primary  { background-color: var(--bi-primary) !important; }
.bg-success  { background-color: var(--bi-success) !important; }
.bg-warning  { background-color: var(--bi-warning) !important; color: #fff; }
.bg-danger   { background-color: var(--bi-danger)  !important; }
.bg-info     { background-color: var(--bi-info)    !important; color: #fff; }
.bg-secondary{ background-color: #57534e          !important; }
.bg-light    { background-color: var(--bi-surface) !important; color: var(--bi-ink-soft) !important; border: 1px solid var(--bi-line); }
.text-primary { color: var(--bi-primary) !important; }
.text-warning { color: var(--bi-accent-dark) !important; }
.text-success { color: var(--bi-success) !important; }
.text-info    { color: var(--bi-info) !important; }
.text-danger  { color: var(--bi-danger) !important; }

/* ==== ALERTS ==== */
.alert {
  border-radius: 10px;
  border-width: 1px;
  border-left-width: 4px;
  padding: .85rem 1rem;
}
.alert-success { background: #F0FDF4; border-color: var(--bi-success); color: #14532D; }
.alert-info    { background: #ECFEFF; border-color: var(--bi-info);    color: #164E63; }
.alert-warning { background: #FFFBEB; border-color: var(--bi-accent);  color: #78350F; }
.alert-danger  { background: #FEF2F2; border-color: var(--bi-danger);  color: #7F1D1D; }

/* ==== MESSAGES / CHAT ==== */
.msg-thread {
  max-height: 520px;
  overflow-y: auto;
  padding: 1.25rem;
  background: linear-gradient(to bottom, #fafaf9, #f5f5f4);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.msg-row { display: flex; width: 100%; }
.msg-row.mine   { justify-content: flex-end; }
.msg-row.theirs { justify-content: flex-start; }
.msg-bubble {
  padding: .7rem 1rem;
  border-radius: 16px;
  max-width: 75%;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
  font-size: .95rem;
  line-height: 1.5;
}
.msg-bubble.mine {
  background: var(--bi-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: #fff;
  border: 1px solid var(--bi-line);
  border-bottom-left-radius: 4px;
}
.msg-bubble .time {
  display: block;
  font-size: .7rem;
  opacity: .8;
  margin-top: .35rem;
}

.chat-header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--bi-card);
  border-bottom: 1px solid var(--bi-line);
}

.avatar-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bi-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}
.avatar-circle.sm { width: 34px; height: 34px; font-size: .82rem; }
.avatar-circle.lg { width: 60px; height: 60px; font-size: 1.3rem; }

.inbox-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bi-line);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.inbox-item:last-child { border-bottom: none; }
.inbox-item:hover { background: var(--bi-surface); color: inherit; }
.inbox-item.unread { background: var(--bi-primary-soft); }
.inbox-item.unread strong { color: var(--bi-primary-dark); }
.inbox-item .ix-body { flex: 1; min-width: 0; }
.inbox-item .ix-title-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.inbox-item .ix-preview {
  color: var(--bi-muted); font-size: .87rem; margin-top: .2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==== ACCORDION ==== */
.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid var(--bi-line) !important;
  background: var(--bi-card);
}
.accordion-button {
  font-weight: 500;
  padding: 1rem 1.25rem;
  background: var(--bi-card);
  color: var(--bi-ink);
}
.accordion-button:not(.collapsed) {
  background: var(--bi-primary-soft);
  color: var(--bi-primary-dark);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--bi-primary); }

/* ==== PROGRESS ==== */
.progress { background: var(--bi-line); border-radius: 6px; overflow: hidden; }
.progress-bar { font-size: .7rem; font-weight: 600; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (≤ 991px) */
@media (max-width: 991.98px) {
  .navbar { padding: .65rem 0; }
  .navbar-collapse {
    padding: .75rem 0 .5rem;
    margin-top: .5rem;
    border-top: 1px solid var(--bi-line);
  }
  .navbar-nav .nav-link {
    padding: .65rem 0 !important;
    border-radius: 0;
  }
  .navbar-nav .nav-link:hover { background: transparent; }
  .navbar-nav .btn { margin: .5rem 0 0; width: 100%; }

  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 2.5rem; }
  .section-title h2 { font-size: 2rem; }
  .cta-section { padding: 3.25rem 1.5rem; }
  .cta-section h2 { font-size: 1.85rem; }
  .dash-header h3 { font-size: 1.4rem; }
  .services-img-wrap { margin-bottom: 1.5rem; aspect-ratio: 16 / 10; }
}

/* Mobile (≤ 767px) */
@media (max-width: 767.98px) {
  body { font-size: 15px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.3rem; }

  .container, .container-lg, .container-md, .container-sm {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero .lead { font-size: 1rem; }
  .hero-badge { font-size: .78rem; padding: .35rem .75rem; }
  .hero-badges { gap: .5rem; margin-top: 1.75rem; }
  .hero .d-flex.gap-3 { flex-direction: column; gap: .65rem !important; }
  .hero .btn-lg { width: 100%; }

  .section { padding: 48px 0; }
  .section-title { margin-bottom: 2rem; }
  .section-title h2 { font-size: 1.6rem; }
  .section-title p { font-size: 1rem; }

  .stat-card { padding: 1.25rem .75rem; }
  .stat-card .stat-num { font-size: 1.9rem; }
  .stat-card .stat-lbl { font-size: .8rem; }

  .step-card { padding: 1.75rem 1.25rem 1.5rem; }
  .step-num { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 1rem; }

  .project-card { padding: 1.25rem; }
  .project-card h5 { font-size: 1.05rem; }

  .testi-card { padding: 1.5rem; }
  .testi-card .quote { font-size: .95rem; }

  .cta-section {
    padding: 2.75rem 1.25rem;
    border-radius: 18px;
    margin: 2rem 0;
  }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p { font-size: 1rem; }
  .cta-section .btn { display: inline-block; }
  .cta-section .btn + .btn { margin-top: .65rem; }

  /* Dashboard */
  .dash-card { padding: 1.25rem; }
  .dash-header { gap: .65rem; }
  .dash-header h3 { font-size: 1.25rem; }
  .dash-header > div:last-child { width: 100%; }
  .dash-header .btn { flex: 1; padding: .55rem .75rem; font-size: .85rem; }
  .dash-stat { padding: 1.1rem .5rem; }
  .dash-stat i { font-size: 1.55rem; }
  .dash-stat h3 { font-size: 1.4rem; }
  .dash-stat small { font-size: .72rem; }

  /* Tables: ensure horizontal scroll is comfortable */
  .table-responsive { font-size: .85rem; }
  .table > :not(caption) > * > * { padding: .65rem .75rem; }
  .table thead th { font-size: .68rem; }

  /* Action buttons stay tight */
  .action-row .btn { padding: .35rem .5rem; font-size: .78rem; }

  /* Messages */
  .chat-header { padding: .75rem 1rem; gap: .65rem; }
  .msg-thread { max-height: 55vh; padding: 1rem; }
  .msg-bubble { max-width: 85%; font-size: .92rem; }
  .inbox-item { padding: .85rem 1rem; gap: .75rem; }
  .inbox-item .ix-title-row { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .inbox-item small.text-muted { font-size: .72rem; }

  /* Services page */
  .services-img-wrap { aspect-ratio: 16 / 10; margin-bottom: 1.25rem; border-radius: 16px; }
  .services-list li { font-size: .93rem; padding: .45rem 0; }
  .services-list li i { font-size: 1.05rem; }

  /* Forms */
  .form-control, .form-select { font-size: 16px; /* prevents iOS zoom */ }

  /* Footer */
  footer.site-footer { padding: 3rem 0 1rem; margin-top: 3rem; }
  footer.site-footer h5 { margin-top: 1.25rem; margin-bottom: .85rem; }
  footer.site-footer .brand-block p { font-size: .9rem; }
  footer.site-footer .copyright { font-size: .8rem; padding-top: 1.25rem; margin-top: 1.75rem; }

  /* Touch-friendly */
  .btn { min-height: 40px; }
  .btn-sm { min-height: 32px; }
  .nav-link { min-height: 44px; }

  /* Accordion */
  .accordion-button { font-size: .92rem; padding: .85rem 1rem; }

  /* Eyebrow */
  .eyebrow { font-size: .7rem; padding: .3rem .7rem; margin-bottom: 1rem; }
}

/* Extra small (≤ 480px) */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero .lead { font-size: .95rem; }
  .section-title h2 { font-size: 1.45rem; }
  .stat-card .stat-num { font-size: 1.65rem; }
  .dash-stat h3 { font-size: 1.25rem; }
  .avatar-circle.sm { width: 30px; height: 30px; font-size: .75rem; }
  .feature-icon { width: 44px; height: 44px; font-size: 1.25rem; }
  /* Buttons in CTA stack on small */
  .cta-section .btn { display: block; width: 100%; }
  .cta-section .btn + .btn { margin: .5rem 0 0; }
}
