:root {
  --ink: #121316;
  --muted: #686b72;
  --line: #e3e5e8;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --yellow: #f7c600;
  --red: #d71920;
  --dark: #07080a;
  --charcoal: #101216;
  --shadow: 0 20px 60px rgba(6, 8, 12, 0.18);
  --glow: 0 0 34px rgba(247, 198, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(247, 198, 0, 0.08), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(215, 25, 32, 0.08), transparent 30%),
    var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 24px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.2), transparent 34%),
    radial-gradient(circle at center, rgba(247, 198, 0, 0.2), transparent 26%),
    #020304;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(247, 198, 0, 0.18);
  pointer-events: none;
}

.preloader::after {
  inset: auto 0 0;
  height: 3px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--red), var(--yellow), transparent);
  animation: scanLine 1.4s ease-in-out infinite;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-mark {
  position: relative;
  width: min(520px, 78vw);
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 0 80px rgba(247, 198, 0, 0.18), 0 22px 80px rgba(0, 0, 0, 0.58);
  animation: logoPulse 1.7s ease-in-out infinite;
}

.preloader-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(247, 198, 0, 0.42);
  border-radius: 8px;
  clip-path: polygon(0 0, 28% 0, 28% 3px, 3px 3px, 3px 28%, 0 28%, 0 0, 100% 72%, 100% 100%, 72% 100%, 72% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 72%);
}

.preloader-mark img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.preloader-bar {
  width: min(360px, 62vw);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.preloader-bar span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--yellow), #fff);
  animation: loadingBar 1s ease-in-out infinite;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: #fff;
  background: rgba(5, 6, 8, 0.84);
  border-bottom: 1px solid rgba(247, 198, 0, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 132px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(247, 198, 0, 0.25));
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-call {
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow), #ffe36a);
  color: var(--dark);
  font-weight: 800;
  box-shadow: var(--glow);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--dark);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--red));
}

.hero-bg-slider,
.hero-bg-slider .slider-viewport {
  position: absolute;
  inset: 0;
}

.hero-bg-slider {
  z-index: 0;
  overflow: hidden;
}

.hero-bg-slider .slider-viewport {
  height: 100%;
}

.hero-bg-slider .slider-track {
  position: relative;
  display: flex;
  height: 100%;
  transition: transform 0.65s ease;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--slide-image);
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  opacity: 0.78;
  transform: scale(1.08);
}

.hero-slide img {
  position: absolute;
  z-index: 2;
  top: 104px;
  right: clamp(22px, 5vw, 82px);
  bottom: 28px;
  width: min(46vw, 700px);
  height: calc(100% - 132px);
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(247, 198, 0, 0.06);
}

.hero-control {
  top: auto;
  bottom: 34px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  opacity: 0.92;
  transform: none;
}

.hero-control.prev {
  left: auto;
  right: 74px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  bottom: 26px;
  justify-content: flex-end;
  padding-right: clamp(22px, 5vw, 82px);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 38%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(180deg, rgba(215, 25, 32, 0.2), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(58% - 36px));
  padding: 112px 0 52px;
  margin-left: clamp(18px, 6vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-heading .eyebrow,
.split-copy .eyebrow,
.contact-section .eyebrow,
.intro .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-left: 4px solid var(--yellow);
  background: rgba(215, 25, 32, 0.1);
  color: var(--red);
}

.hero .eyebrow,
.split-copy .eyebrow,
.contact-section .eyebrow {
  background: rgba(215, 25, 32, 0.28);
  color: #fff;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.hero-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions,
.admin-actions,
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.header-call:hover,
.float-whatsapp:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--yellow), #ffe36a);
  color: var(--dark);
  box-shadow: var(--glow);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(22, 24, 29, 0.78);
  color: #fff;
}

.quick-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-info span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 0 0 1px rgba(247, 198, 0, 0.08);
  font-weight: 700;
  font-size: 14px;
}

.section {
  padding: 56px clamp(18px, 6vw, 76px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(247, 198, 0, 0.13), transparent 34%),
    var(--soft);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.split-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(9, 13, 20, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: 0 20px 42px rgba(9, 13, 20, 0.12);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--yellow), #ffe36a);
  color: var(--dark);
  font-size: 24px;
  font-weight: 900;
}

.service-card p {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: 380px;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.2), transparent 34%),
    var(--dark);
  color: #fff;
}

.split-copy {
  padding: 56px clamp(18px, 6vw, 76px);
  align-self: center;
}

.split-section img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 198, 0, 0.2);
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
}

.slider-track .gallery-item {
  min-width: 100%;
}

.gallery-item {
  position: relative;
  height: 320px;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
  margin: 0;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--gallery-image, transparent) center / cover;
  filter: blur(16px);
  opacity: 0.3;
  transform: scale(1.08);
}

.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-item span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 800;
  z-index: 2;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  pointer-events: auto;
}

.slider-dots button.active {
  width: 28px;
  background: var(--yellow);
}

.videos {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.07), transparent 40%),
    var(--soft);
}

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

.video-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(9, 13, 20, 0.07);
}

.video-card iframe,
.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-card h3 {
  padding: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 440px);
  gap: 40px;
  padding: 56px clamp(18px, 6vw, 76px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(247, 198, 0, 0.16), transparent 34%),
    #111318;
  border-top: 7px solid var(--yellow);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(27, 30, 37, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.contact-line,
.social-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-link {
  color: var(--yellow);
  font-weight: 900;
}

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #20b15a, #26d96e);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.float-whatsapp span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 21px;
  line-height: 1;
}

.float-whatsapp strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes loadingBar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

@keyframes scanLine {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--soft);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  background: var(--dark);
  color: #fff;
}

.admin-sidebar img {
  width: 180px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 30px;
}

.admin-sidebar p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.admin-panel {
  margin: 28px;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(10, 14, 22, 0.08);
}

.admin-topbar {
  justify-content: space-between;
  margin-bottom: 22px;
}

.hidden {
  display: none;
}

.cms-form {
  display: grid;
  gap: 18px;
}

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

.editor-list {
  display: grid;
  gap: 12px;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.editor-row.wide {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.editor-row button {
  min-height: 44px;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .service-grid,
  .video-grid,
  .intro,
  .split-section,
  .contact-section,
  .admin-shell,
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .editor-row,
  .editor-row.wide {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero-slide img {
    top: 94px;
    right: 16px;
    left: 16px;
    bottom: auto;
    width: calc(100% - 32px);
    height: 290px;
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-top: 400px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand img {
    width: 92px;
  }

  .header-call {
    padding: 10px;
    font-size: 13px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding: 370px 0 56px;
  }

  h1 {
    font-size: 31px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .gallery-item {
    height: 240px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-control {
    display: none;
  }

  .hero-dots {
    bottom: 24px;
    justify-content: center;
    padding-right: 0;
  }
}
