:root {
  --bg: #070c1c;
  --bg-2: #0a1230;
  --panel: #0d1734;
  --panel-2: #111e44;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(253, 230, 19, 0.35);
  --text: #e9edf6;
  --muted: #93a1bd;
  --accent: #fde613;
  --accent-red: #e5162c;
  --brand-blue: #1e329a;
  --white: #ffffff;
  --ink: #0b1226;
  --ink-muted: #4a5670;
  --paper: #e6ebf4;
  --shadow-lg: 0 30px 60px -20px rgba(2, 6, 20, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

a {
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

img {
  max-width: 100%;
}

.container {
  width: min(1240px, 92%);
  margin: 0 auto;
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 320px at 50% 30%, rgba(30, 50, 154, 0.35), transparent 70%),
    var(--bg);
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.preloader-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: preloader-pulse 1.6s var(--ease) infinite;
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-right-color: var(--accent-red);
  animation: preloader-spin 0.9s linear infinite;
}

.preloader-text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.94); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 12, 28, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent) 50%, var(--brand-blue) 100%);
}

.site-header.is-scrolled {
  background: rgba(7, 12, 28, 0.96);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo,
.footer-logo,
.preloader-logo {
  filter:
    brightness(1.07)
    drop-shadow(0 0 5px rgba(120, 181, 255, 0.6))
    drop-shadow(0 0 12px rgba(120, 181, 255, 0.3));
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.brand:hover .brand-logo {
  filter:
    brightness(1.14)
    drop-shadow(0 0 7px rgba(120, 181, 255, 0.75))
    drop-shadow(0 0 18px rgba(120, 181, 255, 0.42));
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  font-family: "Orbitron", "Montserrat", "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  text-shadow:
    0 0 1px #ffffff,
    0 0 5px rgba(255, 255, 255, 1),
    0 0 13px rgba(255, 255, 255, 0.72),
    0 0 33px rgba(255, 255, 255, 0.39),
    0 0 60px rgba(255, 255, 255, 0.2);
  transition: text-shadow 0.3s var(--ease);
}

.brand:hover .brand-text {
  text-shadow:
    0 0 2px #ffffff,
    0 0 7px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.88),
    0 0 46px rgba(255, 255, 255, 0.55),
    0 0 77px rgba(255, 255, 255, 0.28);
}

.main-nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: min(360px, 92vw);
  background: rgba(7, 12, 28, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.7);
  padding: 0.45rem;
  z-index: 90;
}

.main-nav.is-open {
  display: block;
}

.main-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  margin: 0;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.68rem 0.78rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.main-nav a:last-child {
  border-bottom: 0;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
  background: rgba(253, 230, 19, 0.06);
}

.nav-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  padding: 0.55rem 0.45rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(253, 230, 19, 0.9);
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-block;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(253, 230, 19, 0.45);
}

.btn.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn.btn-outline:hover {
  background: rgba(253, 230, 19, 0.08);
  box-shadow: none;
}

.btn.btn-danger {
  color: #fca5a5;
  border-color: #7f1d1d;
}

.btn.btn-danger:hover {
  background: #3f1414;
  color: #fecaca;
  box-shadow: none;
}

.btn.btn-small {
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding-top: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
  color: #4b5a7d;
}

.breadcrumbs li:last-child::after {
  content: "";
  margin: 0;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(30, 50, 154, 0.5), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(229, 22, 44, 0.16), transparent 60%),
    linear-gradient(160deg, #0c1533 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -50px 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 75%);
  pointer-events: none;
  transform: translate3d(0, var(--px-grid, 0px), 0);
  will-change: transform;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Night-sky starfield over dark sky sections */
.hero::after,
.page-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: -80px 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, var(--px-stars, 0px), 0);
  will-change: transform;
  background-image:
    radial-gradient(1.4px 1.4px at 24px 36px, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 92px 124px, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.8px 1.8px at 152px 58px, rgba(253, 230, 19, 0.85), rgba(253, 230, 19, 0) 60%),
    radial-gradient(1px 1px at 204px 182px, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.2px 1.2px at 58px 204px, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 182px 22px, rgba(147, 161, 189, 0.9), rgba(147, 161, 189, 0) 60%),
    radial-gradient(1.3px 1.3px at 122px 152px, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 42px 102px, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1.6px 1.6px at 230px 96px, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    radial-gradient(1px 1px at 12px 168px, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 60%);
  background-size: 260px 260px;
  background-repeat: repeat;
  opacity: 0.65;
  animation: stars-twinkle 5s ease-in-out infinite alternate;
}

.page-hero .container,
.cta-band .container {
  position: relative;
  z-index: 1;
}

@keyframes stars-twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.85; }
}

.hero-media-card {
  position: relative;
}

.hero-media-card::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  z-index: -1;
}

.hero-media-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent-red);
}

h1,
h2,
h3 {
  color: var(--white);
  margin-top: 0;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.08rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.hero .cta-group {
  flex-wrap: nowrap;
}

.hero .cta-group .btn {
  padding: 0.6rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .hero .cta-group {
    gap: 0.5rem;
  }

  .hero .cta-group .btn {
    padding: 0.55rem 0.6rem;
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 640px) {
  .hero .cta-group {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.photo-placeholder {
  border: 1px dashed rgba(147, 161, 189, 0.5);
  background: linear-gradient(135deg, #101c42, #0a1330);
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
}

.photo-placeholder p {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.photo-placeholder small {
  color: var(--muted);
}

.photo-placeholder-icon {
  gap: 0.6rem;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(30, 50, 154, 0.35), transparent 70%),
    linear-gradient(135deg, #101c42, #0a1330);
}

.photo-placeholder-icon .ph-icon {
  display: inline-grid;
  place-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(253, 230, 19, 0.05);
  box-shadow:
    0 0 18px rgba(253, 230, 19, 0.12),
    inset 0 0 18px rgba(30, 50, 154, 0.35);
}

.photo-placeholder-icon .ph-icon svg {
  width: 40px;
  height: 40px;
}

.photo-placeholder-icon p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-light h1,
.section-light h2,
.section-light h3 {
  color: var(--ink);
}

.section-light .lead,
.section-light p,
.section-light li {
  color: var(--ink-muted);
}

.section-light .service-card,
.section-light .cap-grid article {
  background: var(--white);
  border-color: rgba(11, 18, 38, 0.1);
  box-shadow: 0 18px 40px -28px rgba(11, 18, 38, 0.25);
}

.section-light .service-card:hover,
.section-light .cap-grid article:hover {
  border-color: var(--brand-blue);
}

.section-light .service-card p,
.section-light .cap-grid p {
  color: var(--ink-muted);
}

/* ---------- Grids & cards ---------- */

.cap-grid,
.service-grid,
.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

.cap-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cap-grid article {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem 1.4rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cap-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

.cap-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 1.6rem 1.5rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent));
  transition: width 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-item {
  margin: 0;
}

.gallery-item figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
  transition: transform 0.4s var(--ease), filter 0.3s var(--ease);
}

.gallery-item {
  overflow: hidden;
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ---------- Misc layout ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.feature-list,
.process-list {
  margin: 0;
  padding-left: 1.2rem;
}

.feature-list li,
.process-list li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.feature-list li::marker {
  color: var(--accent);
}

.process-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tags span {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 320px at 50% -40%, rgba(253, 230, 19, 0.12), transparent 65%),
    linear-gradient(120deg, #101b3f, #080e20);
  border-top: 1px solid var(--line);
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.8rem, 5vw, 4rem);
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(30, 50, 154, 0.4), transparent 60%),
    linear-gradient(150deg, #0d1734 0%, var(--bg) 80%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero-media {
  margin-top: 1.4rem;
  max-width: 520px;
}

.page-hero-media img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: block;
}

.muted {
  color: var(--muted);
}

.media-embed {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media-embed iframe {
  width: 100%;
  min-height: 520px;
}

.small-note {
  font-size: 0.9rem;
}

/* ---------- Filters ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

/* ---------- Forms ---------- */

.quote-form {
  display: grid;
  gap: 0.9rem;
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 12, 28, 0.6);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.section-light .quote-form input,
.section-light .quote-form select,
.section-light .quote-form textarea {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(11, 18, 38, 0.16);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(253, 230, 19, 0.16);
}

.error-text {
  color: #fca5a5;
  font-size: 0.85rem;
}

.alert {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.alert-success {
  border-color: #14532d;
  background: #0f2e1a;
  color: #bbf7d0;
}

.alert-error {
  border-color: #7f1d1d;
  background: #331313;
  color: #fecaca;
}

/* ---------- Dashboard ---------- */

.dashboard-login-card {
  max-width: 560px;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.dashboard-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-menu a {
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-menu a.is-active,
.dashboard-menu a:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.dashboard-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.dashboard-media-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 0.8rem;
}

.dashboard-media-card > form {
  margin-bottom: 0.8rem;
}

/* ---------- Online Quote ---------- */

.quote-hero {
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.quote-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.quote-hero-inner > div:first-child {
  max-width: 760px;
}

.quote-hero h1 {
  max-width: 16ch;
}

.quote-processes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  max-width: 350px;
}

.quote-processes span {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #e9edf6;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.quote-page {
  background: #f3f5f9;
}

.quote-workspace {
  max-width: 960px;
}

.quote-card,
.quote-prototype {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(11, 18, 38, 0.07);
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.quote-page h2,
.quote-page h3 {
  margin: 0;
}

.quote-card-kicker {
  margin: 0 0 0.45rem;
  color: #344aaf !important;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-gate-grid {
  align-items: start;
}

.quote-lock-card {
  position: static;
}

.quote-pin-form {
  max-width: 360px;
}

.quote-page .quote-form label {
  color: #25334e;
}

.quote-page .quote-form input:not([type="hidden"]),
.quote-page .quote-form select,
.quote-page .quote-form textarea {
  min-width: 0;
  min-height: 48px;
  background: #f8faff;
  color: #0b1226;
  border: 1px solid #cbd4e3;
  border-radius: 8px;
}

.quote-page .quote-form input:focus,
.quote-page .quote-form select:focus,
.quote-page .quote-form textarea:focus {
  border-color: #344aaf;
  box-shadow: 0 0 0 3px rgba(52, 74, 175, 0.16);
}

.quote-page .btn {
  border-radius: 8px;
}

.quote-help-cta .btn {
  text-align: center;
}

.quote-prototype {
  gap: 1.3rem;
}

.quote-form-intro {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5eaf2;
}

.quote-form-intro p:last-child,
.quote-step-heading p {
  margin: 0.3rem 0 0;
}

.quote-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.quote-step-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7bc;
  color: #222b46;
  font-size: 0.8rem;
  font-weight: 800;
}

.quote-step-heading h3 {
  font-size: 1.05rem;
}

.quote-step-heading p,
.quote-upload p,
.quote-form-footer p {
  font-size: 0.88rem;
}

.quote-prototype-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-upload {
  padding: 1.15rem;
  border: 1px dashed #9facbf;
  border-radius: 10px;
  background: #f8faff;
}

.quote-page .quote-upload input[type="file"] {
  background: #fff;
}

.quote-upload input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 5px;
  margin-right: 0.8rem;
  padding: 0.45rem 0.7rem;
  background: #e7ecf7;
  color: #172448;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quote-upload p {
  margin: 0.6rem 0 0;
}

.quote-file-preview:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
}

.quote-preview-image:not([hidden]) {
  display: grid;
  place-items: center;
  min-height: 220px;
  gap: 0.7rem;
  padding: 0.7rem;
  border: 1px solid #e1e7f1;
  border-radius: 6px;
  background: #fff;
}

.quote-preview-image img:not([hidden]) {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
}

.quote-preview-render,
.quote-preview-canvas {
  width: 100%;
  height: 240px;
}

.quote-preview-canvas canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-preview-measurements {
  width: 100%;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.quote-preview-measurements p {
  margin: 0.2rem 0 0;
}

.quote-preview-expand,
.quote-preview-close {
  border: 1px solid #9facbf;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  background: #fff;
  color: #172448;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quote-preview-expand:focus-visible,
.quote-preview-close:focus-visible {
  outline: 3px solid #344aaf;
  outline-offset: 2px;
}

.quote-preview-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: #f8faff;
}

.quote-preview-dialog::backdrop {
  background: rgba(11, 18, 38, 0.75);
}

.quote-preview-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-preview-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quote-preview-dialog-content {
  flex: 1;
  min-height: 0;
}

.quote-preview-dialog .quote-preview-image:not([hidden]) {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.quote-preview-dialog .quote-preview-image img:not([hidden]) {
  height: 100%;
}

.quote-preview-dialog .quote-preview-render,
.quote-preview-dialog .quote-preview-canvas {
  height: 100%;
}

.quote-preview-dialog .quote-preview-expand {
  display: none;
}

.quote-preview-details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-preview-image[hidden] + .quote-preview-details {
  grid-column: 1 / -1;
}

.quote-preview-details strong {
  color: var(--ink);
}

.quote-preview-details p:empty {
  display: none;
}

.quote-preview-details p {
  margin-top: 0.25rem;
}

.quote-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5eaf2;
}

.quote-form-footer p {
  margin: 0;
}

.quote-estimate-card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 1rem;
}

.quote-estimate-amount {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.quote-result-card,
.quote-booking-card {
  margin-top: 1.2rem;
}

.quote-result-card h2,
.quote-booking-card h2 {
  margin-bottom: 1.2rem;
}

.quote-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.quote-stats div {
  border: 1px solid #e1e7f1;
  border-radius: 8px;
  background: #f8faff;
  padding: 0.8rem;
}

.quote-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.quote-stats span {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.quote-breakdown p {
  margin-bottom: 0.5rem;
}

.quote-breakdown .quote-total {
  margin-top: 0.9rem;
  font-size: 1.1rem;
}

.dashboard-divider {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.dashboard-settings-card {
  margin-bottom: 1.2rem;
}

.dashboard-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.dashboard-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.4rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.dashboard-table th,
.dashboard-table td {
  border: 1px solid var(--line);
  padding: 0.55rem;
  vertical-align: middle;
}

.dashboard-table th {
  background: var(--panel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
}

.dashboard-table td input,
.dashboard-table td select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 12, 28, 0.6);
  color: var(--text);
  padding: 0.45rem 0.5rem;
  font: inherit;
}

.section-light .dashboard-table td input,
.section-light .dashboard-table td select {
  background: var(--white);
  color: var(--ink);
}

.dashboard-table-actions {
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #080d1e, #05080f);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 3rem 0 1.6rem;
}

.footer-grid h2,
.footer-grid h3 {
  margin-bottom: 0.6rem;
}

.footer-grid p {
  margin-bottom: 0.45rem;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.footer-brand h2 {
  margin: 0;
  font-family: "Orbitron", "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 26px rgba(255, 255, 255, 0.22);
}

.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.social-links a {
  display: inline-grid;
  place-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.social-links a:hover {
  border-color: var(--accent);
  background: rgba(253, 230, 19, 0.07);
  transform: translateY(-3px);
}

.social-links img {
  width: 40px !important;
  height: 40px !important;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .preloader {
    transition: none;
  }

  .preloader-logo,
  .preloader-spinner {
    animation: none;
  }

  .hero::after,
  .page-hero::after,
  .cta-band::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav { min-width: min(340px, 92vw); }
}

@media (max-width: 920px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .hero-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr;
  }

  .quote-lock-card {
    position: static;
  }

  .quote-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-processes {
    justify-content: flex-start;
  }

  .quote-prototype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-table {
    min-width: 760px;
  }
}

@media (max-width: 620px) {
  .quote-prototype-grid,
  .quote-grid-two {
    grid-template-columns: 1fr;
  }

  .quote-form-footer .btn {
    width: 100%;
  }

  .quote-file-preview:not([hidden]) {
    grid-template-columns: 1fr;
  }
}
