:root {
  --orange-red: #E5392C;
  --black: #1A1A1A;
  --gap-side: 150px;
  --gap-side-inner: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow-x: hidden;
}

body {
  font-family: 'Roboto Flex', sans-serif;
  color: var(--black);
}

/* ================= SECTION ================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  flex: 1;
  padding: 48px var(--gap-side) 0 var(--gap-side);
  display: flex;
  flex-direction: column;
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-16px);
  animation: fadeDown 0.7s 0.15s ease-out forwards;
}

.logo {
  height: 90px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--orange-red);
  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--orange-red);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--orange-red);
}

.nav-links a.active::after {
  width: 100%;
}

/* ---------- HERO CONTENT ---------- */
.content-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 640px;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideIn 0.8s 0.35s cubic-bezier(.16, .84, .44, 1) forwards;
}

.hero-title {
  display: inline-block;

  font-size: 80px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;

  /* One continuous gradient for both lines */
  background: linear-gradient(90deg,
      var(--orange-red) 0%,
      var(--orange-red) 38%,
      #bb291f 45%,
      #5a0f0b 60%,
      var(--black) 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title span {
  display: block;
  color: inherit;
}

.line-1,
.line-2 {
  background: none;
  color: inherit;
}

.hero-logo {
  height: 200px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}

.hero-desc {
  margin-top: 28px;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  max-width: 560px;
  color: var(--black);
}

.phone-row {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: calc(100vw - var(--gap-side) * 2);
}

.phone-icon {
  width: 47px;
  height: 47px;
  flex-shrink: 0;
}

.phone-number {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.phone-line {
  flex: 1;
  height: 4px;
  min-width: 60px;
  background: linear-gradient(90deg, var(--orange-red) 0%, var(--black) 100%);
}

/* ---------- 3D R LOGO ---------- */
.r-mark {
  position: absolute;
  right: 370px;
  bottom: 23%;
  width: 100px;
  z-index: 2;
  opacity: 0;
  transform: translateX(50px);
  animation: fadeInR 0.9s 0.55s cubic-bezier(.16, .84, .44, 1) forwards;
  /* filter:drop-shadow(0 30px 40px rgba(0,0,0,0.18)); */
}

.r-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.r-3d-video {
  width: 600px;
  height: 400px;
}

/* ---------- TRIANGLES ---------- */
.triangle {
  position: absolute;
  z-index: 10001;
  opacity: 0;
  filter: drop-shadow(0 12px 18px rgba(229, 57, 44, 0.25));
  --tri-t: scale(1);
  transform: var(--tri-t);
}

.tri-1 {
  width: 130px;
  top: -8%;
  right: 35%;
  
  --tri-t: rotate(65deg)  scaleY(-1) scaleX(-1);
  animation: triIn 0.7s 0.5s ease-out forwards,
             floatY 5s 1s ease-in-out infinite;
}

.tri-2 {
  width: 170px;
  top: 2%;
  right: 1%;
  --tri-t: rotate(0deg);
  animation: triIn 0.7s 0.65s ease-out forwards,
             floatY 5.2s 1.35s ease-in-out infinite;
}

.tri-3 {
  width: 105px;
  top: 20%;
  right: 22%;
  --tri-t: rotate(-75deg);
  animation: triIn 0.7s 0.8s ease-out forwards,
             floatY 4.8s 1.5s ease-in-out infinite;
}

.tri-4 {
  width: 170px;
  top: 49%;
  right: 43%;
  --tri-t: rotate(-25deg);
  animation: triIn 0.7s 0.95s ease-out forwards,
             floatY 5.5s 1.65s ease-in-out infinite;
}

/* ---------- FOOTER GRADIENT STRIP ---------- */
.footer-strip {
  width: 100%;
  height: 90px;
  background: linear-gradient(90deg, var(--orange-red) 0%, var(--black) 100%);
  opacity: 0;
  position: relative;
  z-index: 10000;
  animation: fadeUp 0.8s 0.9s ease-out forwards;
}

/* ================= INNER PAGES (Services / Contact) ================= */
.page-wrap {
  align-items: flex-start;
  padding: 24px 0 64px 0;
}

.page-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 860px;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideIn 0.8s 0.35s cubic-bezier(.16, .84, .44, 1) forwards;
}

.page-title {
  display: inline-block;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--orange-red) 0%, var(--black) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-desc {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  max-width: 560px;
  color: var(--black);
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border: 1px solid rgba(26, 26, 26, 0.10);
  padding: 28px 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 57, 44, 0.45);
  box-shadow: 0 16px 30px rgba(229, 57, 44, 0.14);
}

.service-card .card-tri {
  width: 30px;
  display: block;
}

.service-card h3 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 500;
}

.service-card p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.75);
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  margin-top: 48px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-red);
}

.contact-value {
  font-size: 24px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--orange-red);
}

.contact-line {
  margin-top: 8px;
}

.contact-form {
  flex: 1.2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  color: var(--black);
  padding: 14px 16px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  background: #ffffff;
  resize: vertical;
  transition: border-color .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange-red);
}

.btn-send {
  align-self: flex-start;
  padding: 14px 44px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-red) 0%, var(--black) 100%);
  border: none;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

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

.btn-send:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  font-size: 15px;
  font-weight: 400;
}

.form-status:empty {
  display: none;
}

.form-status.ok {
  color: #1c7c3c;
}

.form-status.err {
  color: var(--orange-red);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInR {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes triIn {
  to {
    opacity: 1;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) var(--tri-t);
  }

  50% {
    transform: translateY(-14px) rotate(4deg) var(--tri-t);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width:1200px) {
  :root {
    --gap-side: 60px;
  }

  .hero-logo {
    height: 90px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-desc {
    font-size: 28px;
  }

  .page-title {
    font-size: 48px;
  }

  .page-desc {
    font-size: 22px;
  }

  .r-mark {
    width: 90px;
  }
}

@media (max-width:900px) {
  .hero-inner {
    padding: 32px 32px 0 32px;
  }

  .content-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 40px;
  }

  .hero-logo {
    height: 70px;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-desc {
    font-size: 22px;
    margin-top: 18px;
  }

  .page-title {
    font-size: 36px;
  }

  .page-desc {
    font-size: 18px;
  }

  .contact-wrap {
    gap: 36px;
  }

  .phone-row {
    margin-top: 36px;
    flex-wrap: wrap;
    width: auto;
  }

  .phone-number {
    font-size: 28px;
  }

  .r-mark {
    position: relative;
    width: 50px;
    margin: 40px auto 0 auto;
    right: auto;
    bottom: auto;
    align-self: center;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .tri-2 {
    right: 4%;
    top: 6%;
    width: 140px;
  }

  .tri-1 {
    right: 15%;
    width: 96px;
  }

  .footer-strip {
    height: 80px;
  }
}

@media (max-width:480px) {
  .logo {
    height: 34px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-logo {
    height: 50px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 32px;
  }

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

  .phone-number {
    font-size: 22px;
  }

  .phone-icon {
    width: 34px;
    height: 34px;
  }
}