:root {
  --bg: #0a0a0a;
  --panel: #151515;
  --panel-2: #1f1f1f;
  --text: #ffffff;
  --muted: #c9c9c9;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e30613;
  --accent-2: #2147ff;
  --max: 1180px;
  font-family: Poppins, Montserrat, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 156px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; color: var(--text); background: none; border: 0; font-size: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: #ff1422; border-color: #ff1422; }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-video, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.62), rgba(10, 10, 10, 0.24)),
    linear-gradient(0deg, #0a0a0a 0%, rgba(10, 10, 10, 0) 42%);
}
.hero-content {
  position: relative;
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  padding: 150px 0 90px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #ff3440;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; }
.hero-content p:not(.eyebrow) { max-width: 720px; font-size: 1.16rem; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101010;
}
.trust-strip span {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
}
.trust-strip span::before { content: "✓ "; color: var(--accent); }

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p:not(.eyebrow), .split p, .contact p { color: var(--muted); }

.service-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card, .blog-card, .portfolio-card, .dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}
.service-card, .blog-card { padding: 24px; min-height: 210px; }
.service-card strong { color: var(--accent); }

.section-portfolio {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: #101010;
}
.portfolio-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}
.filter-btn.active { color: var(--text); border-color: var(--accent); background: rgba(227, 6, 19, 0.22); }
.search-box { display: grid; gap: 6px; color: var(--muted); min-width: min(100%, 320px); }
.search-box input, .quote-form input, .quote-form select, .quote-form textarea, .admin-form input, .admin-form select, .admin-form textarea, #loginForm input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e0e0e;
  color: var(--text);
  padding: 13px 14px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.portfolio-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(227, 6, 19, 0.72); }
.portfolio-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #222; }
.portfolio-card .card-body { padding: 14px; }
.portfolio-card p { margin: 7px 0 0; color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-flex; color: #ff6a72; font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }

.split, .contact {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.feature-img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.stats { margin-top: 24px; display: grid; gap: 0; }
.stats strong { font-size: 3rem; color: var(--accent); line-height: 1; }
.stats span { color: var(--muted); }

.blog-card p { color: var(--muted); }
.contact iframe {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 8px;
  filter: grayscale(1) invert(0.9);
}
.quote-form, .admin-login, .admin-dashboard {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 14px;
}
.form-note { margin: 0; font-size: 0.86rem; }

.admin-panel {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 90px;
  scroll-margin-top: 90px;
}
.hidden { display: none !important; }
.admin-top, .admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.dashboard-card { padding: 18px; }
.dashboard-card strong { display: block; font-size: 2rem; color: var(--accent); }
.admin-form, #loginForm { display: grid; gap: 12px; }
.check { color: var(--muted); }
#exportOutput { max-height: 260px; overflow: auto; white-space: pre-wrap; color: var(--muted); }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 16px 88px;
}
.footer strong { color: var(--text); }
.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #06170c;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.lightbox {
  width: min(920px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
  color: var(--text);
  padding: 0;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.78); }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; background: #050505; }
.lightbox div { padding: 22px; }
.lightbox button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .blog-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact { grid-template-columns: 1fr; }
  .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .hero-content { padding-bottom: 58px; }
  .hero-actions .btn { width: 100%; }
  .trust-strip, .service-grid, .blog-grid, .portfolio-grid, .dashboard-cards { grid-template-columns: 1fr; }
  .portfolio-tools { align-items: stretch; flex-direction: column; }
  .section { padding: 68px 0; }
  .admin-login, .admin-dashboard, .quote-form { padding: 20px; }
}

.page-main {
  padding-top: 86px;
}

.article {
  max-width: 860px;
}

.article-body {
  color: var(--muted);
  font-size: 1.05rem;
}

.success,
.alert {
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.success {
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.alert {
  background: rgba(227, 6, 19, 0.16);
  border: 1px solid rgba(227, 6, 19, 0.45);
}

.admin-body {
  min-height: 100vh;
  background: #0a0a0a;
}

.login-screen {
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.admin-shell {
  width: min(760px, calc(100% - 32px));
  margin: 70px auto;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  background: #101010;
  overflow: auto;
}

.admin-logo {
  display: block;
  font-weight: 900;
  margin-bottom: 22px;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
}

.admin-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.admin-main {
  margin-left: 260px;
  padding: 28px;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  margin-bottom: 18px;
}

.admin-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table select,
.admin-table button,
.visual-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e0e0e;
  color: var(--text);
  padding: 12px 14px;
}

.visual-editor {
  min-height: 260px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.inline {
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
}

.inline button,
.media-item button,
.admin-table button {
  cursor: pointer;
}

.media-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.media-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: static;
    width: auto;
  }
  .admin-main {
    margin-left: 0;
    padding: 18px;
  }
  .admin-grid-two {
    grid-template-columns: 1fr;
  }
}
