/* ========================================
   Base
======================================== */
:root {
  --neutral-dark: #212121;
  --neutral-light: #fafaf9;
  --gold-1: #f9a825;
  --gold-2: #f4dc82;
  --text-muted: #d1d5db;
  --white: #ffffff;
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.18);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--neutral-light);
  color: var(--neutral-dark);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1280px, 100% - 32px);
  margin: 0 auto;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(33, 33, 33, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.progress-line {
  height: 4px;
  width: 0;
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
  transition: width 0.15s linear;
}

.header-inner {
  min-height: 86px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-2);
  transition: transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-2);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 58px;
  height: 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lang-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 132px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  padding: 6px;
  display: none;
}

.lang-dropdown.is-open .lang-menu {
  display: grid;
  gap: 4px;
}

.lang-option {
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
}

.lang-option:hover {
  background: #f3f4f6;
  color: #111827;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: inherit;
  padding: 9px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* ========================================
   Hero
======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.hero-video.is-loop-fading {
  opacity: 0.82;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 120px 16px 64px;
  text-align: center;
  color: var(--white);
}

.hero-logo {
  margin: 0 auto 28px;
  width: auto;
  height: clamp(120px, 18vw, 190px);
}

.fade-up {
  opacity: 0;
  transform: translateY(38px);
}

.fade-delay-1 {
  transition-delay: 0.2s;
}

.fade-delay-2 {
  transition-delay: 0.45s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  margin: 0 0 40px;
  font-size: clamp(20px, 2.6vw, 32px);
  color: rgba(255, 255, 255, 0.95);
  min-height: 1.4em;
}

.hero-tagline.is-visible {
  opacity: 1;
}

.hero-tagline.typing {
  border-right: 2px solid rgba(255, 255, 255, 0.95);
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  50% {
    border-color: transparent;
  }
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  min-width: 240px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: var(--neutral-dark);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #000000;
  color: var(--white);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--neutral-dark);
  transform: translateY(-1px) scale(1.02);
}

/* ========================================
   Section Header
======================================== */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 20px;
  color: #6b7280;
}

.section-head-dark p {
  color: #d1d5db;
}

/* ========================================
   About Timeline
======================================== */
.about-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--neutral-light);
}

.about-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: center / cover no-repeat url("../assets/images/shield02-01.svg");
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #9ca3af;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--gold-1), var(--gold-2));
  box-shadow:
    0 0 14px rgba(249, 168, 37, 0.45),
    0 0 24px rgba(244, 220, 130, 0.3);
  z-index: 2;
}

.timeline-comet {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 220, 130, 0.92) 0%, rgba(249, 168, 37, 0.6) 45%, rgba(249, 168, 37, 0) 75%);
  box-shadow:
    0 0 14px 4px rgba(244, 220, 130, 0.55),
    0 0 26px 10px rgba(249, 168, 37, 0.28);
  z-index: 4;
}

.timeline-card {
  position: relative;
  width: calc(50% - 28px);
  padding: 28px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--neutral-dark);
  box-shadow: 0 0 15px rgba(249, 168, 37, 0.45);
}

.timeline-card.left {
  justify-self: start;
}

.timeline-card.left::before {
  right: -36px;
}

.timeline-card.right {
  justify-self: end;
}

.timeline-card.right::before {
  left: -36px;
}

.timeline-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.timeline-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

/* ========================================
   Companies
======================================== */
.companies-section {
  padding: 96px 0;
  background: var(--neutral-dark);
  min-height: 100vh;
  overflow: hidden;
}

.companies-wrap {
  max-width: 1320px;
}

.carousel-stage {
  position: relative;
  height: 730px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage.is-hidden {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #212121;
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.company-card {
  width: min(100%, 760px);
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-strong);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.company-card:hover {
  transform: translateY(-10px);
}

.company-card.card-transition {
  animation: card-in 0.45s ease;
}

.company-card.card-transition.card-transition-left {
  animation: card-swap-left 0.48s ease;
}

.company-card.card-transition.card-transition-right {
  animation: card-swap-right 0.48s ease;
}

@keyframes card-in {
  from {
    opacity: 0.75;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-swap-left {
  from {
    opacity: 0.45;
    transform: translateX(108px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes card-swap-right {
  from {
    opacity: 0.45;
    transform: translateX(-108px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.company-card:hover .company-overlay h3 {
  letter-spacing: 0.04em;
  transition: letter-spacing 0.25s ease;
}

.company-card:hover .company-overlay span {
  width: 88px;
  transition: width 0.25s ease;
}

.company-card.active {
  position: relative;
  z-index: 3;
}

.company-card.side {
  position: absolute;
  z-index: 1;
  width: min(84%, 620px);
  opacity: 0.6;
  transform: scale(0.9);
}

.company-card.side-left {
  left: 2%;
}

.company-card.side-right {
  right: 2%;
}

.company-image {
  position: relative;
  min-height: 430px;
  background-size: cover;
  background-position: center;
}

.company-retail {
  background-image: url("../assets/images/Parent_UltimateRetail_650x400.jpg");
}

.company-upay {
  background-image: url("../assets/images/Parent_UPay_650x400.jpg");
}

.company-doors {
  background-image: url("../assets/images/Parent_UltimateDoors_650x400.jpg");
}

.company-works {
  background-image: url("../assets/images/Parent_UltimateWorks_650x400.jpg");
}

.company-logistics {
  background-image: url("../assets/images/Parent_ULogistics_650x400.jpg");
}

.company-labs {
  background-image: url("../assets/images/Parent_ULabs_650x400.jpg");
}

.company-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.company-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  padding: 24px;
}

.company-overlay h3 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
}

.company-overlay span {
  width: 64px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
}

.company-content {
  padding: 22px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.company-content p {
  margin: 0;
  color: #374151;
  font-size: 15px;
}

.company-meta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.company-meta strong,
.company-meta em {
  color: #bc8a26;
  font-size: 14px;
  font-style: normal;
}

.company-meta em {
  transition: transform 0.2s ease;
}

.company-card:hover .company-meta em {
  transform: translateX(4px);
}

.company-child-view {
  display: none;
  min-height: 640px;
}

.company-child-view.is-open {
  display: block;
}

.company-child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.child-back-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  cursor: pointer;
  transition: transform 0.2s ease;
}

.child-back-btn:hover {
  transform: scale(1.05);
}

#child-company-title {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
}

.child-header-spacer {
  width: 82px;
}

.company-child-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.child-product-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-strong);
  transition: transform 0.25s ease;
}

.child-product-card:hover {
  transform: translateY(-8px);
}

.child-product-image {
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.child-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.child-product-title {
  margin: 0;
  font-size: 20px;
  color: #ffffff;
  text-align: center;
}

.child-product-description {
  margin: 0;
  font-size: 14px;
  color: #d1d5db;
  text-align: center;
}

.child-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}

.child-product-link::after {
  content: ">";
  margin-left: 8px;
  line-height: 1;
}

/* ========================================
   Features
======================================== */
.features-section {
  padding: 96px 0;
  background: var(--neutral-light);
}

.features-grid {
  display: grid;
  gap: 16px;
  justify-content: center;
}

.features-grid.top-row {
  grid-template-columns: repeat(3, minmax(0, 350px));
  margin-bottom: 24px;
}

.features-grid.bottom-row {
  grid-template-columns: repeat(2, minmax(0, 350px));
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  min-height: 220px;
  padding: 34px 28px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
}

.feature-card:hover img {
  transform: scale(1.08);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
}

/* ========================================
   CTA
======================================== */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(140deg, #bc8437 0%, #f1cd64 100%);
}

.cta-inner h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: #000000;
}

.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 10px;
  background: var(--neutral-dark);
  color: transparent;
  font-size: 20px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  background-image: linear-gradient(var(--neutral-dark), var(--neutral-dark)), linear-gradient(90deg, var(--gold-1), var(--gold-2));
  background-origin: border-box;
  background-clip: padding-box, text;
  -webkit-background-clip: padding-box, text;
  animation: cta-pulse 1.5s ease-in-out infinite;
}

.cta-btn:hover {
  transform: scale(1.08);
}

@keyframes cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* ========================================
   Contact
======================================== */
.contact-section {
  padding: 96px 0;
  background: linear-gradient(160deg, #1f1f1f 0%, #2d2d2d 45%, #1f1f1f 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.contact-form-wrap,
.contact-details {
  border-radius: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-strong);
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}

.contact-head {
  margin-bottom: 24px;
}

.contact-head h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-head p {
  margin: 0;
  color: #d1d5db;
  font-size: 16px;
}

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

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

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: #f3f4f6;
  font-size: 14px;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--gold-1);
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.25);
}

.contact-submit {
  justify-self: start;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  color: #212121;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

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

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-feedback {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-feedback--success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-feedback--error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-field-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin-top: 5px;
}

.contact-field-input--error {
  border-color: #f87171 !important;
  outline-color: #f87171;
}

.contact-details {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.contact-details h3 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
}

.contact-details > p {
  margin: 0 0 24px;
  color: #d1d5db;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  stroke: url(#goldenGradient);
  stroke-width: 2;
  margin-top: 2px;
}

.contact-detail-item span {
  display: block;
  margin-bottom: 3px;
  color: #9ca3af;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-item a,
.contact-detail-item p {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.contact-detail-item a:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.contact-map {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 220px;
  flex: 1;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

/* ========================================
   Footer
======================================== */
.site-footer {
  position: relative;
  padding: 48px 0 18px;
  background: var(--neutral-dark);
  color: #ffffff;
}

.defs-only {
  position: absolute;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  color: #d1d5db;
}

.footer-links h4,
.footer-social h4 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.icon-link {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-links a:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.social-row {
  display: flex;
  gap: 14px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-2);
  background: #2f2f2f;
  transition: all 0.2s ease;
}

.icon-social {
  width: 24px;
  height: 24px;
}

.social-row a:hover {
  color: #212121;
  background: var(--gold-2);
}

.site-footer hr {
  margin: 34px 0 16px;
  border: none;
  border-top: 1px solid #4b5563;
}

.copyright {
  text-align: center;
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #212121;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1023px) {
  .main-nav {
    gap: 22px;
  }

  .carousel-stage {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 58px;
  }

  .carousel-arrow {
    display: grid;
    width: 42px;
    height: 42px;
  }

  .carousel-prev {
    left: 6px;
  }

  .carousel-next {
    right: 6px;
  }

  .company-card.side {
    display: none;
  }

  .company-card.active {
    width: min(100%, 620px);
    margin: 0 auto;
    transform: none;
    opacity: 1;
  }

  .timeline-card h3 {
    font-size: 20px;
  }

  .features-grid.top-row,
  .features-grid.bottom-row {
    grid-template-columns: repeat(2, minmax(0, 350px));
  }

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

  .company-child-grid {
    max-width: 920px;
    margin: 0 auto;
    gap: 16px;
  }

  .child-product-card {
    border-radius: 18px;
  }

  .child-product-image {
    height: 190px;
  }

  .child-product-body {
    padding: 14px;
    gap: 8px;
  }

  .child-product-title {
    font-size: 18px;
  }

  .child-product-description {
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .header-inner {
    padding: 12px 20px;
  }

  .main-nav {
    display: none;
  }

  .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10010;
  }

  .mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: min(82vw, 360px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px 20px;
    background: #ffffff;
    color: #212121;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .mobile-nav-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .mobile-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-nav a {
    font-weight: 500;
    color: #212121;
    padding: 6px 2px;
  }

  .mobile-lang-switch {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 8px;
  }

  .mobile-lang-option {
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    background: #f9fafb;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-lang-option:hover {
    background: #f3f4f6;
  }

  body.menu-open .mobile-overlay {
    display: block;
  }

  body.menu-open .mobile-overlay .mobile-nav {
    transform: translateX(0);
  }

  .timeline {
    gap: 18px;
  }

  .timeline-line {
    left: 24px;
    transform: none;
  }

  .timeline-progress {
    left: 24px;
    transform: none;
  }

  .timeline-comet {
    left: 24px;
    transform: translate(-50%, -50%);
  }

  .timeline-card,
  .timeline-card.left,
  .timeline-card.right {
    width: calc(100% - 48px);
    justify-self: end;
  }

  .timeline-card::before,
  .timeline-card.left::before,
  .timeline-card.right::before {
    left: -33px;
    right: auto;
  }

  .carousel-stage {
    gap: 0;
    padding: 0 52px;
  }

  .company-card.active {
    width: min(100%, 560px);
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .carousel-prev {
    left: 4px;
  }

  .carousel-next {
    right: 4px;
  }

  .company-image {
    min-height: 320px;
  }

  .company-child-view {
    min-height: auto;
  }

  .company-child-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    justify-content: center;
  }

  .child-product-image {
    height: 165px;
  }

  .child-product-body {
    padding: 12px;
  }

  .features-grid.top-row,
  .features-grid.bottom-row {
    grid-template-columns: 1fr;
  }

  .contact-field-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap,
  .contact-details {
    padding: 24px;
  }

  .contact-map {
    min-height: 240px;
    flex: unset;
  }

  .contact-submit {
    width: 100%;
    justify-self: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .brand img {
    height: 48px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero-tagline {
    font-size: 21px;
  }

  .hero-tagline.typing {
    border-right: none;
    animation: none;
  }

  .btn {
    min-width: 78%;
  }

  .section-head p {
    font-size: 18px;
  }

  .feature-card {
    min-height: 180px;
    padding: 26px 20px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .company-child-header {
    margin-bottom: 18px;
  }

  #child-company-title {
    font-size: 24px;
  }

  .child-header-spacer {
    width: 66px;
  }

  .company-child-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .carousel-stage {
    padding: 0 46px;
  }

  .company-card.active {
    width: min(100%, 440px);
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .child-product-image {
    height: 145px;
  }

  .child-product-title {
    font-size: 17px;
  }

  .child-product-description {
    font-size: 12px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
