/* Modern UI overrides for Raising template
   Purpose: elevate visual hierarchy, accessibility, and micro-interactions
   Notes: keep non-destructive; only override where necessary. */

:root {
  --brand: #0b5ed7; /* company blue */
  --brand-600: #0a58ca;
  --brand-700: #0b5ed7;
  --brand-800: #084298;
  --ink: #0f172a;   /* slate-900 */
  --ink-700: #334155;
  --muted: #64748b; /* slate-500 */
  --bg: #ffffff;
  --bg-alt: #0b1220; /* for dark sections overlay */
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body { color: var(--ink); font-size: 16px; line-height: 1.6; }

/* Typography hierarchy */
.hero__title, .sec-title__title { letter-spacing: -0.015em; }
.sec-title__title { color: var(--ink); font-weight: 700; }
.hero__desc, .services__desc, p, .widget-contact__text { color: var(--muted); }

/* Header improvements */
.header { transition: box-shadow .3s ease, background-color .3s ease; }
.header--fixed.header--scrolled { background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.header--fixed .raising-menu > li > a { color: var(--ink); }
.header-logo img { height: 40px; width: auto; }

/* Navigation focus styles */
.raising-menu a, .navbar-toggle, .btn, .widget-tag a { outline: none; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.raising-menu a:focus-visible, .btn:focus-visible, .navbar-toggle:focus-visible, .widget-tag a:focus-visible, input:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(13,148,136,.35);
  border-radius: 8px;
}

/* Buttons */
.btn { border-radius: 999px; padding: 12px 20px; font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: var(--brand-700); border-color: var(--brand-700); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { border-color: var(--brand-700); color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-700); color: #fff; }

/* Cards and media */
.services, .team, .gallery__image, blockquote.quote, .about, .widget, .contact-form {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.services:hover, .team:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Hero adjustments */
.hero__inner { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); border-radius: var(--radius); padding: 64px 0; }
.hero__title { color: #fff; font-size: clamp(28px, 5vw, 48px); }
.hero__desc { color: rgba(255,255,255,.9); font-size: clamp(16px, 2.2vw, 20px); }

/* Section spacing and dividers */
.md-section { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.sec-title__divider { background: var(--brand-700); height: 4px; border-radius: 2px; }

/* Forms */
.form-control, textarea { border-radius: 10px; border: 1px solid #e2e8f0; padding: 12px 14px; }
.form-control:focus, textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(13,148,136,.25); }

/* Footer */
.footer-01 { background: #0b1220; color: #cbd5e1; }
.footer-01 a { color: #e2e8f0; }
.footer-01 a:hover { color: #fff; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-md); z-index: 10000; }

/* Reveal animations (respect reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .raising-menu a, .navbar-toggle, .btn, .widget-tag a { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Tables & badges for Company Profile */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
table.data-table th { background: #f8fafc; color: #0f172a; font-weight: 700; text-align: left; }
table.data-table tr:hover { background: #fafafa; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge--ongoing { background: #16a34a; color: #fff; }
.badge--completed { background: #94a3b8; color: #0b1220; }

/* DataTables skin tweaks */
.dataTables_wrapper .dataTables_filter input { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; }
.dataTables_wrapper .dataTables_length select { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 8px !important; }

/* Data tables (simple) */
.table-wrap { overflow-x: auto; box-shadow: var(--shadow-sm); border-radius: var(--radius); background: #fff; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data-table thead th { position: sticky; top: 0; background: #f8fafc; color: var(--ink); text-align: left; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; cursor: pointer; }
table.data-table tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: var(--muted); }
table.data-table tbody tr:hover { background: #f8fafc; }
.table-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.table-search { width: 280px; max-width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.success { background: #dcfce7; color: #166534; }
.badge.warn { background: #fee2e2; color: #991b1b; }
