:root {
  --ink: #0f1b2b;
  --ink-soft: #16273d;
  --steel: #3c5a75;
  --amber: #fcb620;
  --amber-light: #fdc54c;
  --amber-dark: #faab02;
  --paper: #ffffff;
  --bg: #f5f6f8;
  --bg-deep: #eceef1;
  --text: #1c222b;
  --text-muted: #667081;
  --border: #dfe3e8;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(20,22,28,.06), 0 1px 3px rgba(20,22,28,.08);
  --shadow-2: 0 4px 14px rgba(20,22,28,.10), 0 2px 4px rgba(20,22,28,.06);
  --shadow-3: 0 16px 40px rgba(20,22,28,.16), 0 4px 10px rgba(20,22,28,.08);
  --shadow-amber: 0 10px 26px rgba(232,163,61,.30);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }

a { text-decoration: none; transition: color .2s var(--ease); }
::selection { background: var(--amber-light); color: var(--ink); }

.btn { border-radius: var(--radius-sm); font-weight: 700; padding: .65rem 1.5rem; letter-spacing: .01em; transition: all .25s var(--ease); text-transform: uppercase; font-size: .82rem; }
.btn-lg { padding: .9rem 2.1rem; }
.btn-sm { padding: .4rem 1rem; border-radius: var(--radius-sm); text-transform: none; font-size: .82rem; }
.btn-primary { background: var(--amber); border: none; color: var(--ink); box-shadow: var(--shadow-amber); }
.btn-primary:hover, .btn-primary:focus { background: var(--amber-light); color: var(--ink); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(232,163,61,.4); }
.btn-outline-primary { border: 1.5px solid var(--amber-dark); color: var(--amber-dark); background: transparent; }
.btn-outline-primary:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-outline-secondary { border-radius: var(--radius-sm); }
.btn-outline-light { border-width: 1.5px; }
.btn-light { border-radius: var(--radius-sm); font-weight: 700; }

.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 .2rem rgba(232,163,61,.18); }
.form-label { font-weight: 700; font-size: .85rem; color: var(--ink); }

.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.alert { border-radius: var(--radius-sm); border: none; }
.badge { font-weight: 700; letter-spacing: .02em; }

/* ===================== Public site ===================== */
.site-header .navbar { background: rgba(255,255,255,.92) !important; backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: .9rem 0; }
.navbar-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .02em; }
.navbar-brand i { color: var(--amber); margin-right: 6px; }
.nav-link { font-weight: 600; color: var(--text) !important; padding: .5rem 1rem !important; text-transform: uppercase; font-size: .84rem; letter-spacing: .02em; }
.nav-link:hover { color: var(--amber-dark) !important; }
.dropdown-menu { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-2); padding: .5rem; }
.dropdown-item { border-radius: var(--radius-sm); padding: .5rem .75rem; }
.dropdown-item:hover { background: var(--bg-deep); }

.section-eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .74rem; font-weight: 800; color: var(--amber-dark); margin-bottom: 8px; }
.section-title { font-weight: 800; margin-bottom: 0; }

.page-header { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); padding: 68px 0 54px; color: #fff; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(232,163,61,.22), transparent 55%); }
.page-header h1 { color: #fff; margin-bottom: 8px; position: relative; }
.page-header p { position: relative; }

/* ---- Hero ---- */
.hero-slider { position: relative; background: var(--ink); }
.hero-slider .carousel-item { height: 720px; position: relative; }
.hero-bg { width: 100%; height: 720px; object-fit: cover; filter: saturate(1.05) brightness(.9); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,27,43,.92) 0%, rgba(15,27,43,.6) 50%, rgba(15,27,43,.25) 100%); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; }
.hero-caption h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 18px; color: #fff; text-transform: uppercase; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: .8rem; color: var(--amber-light); margin-bottom: 14px; display: inline-block; border-bottom: 1px solid rgba(244,193,118,.4); padding-bottom: 6px; }
.hero-caption .lead { max-width: 560px; color: rgba(255,255,255,.82); margin-bottom: 26px; font-size: 1.08rem; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; opacity: .5; }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { opacity: .9; }

.about-overlay { position: absolute; inset: 0; background: none !important; }

.stat-strip { 
  background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
  margin-top: -50px; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; padding: 28px 10px; border: 1px solid var(--border);
 }
.stat-strip-item { flex: 1 1 25%; text-align: center; padding: 8px; border-right: 1px solid var(--border); }
.stat-strip-item:last-child { border-right: none; }
.stat-strip-item .num { font-family: 'Montserrat', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--amber); }
.stat-strip-item .label { font-size: .76rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ---- Value / service cards ---- */
.value-card { background: var(--paper); border-radius: var(--radius-lg); padding: 34px 26px; height: 100%; border: 1px solid var(--border); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.value-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.value-icon { width: 58px; height: 58px; border-radius: var(--radius-sm); background: var(--ink); color: var(--amber-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }

.service-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.service-card-img { height: 190px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-body { padding: 22px; }
.service-card-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg-deep); color: var(--amber-dark); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 14px; }

/* ---- Project cards ---- */
.project-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.project-card-img { position: relative; height: 220px; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-card-img img { transform: scale(1.06); }
.project-badge { position: absolute; top: 12px; left: 12px; background: var(--ink) !important; border-radius: var(--radius-pill); padding: .35em .85em; text-transform: capitalize; }
.project-card-body { padding: 20px; }
.project-meta { font-size: .8rem; color: var(--text-muted); }

.no-image { width: 100%; height: 100%; min-height: 150px; display: flex; align-items: center; justify-content: center; background: var(--bg-deep); color: #b7bfc9; font-size: 2rem; }

/* ---- Global presence / about ---- */
.about-img { object-fit: cover; height: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.about-stat { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.about-stat .num { font-family: 'Montserrat', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--amber-dark); }
.about-stat .label { font-size: .8rem; color: var(--text-muted); }
.presence-bar { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 24px; display: flex; align-items: center; gap: 14px; }
.presence-bar i { color: var(--amber-light); font-size: 1.3rem; }

.quote-block { border-left: 3px solid var(--amber); padding: 6px 0 6px 22px; margin: 20px 0; }
.quote-block i.fa-quote-left { color: var(--amber-light); font-size: 1.2rem; margin-bottom: 6px; display: block; }
.quote-block p { font-style: italic; font-size: 1.08rem; color: var(--ink); margin-bottom: 6px; }
.quote-block footer { font-size: .85rem; color: var(--text-muted); }

.site-footer { background: var(--ink); margin-top: 40px; }
.site-footer a { color: #b9c2ce; }
.site-footer a:hover { color: var(--amber-light); }
.site-footer h5, .site-footer h6 { font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.site-footer ul li { margin-bottom: 6px; }
.footer-social { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; color: #fff !important; transition: all .2s var(--ease); }
.footer-social:hover { background: var(--amber); border-color: var(--amber); color: var(--ink) !important; }
.footer-cta-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px; }

.cta-banner { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); color: #fff; padding: 70px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 80%, rgba(232,163,61,.2), transparent 55%); }
.cta-banner h2 { color: #fff; margin-bottom: 12px; position: relative; }
.cta-banner p, .cta-banner .btn { position: relative; }

.category-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-pill); background: var(--paper); border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 700; text-transform: uppercase; transition: all .2s var(--ease); }
.category-pill:hover { border-color: var(--amber); color: var(--amber-dark); }
.category-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Embedded gallery slideshow (project/service detail) ---- */
.gallery-main-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.gallery-main-wrap .carousel-item { height: 460px; background: var(--ink); }
.gallery-main-wrap .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-expand-btn { position: absolute; top: 16px; right: 16px; z-index: 5; background: rgba(15,27,43,.55); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.gallery-expand-btn:hover { background: rgba(15,27,43,.85); }
.gallery-thumb-strip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb-item { width: 92px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; opacity: .55; border: 2px solid transparent; transition: opacity .2s, border-color .2s; flex-shrink: 0; }
.gallery-thumb-item.active { opacity: 1; border-color: var(--amber); }

#lightboxModal .modal-content { background: var(--ink); border: none; border-radius: var(--radius-lg); overflow: hidden; }
#lightboxModal .modal-body { padding: 0; }
#lightboxModal .carousel-item { height: 72vh; display: flex; align-items: center; justify-content: center; background: #000; }
#lightboxModal .carousel-item img { max-height: 72vh; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
#lightboxModal .btn-close { filter: invert(1); position: absolute; top: 14px; right: 14px; z-index: 5; opacity: .8; }

/* ===================== Admin panel ===================== */
.admin-body { background: var(--bg); }
.admin-sidebar { width: 250px; min-height: 100vh; background: var(--bg); color: #b9c2ce; position: sticky; top: 0; }
.sidebar-brand { padding: 24px 22px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'Montserrat', sans-serif; font-size: 1.05rem; text-transform: uppercase; }
.sidebar-brand i { color: var(--amber-light); margin-right: 6px; }
.admin-sidebar .nav-link { color: #9aa5b3; padding: 11px 22px; display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar .nav-link.active { background: rgba(232,163,61,.15); color: var(--amber-light); border-right: 3px solid var(--amber); }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: var(--paper); padding: 18px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 28px; }

.stat-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-1); }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-value { font-size: 1.5rem; font-weight: 800; font-family: 'Montserrat', sans-serif; color: var(--ink); }
.stat-label { font-size: .78rem; color: var(--text-muted); }

.thumb-sm { width: 58px; height: 44px; object-fit: cover; border-radius: 6px; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.message-box { background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; line-height: 1.55; max-height: 220px; overflow-y: auto; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 20%, #16273d, var(--ink) 60%); }
.login-box { background: var(--paper); padding: 40px 36px; border-radius: var(--radius-lg); width: 400px; box-shadow: var(--shadow-3); text-align: center; }
.login-icon { width: 58px; height: 58px; border-radius: var(--radius-sm); margin: 0 auto 16px; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.login-box form { text-align: left; }

.table { font-size: .92rem; }
.table thead th { text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; color: var(--text-muted); font-weight: 800; }
.card > .table-responsive .table, .card > .table { margin-bottom: 0; }

@media (max-width: 767px) {
  .hero-slider .carousel-item, .hero-bg { height: 500px; }
  .hero-caption h1 { font-size: 1.9rem; }
  .stat-strip { margin-top: -34px; }
  .stat-strip-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-strip-item:last-child { border-bottom: none; }
  .gallery-main-wrap .carousel-item { height: 240px; }
}
