:root {
  --navy: #071b3d;
  --navy-2: #0c2b5a;
  --gold: #c8962f;
  --gold-2: #e1b557;
  --ink: #14213d;
  --muted: #607089;
  --line: #dbe2ec;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 20px 60px rgba(7, 27, 61, .12);
}

[data-theme="dark"] {
  --ink: #eef4ff;
  --muted: #b7c3d6;
  --line: rgba(255, 255, 255, .12);
  --bg: #061225;
  --surface: #0b1d38;
  --surface-2: #102846;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { min-height: 70vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--navy);
  letter-spacing: .04em;
  font-size: .92rem;
}

[data-theme="dark"] .brand strong { color: var(--gold-2); }
.brand small { display: block; color: var(--muted); font-size: .76rem; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: .94rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 650;
}

.main-nav a:hover { color: var(--gold); }
.nav-pill {
  padding: 10px 14px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, .78fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 78px) clamp(38px, 5vw, 70px);
  background:
    linear-gradient(120deg, rgba(7, 27, 61, .96), rgba(12, 43, 90, .84)),
    radial-gradient(circle at 75% 25%, rgba(225, 181, 87, .22), transparent 34%);
  color: #fff;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #dbe7f8;
}

.hero-logo {
  justify-self: center;
  max-width: 440px;
  padding: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-actions,
.filters,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #071b3d;
}

.btn.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .36);
}

.section,
.form-shell,
.table-shell,
.contact-layout,
.blog-grid,
.admin-two-cols {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0;
}

.intro,
.split-band,
.contact-layout,
.admin-two-cols {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section h2,
.contact-card h2,
.table-shell h2,
.pro-form h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.service-grid,
.testimonial-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.testimonial,
.stat-card,
.blog-card,
.auth-card,
.pro-form,
.contact-card,
.admin-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card,
.testimonial,
.stat-card,
.blog-card {
  padding: 24px;
}

.service-card h3,
.blog-card h2 {
  margin: 12px 0 8px;
  line-height: 1.15;
}

.card-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-2);
  font-weight: 900;
}

.service-card p,
.testimonial p,
.blog-card p,
.wide-text,
.category-block p {
  color: var(--muted);
}

.service-card a,
.mini-link {
  color: var(--gold);
  font-weight: 800;
}

.why-list {
  display: grid;
  gap: 16px;
}

.why-list p {
  margin: 0;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics div {
  padding: clamp(26px, 5vw, 46px);
  background: var(--surface);
  text-align: center;
}

.metrics strong,
.stat-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.cta-band,
.page-hero {
  padding: clamp(50px, 8vw, 86px) clamp(18px, 5vw, 78px);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.cta-band {
  text-align: center;
}

.page-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.page-hero p {
  max-width: 760px;
  color: #dbe7f8;
}

.page-hero.compact h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.category-block {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-lines article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pro-form,
.auth-card,
.contact-card {
  padding: clamp(22px, 4vw, 36px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

.contact-card { position: sticky; top: 96px; }
.map-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px dashed var(--gold);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.auth-shell {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.auth-card {
  width: min(460px, 100%);
}

.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: color-mix(in srgb, var(--gold) 18%, var(--surface));
}

[data-theme="dark"] th { color: var(--gold-2); }

.status {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 800;
}

.status.pending { color: #9a6700; background: #fff7d6; }
.status.in_progress { color: #175cd3; background: #eaf1ff; }
.status.done { color: var(--success); background: #e7f7ef; }
.status.rejected { color: var(--danger); background: #ffe8e5; }

.flash {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flash.success { border-left: 4px solid var(--success); }
.flash.error { border-left: 4px solid var(--danger); }

.admin-detail {
  padding: 18px;
  margin-bottom: 14px;
}

.admin-detail summary {
  cursor: pointer;
}

.inline-form {
  align-items: stretch;
}

.inline-form textarea {
  min-width: min(420px, 100%);
}

.text-danger {
  color: var(--danger);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr;
  gap: 30px;
  padding: 46px clamp(18px, 5vw, 78px);
  background: #050f22;
  color: #dbe7f8;
}

.site-footer img { width: 110px; background: #fff; margin-bottom: 16px; }
.site-footer a { display: block; margin: 8px 0; color: #dbe7f8; }
.site-footer h3 { color: var(--gold-2); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    inset: 79px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-tools { border-left: 0; padding-left: 0; }
  .hero,
  .intro,
  .split-band,
  .contact-layout,
  .admin-two-cols,
  .category-block {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .hero-logo { max-width: 300px; }
  .service-grid,
  .testimonial-grid,
  .dashboard-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header { padding: 10px 14px; }
  .brand { min-width: 0; }
  .brand span { display: none; }
  .hero h1,
  .page-hero h1 { font-size: 2.6rem; }
  .page-hero { display: block; }
  .service-grid,
  .testimonial-grid,
  .dashboard-grid,
  .metrics,
  .service-lines,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section,
  .form-shell,
  .table-shell,
  .contact-layout,
  .blog-grid,
  .admin-two-cols {
    width: min(100% - 28px, 1180px);
  }
  .site-footer { grid-template-columns: 1fr; }
}

/* Premium liquid glass refresh */
:root {
  --radius: 8px;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-line: rgba(255, 255, 255, .62);
  --soft-line: rgba(7, 27, 61, .11);
  --field: rgba(255, 255, 255, .66);
  --focus: 0 0 0 4px rgba(200, 150, 47, .18);
}

[data-theme="dark"] {
  --glass: rgba(11, 29, 56, .72);
  --glass-strong: rgba(16, 40, 70, .86);
  --glass-line: rgba(255, 255, 255, .13);
  --soft-line: rgba(255, 255, 255, .12);
  --field: rgba(255, 255, 255, .07);
  --focus: 0 0 0 4px rgba(225, 181, 87, .18);
}

body {
  background:
    linear-gradient(145deg, rgba(7, 27, 61, .06) 0%, transparent 26%),
    linear-gradient(35deg, transparent 0%, rgba(200, 150, 47, .08) 45%, transparent 72%),
    var(--bg);
}

.site-header {
  margin: 12px clamp(10px, 2vw, 22px) 0;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 14px 44px rgba(7, 27, 61, .12);
}

.brand img {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  padding: 4px;
  box-shadow: 0 8px 20px rgba(7, 27, 61, .12);
}

.main-nav a {
  padding: 8px 9px;
  border-radius: var(--radius);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover {
  background: rgba(200, 150, 47, .10);
  transform: translateY(-1px);
}

.nav-pill,
.theme-toggle,
.menu-toggle,
.btn,
.status,
input,
select,
textarea,
.map-placeholder {
  border-radius: var(--radius);
}

.theme-toggle,
.menu-toggle {
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -91px;
  padding-top: clamp(138px, 12vw, 176px);
  background:
    linear-gradient(118deg, rgba(5, 15, 34, .98) 0%, rgba(7, 27, 61, .96) 48%, rgba(13, 46, 91, .92) 100%),
    linear-gradient(35deg, transparent 0%, rgba(225, 181, 87, .18) 45%, transparent 78%);
}

.hero::before,
.page-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.10) 38%, transparent 39%),
    linear-gradient(115deg, transparent 0%, rgba(225,181,87,.16) 70%, transparent 71%);
  opacity: .55;
}

.hero-copy,
.hero-logo,
.page-hero > *,
.cta-band > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.hero-logo {
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,255,255,.76));
  backdrop-filter: blur(18px);
}

.eyebrow {
  letter-spacing: .16em;
}

.btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(7, 27, 61, .12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.35) 42%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 27, 61, .16);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn.ghost,
.hero .btn.ghost {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.section,
.form-shell,
.table-shell,
.contact-layout,
.blog-grid,
.admin-two-cols {
  position: relative;
}

.service-card,
.testimonial,
.stat-card,
.blog-card,
.auth-card,
.pro-form,
.contact-card,
.admin-detail,
.why-list p,
.service-lines article,
table,
.flash {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 18px 48px rgba(7, 27, 61, .10);
}

.service-card,
.testimonial,
.stat-card,
.blog-card,
.service-lines article,
.admin-detail {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.testimonial:hover,
.stat-card:hover,
.blog-card:hover,
.service-lines article:hover,
.admin-detail:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 150, 47, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .46),
    0 24px 58px rgba(7, 27, 61, .14);
}

.card-icon {
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 24px rgba(7, 27, 61, .16);
}

.metrics {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(20px, 5vw, 54px) auto;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass-line);
  box-shadow: var(--shadow);
}

.metrics div {
  background:
    linear-gradient(145deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(16px);
}

.cta-band,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(132deg, #050f22 0%, var(--navy) 54%, #123667 100%);
}

.page-hero.compact {
  margin: 22px auto 0;
  width: min(1180px, calc(100% - 36px));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-block {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(7, 27, 61, .08);
}

.form-shell,
.table-shell {
  padding-top: clamp(32px, 5vw, 62px);
  padding-bottom: clamp(32px, 5vw, 62px);
}

.pro-form,
.auth-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.pro-form::before,
.auth-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), rgba(255,255,255,.55));
}

.pro-form h2,
.auth-card h1,
.contact-card h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft-line);
}

label {
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 88%, var(--gold));
  font-size: .92rem;
}

input,
select,
textarea {
  min-height: 48px;
  border: 1px solid var(--soft-line);
  background: var(--field);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

textarea {
  min-height: 130px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(200, 150, 47, .42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--field) 84%, #fff);
  box-shadow: var(--focus), inset 0 1px 0 rgba(255,255,255,.48);
}

input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

input[type="checkbox"] {
  min-height: auto;
  accent-color: var(--gold);
}

.filters {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(16px);
}

.filters input,
.filters select {
  width: auto;
  min-width: min(260px, 100%);
}

.table-responsive {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: linear-gradient(135deg, rgba(200,150,47,.20), rgba(255,255,255,.16));
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

td {
  background: rgba(255,255,255,.12);
}

tr:hover td {
  background: rgba(200, 150, 47, .07);
}

.admin-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 4px 0;
  list-style: none;
}

.admin-detail summary::-webkit-details-marker {
  display: none;
}

.admin-detail summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  color: var(--gold);
}

.admin-detail[open] summary::after {
  content: "-";
}

.inline-form {
  padding-top: 14px;
}

.inline-form select {
  max-width: 220px;
}

.status {
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.site-footer {
  margin-top: 40px;
  background:
    linear-gradient(132deg, #020815 0%, #071b3d 54%, #0d2f5f 100%);
}

.site-footer img {
  border-radius: var(--radius);
  padding: 6px;
}

@supports not ((backdrop-filter: blur(12px))) {
  .service-card,
  .testimonial,
  .stat-card,
  .blog-card,
  .auth-card,
  .pro-form,
  .contact-card,
  .admin-detail,
  .why-list p,
  .service-lines article,
  table,
  .flash {
    background: var(--surface);
  }
}

@media (max-width: 980px) {
  .site-header {
    margin: 8px 10px 0;
  }
  .main-nav {
    border-radius: var(--radius);
    background: var(--glass-strong);
    backdrop-filter: blur(18px);
  }
  .hero {
    margin-top: -75px;
    padding-top: 124px;
  }
  .page-hero.compact {
    width: min(100% - 28px, 1180px);
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 20px;
  }
  .category-block,
  .service-card,
  .testimonial,
  .stat-card,
  .blog-card,
  .pro-form,
  .auth-card,
  .contact-card,
  .admin-detail {
    padding: 18px;
  }
  .filters input,
  .filters select,
  .filters .btn {
    width: 100%;
  }
  .admin-detail summary {
    align-items: flex-start;
  }
}
