/* DMS World – plain PHP site */

:root {
  --brand: #c41620;
  --brand-dark: #8e1018;
  --brand-soft: #e24a52;
  --accent: #ed6100;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e6e2df;
  --paper: #f7f5f3;
  --white: #ffffff;
  --hero-overlay: rgba(10, 8, 8, 0.68);
  --nav-h: 92px;
  --max: 1140px;
  --font-display: "Roboto Slab", Georgia, serif;
  --font-body: "Roboto", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .nav-links a,
.site-header.menu-open .nav-links a,
.site-header.is-scrolled .nav-toggle,
.site-header.menu-open .nav-toggle {
  color: var(--ink);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  animation: logo-in 0.85s var(--ease) both;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: logo-shine 4.5s var(--ease) 1.2s infinite;
  pointer-events: none;
}

.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(196, 22, 32, 0.28);
}

.site-header.is-scrolled .brand,
.site-header.menu-open .brand {
  background: transparent;
  box-shadow: none;
}

.brand img,
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-soft);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.is-active {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  position: relative;
  color: var(--white);
  background: #0a0808;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("../images/BACKvvvv.jpg") center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.45;
}

.hero-orbs span:nth-child(1) {
  width: 280px;
  height: 280px;
  right: -40px;
  top: 12%;
  background: radial-gradient(circle, rgba(196, 22, 32, 0.55), transparent 68%);
  animation: float-orb 9s ease-in-out infinite;
}

.hero-orbs span:nth-child(2) {
  width: 180px;
  height: 180px;
  left: 8%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(237, 97, 0, 0.35), transparent 70%);
  animation: float-orb 11s ease-in-out infinite reverse;
}

.hero-orbs span:nth-child(3) {
  width: 120px;
  height: 120px;
  right: 28%;
  bottom: 22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  animation: float-orb 7.5s ease-in-out infinite 1s;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  max-width: 720px;
}

.hero-kicker,
.hero-content h1,
.hero-lead,
.hero-actions {
  animation: rise 0.9s var(--ease) both;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  animation-delay: 0.15s;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  animation-delay: 0.3s;
}

.hero h1 span {
  color: var(--brand-soft);
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-lead {
  font-size: 1.15rem;
  color: #ededed;
  margin: 0 0 2rem;
  max-width: 34ch;
  animation-delay: 0.48s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation-delay: 0.64s;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  z-index: 2;
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  animation: rise 1s var(--ease) 1.1s both;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--white);
  animation: scroll-dot 1.6s var(--ease) infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-pulse {
  box-shadow: 0 0 0 0 rgba(196, 22, 32, 0.55);
  animation: pulse-ring 2.4s ease-out infinite;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

.btn-solid {
  background: var(--brand);
  color: var(--white);
  width: 100%;
}

.btn-solid:hover {
  background: var(--brand-dark);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 640px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.section-eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--brand);
  margin-top: 0.55rem;
  transform: scaleX(0);
  transform-origin: left;
}

.section-head.center .section-eyebrow::after {
  margin-inline: auto;
  transform-origin: center;
}

.reveal.is-in .section-eyebrow::after,
.section-head.reveal.is-in .section-eyebrow::after {
  animation: line-draw 0.65s var(--ease) 0.15s both;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-head h2 span {
  color: var(--brand);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(26, 26, 26, 0.12);
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--brand);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.35;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-points {
  display: grid;
  gap: 1.5rem;
}

.why-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.why-card:last-child {
  border-bottom: 0;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 22, 32, 0.1);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: icon-pulse 3.2s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon {
  animation-delay: 0.4s;
}

.why-card:nth-child(3) .why-icon {
  animation-delay: 0.8s;
}

.why-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.why-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.why-media img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(26, 26, 26, 0.1);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 4px;
  background: #222;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(196, 22, 32, 0.28);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 1;
  transition: background 0.4s;
}

.service-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.35rem;
  color: var(--white);
  transition: transform 0.4s var(--ease);
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  background: var(--brand);
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

.service-body p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s, max-height 0.4s var(--ease);
}

.service-card:hover img,
.service-card:focus-within img {
  transform: scale(1.08);
}

.service-card:hover .service-body p,
.service-card:focus-within .service-body p {
  opacity: 1;
  max-height: 220px;
}

.service-card:hover::after,
.service-card:focus-within::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.7) 55%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-panel {
  background: var(--ink);
  color: var(--white);
  padding: 2.25rem;
  border-radius: 4px;
  min-height: 100%;
}

.contact-panel h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
}

.contact-panel > p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.contact-list .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 22, 32, 0.25);
  color: #ff8d91;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.contact-list li:hover .icon {
  transform: scale(1.08);
  background: rgba(196, 22, 32, 0.45);
}

.contact-list .icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.contact-list a:hover {
  color: #ffb4b7;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  padding: 0.8rem 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.form-alert.success {
  background: #e8f6ec;
  color: #1d6b35;
  border: 1px solid #b9e2c5;
}

.form-alert.error {
  background: #fdeeee;
  color: #8e1c20;
  border: 1px solid #f2c4c6;
}

/* Footer */
.site-footer {
  background: #120f0f;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  transition: transform 0.35s var(--ease), background 0.35s;
}

.footer-brand:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  height: 78px;
  width: auto;
}

.footer-inner strong {
  color: var(--white);
  font-family: var(--font-display);
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: #1a1a1a;
  color: #eee;
  padding: 1rem 1.15rem;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  margin-inline: auto;
}

.cookie-bar.is-visible {
  display: flex;
  animation: rise 0.45s var(--ease);
}

.cookie-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-bar .btn {
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  flex-shrink: 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2%, -1.5%);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logo-shine {
  0%,
  70% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, 14px);
  }
}

@keyframes scroll-dot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 22, 32, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(196, 22, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 22, 32, 0);
  }
}

@keyframes icon-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(196, 22, 32, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(196, 22, 32, 0);
  }
}

@keyframes line-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-media {
    order: -1;
  }

  .why-media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    color: var(--ink);
    font-size: 1.2rem;
  }

  .site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }

  .service-body p {
    opacity: 1;
    max-height: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .brand img,
  .brand-logo {
    height: 58px;
  }

  .footer-brand img {
    height: 64px;
  }

  .hero-orbs span:nth-child(1) {
    width: 180px;
    height: 180px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .hero::before {
    inset: 0;
    transform: none;
  }

  .section-eyebrow::after {
    transform: scaleX(1);
  }
}
