/* Load Montserrat 700/800 */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap");

:root {
  /* Virex palette (refined) */
  --brand-hero: linear-gradient(135deg, #8b5cf6, #7c3aed, #2563eb);
  --brand-green: linear-gradient(135deg, #7c3aed, #4f46e5);
  --brand-green-200: linear-gradient(135deg, #7c3aed, #38bdf8);
  --ink: #ffffff;
  --ink-strong: #f6f7fb;
  --ink-soft: #dfe1e8;
  --accent: #8b5cf6; /* indigo-violet */
  --hover: #22d3ee; /* cyan */
  --bg: #0b0214;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.28);
  --rad: 16px;
  --timing: cubic-bezier(0.2, 0.8, 0.2, 1);
  --maxw: 1180px;
  --header-h: 68px;
  --nav-font-size: 14px;
  --nav-line-height: 22px;
  --svc-surface-1: #0d1331;
  --svc-surface-2: #0a1028;
  --svc-border: rgba(173, 197, 255, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
}

/* ===== HEADER (copied from index) ===== */
header {
  width: 100%;
  height: var(--header-h);
  background: rgba(10, 10, 22, 0.65);
  backdrop-filter: saturate(130%) blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.logo-nav img {
  width: 150px;
  height: auto;
}
.logo img {
  width: 150px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s var(--timing), color 0.3s var(--timing);
}
.logo img:hover {
  transform: translateY(-1px) scale(1.06);
  color: var(--accent);
}
.logo img {
  color: inherit;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--header-h) - 2px);
  color: var(--ink-strong);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--nav-font-size);
  line-height: var(--nav-line-height);
  letter-spacing: 0.2px;
  position: relative;
  padding: 0 2px;
  transition: color 0.25s var(--timing), transform 0.25s var(--timing);
}
nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--hover));
  transition: width 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 2px;
}
nav a:hover::after {
  width: 100%;
}
.dropdown {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  background: #0f1221;
  min-width: 240px;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.25s var(--timing);
  z-index: 999;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-content a {
  padding: 12px 16px;
  font-size: 14px;
  color: #e8eaf4;
  font-weight: 700;
  line-height: 22px;
}
.dropdown-content a:hover {
  background: #1a1f3a;
  color: #b7c4ff;
}
.contact-btn {
  background: linear-gradient(90deg, var(--accent), var(--hover));
  color: #fff;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s var(--timing), box-shadow 0.25s var(--timing);
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle .bar {
  position: absolute;
  left: 7px;
  right: 7px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.35s var(--timing), opacity 0.25s var(--timing),
    top 0.35s var(--timing);
}
.menu-toggle .bar:nth-child(1) {
  top: 11px;
}
.menu-toggle .bar:nth-child(2) {
  top: 17px;
}
.menu-toggle .bar:nth-child(3) {
  top: 23px;
}
.menu-toggle.active .bar:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  top: 17px;
  transform: rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 17, 0.45);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--timing);
  z-index: 998;
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.m-close {
  display: none;
}

@media (max-width: 900px) {
  header {
    height: 64px;
    padding: 0 12px;
  }
  :root {
    --header-h: 64px;
  }
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 78%;
    background: rgba(18, 22, 44, 0.92);
    backdrop-filter: blur(16px);
    padding: 84px 18px 18px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.45s var(--timing);
    z-index: 999;
    transform: translateX(100%);
  }
  nav.active {
    display: flex;
    transform: translateX(0);
  }
  nav a {
    color: #eef1ff;
    height: auto;
    padding: 10px 2px;
  }
  nav a {
    opacity: 0;
    transform: translateX(12px);
  }
  nav.active a {
    animation: navIn 0.45s var(--timing) forwards;
  }
  nav.active a:nth-of-type(1) {
    animation-delay: 0.05s;
  }
  nav.active a:nth-of-type(2) {
    animation-delay: 0.09s;
  }
  nav.active a:nth-of-type(3) {
    animation-delay: 0.13s;
  }
  nav.active a:nth-of-type(4) {
    animation-delay: 0.17s;
  }
  nav.active a:nth-of-type(5) {
    animation-delay: 0.21s;
  }
  @keyframes navIn {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .menu-toggle {
    display: block;
  }
  .contact-btn {
    display: none;
  }
  .dropdown-content {
    position: static;
    display: none;
    background: rgba(26, 31, 58, 0.9);
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .dropdown:hover .dropdown-content {
    display: flex;
  }
  .m-contact {
    margin-top: auto;
    width: 100%;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(10, 128, 106, 0.25);
    transition: transform 0.25s var(--timing);
  }
  .m-contact:active {
    transform: scale(0.98);
  }
  .m-close {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-weight: 800;
    color: #fff;
  }
}

/* ===== CONTACT CONTENT ===== */
.contact-hero {
  margin-top: 0;
  padding: 54px 16px 24px;
  text-align: center;
  background: var(--brand-hero);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.contact-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.contact-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-strong);
}

.offices {
  background: var(--bg);
  padding: 48px 16px;
  color: var(--ink);
}
.offices .container {
  max-width: var(--maxw);
  margin: 0 auto;
}
.offices-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--ink);
}
.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.office {
  background: var(--svc-surface-1);
  padding: 20px;
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--timing);
}
.office:hover {
  transform: translateY(-4px);
}
.office h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
}
.office .addr {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 700;
}
.office .sub {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  max-width: 980px;
  margin: 54px auto 0;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .contact-hero h1 {
    font-size: 36px;
  }
}

/* ===== FORM SECTION ===== */
.touch-sec {
  background: var(--bg);
  padding: 18px 0 64px;
  color: var(--ink);
}
.touch-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.touch-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 18px 0 24px;
  color: var(--ink);
}
.touch-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: start;
}

.talk-box {
  background: var(--svc-surface-1);
  border: 1px solid var(--svc-border);
  border-radius: var(--rad);
  padding: 28px;
  box-shadow: var(--shadow);
}
.talk-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}
.talk-item {
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-size: 15px;
}
.talk-item a {
  color: var(--hover);
  text-decoration: none;
}
.talk-item a:hover {
  text-decoration: underline;
}

.form {
  background: var(--svc-surface-1);
  border: 1px solid var(--svc-border);
  border-radius: var(--rad);
  padding: 24px;
  box-shadow: var(--shadow);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 800;
}
.req {
  color: #ff6b6b;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 14px;
  background: rgba(255,255,255,.05);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--timing), box-shadow 0.2s var(--timing);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
      input:focus,
      select:focus,
      textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
      }
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}
.checks input {
  margin-right: 8px;
  accent-color: var(--accent);
}
.legal-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.legal-note a {
  color: var(--hover);
  text-decoration: none;
  font-weight: 700;
}
.legal-note a:hover {
  text-decoration: underline;
}
.submit-outer {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px;
  margin-top: 14px;
}
.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--hover));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s var(--timing), box-shadow 0.2s var(--timing);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .touch-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER (copied from index) ===== */
.footer {
  background: var(--brand-green);
}
.footer .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 16px 22px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 18px;
  padding: 8px 0 24px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text {
  font-size: 26px;
  letter-spacing: 8px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.footer-links {
  text-align: right;
}
.footer-links h4 {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}
.footer-links a {
  display: block;
  font-size: 15px;
  color: #eef1ff;
  text-decoration: none;
  margin: 6px 0;
  transition: transform 0.2s var(--timing), color 0.2s var(--timing);
}
.footer-links a:hover {
  transform: translateX(2px);
  color: #cfd7ff;
}
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.copyright {
  font-size: 13.5px;
  color: #f5f6ff;
}
.legal a {
  font-size: 13.5px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.legal a:hover {
  text-decoration: underline;
}
.iso-badge {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 14px;
  line-height: 1;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #0f142a;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--timing), opacity 0.2s;
}
.social a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.social svg {
  width: 18px;
  height: 18px;
  display: block;
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .social {
    justify-content: center;
  }
}

/* ===== FLOATING CHAT (same as index) ===== */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--timing);
  z-index: 1001;
}
.chat-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 100% 0%, #42c2a7 0%, #0a7a64 60%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.2s var(--timing), box-shadow 0.2s var(--timing);
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.chat-fab svg {
  width: 26px;
  height: 26px;
}
.chat-fab .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #42c2a7;
  opacity: 0.6;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.chat-box {
  position: fixed;
  right: 20px;
  bottom: 86px;
  width: 340px;
  max-width: calc(100vw - 28px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1003;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--timing), opacity 0.28s var(--timing);
}
.chat-box.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.chat-head {
  background: linear-gradient(90deg, var(--accent), var(--hover));
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head .tit {
  font-weight: 800;
}
.chat-head .mini {
  opacity: 0.9;
  font-size: 12px;
}
.chat-head button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}
.chat-body {
  padding: 12px;
  height: 300px;
  overflow: auto;
  background: #f8fbf9;
}
.msg {
  display: flex;
  margin: 8px 0;
}
.msg .bubble {
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 78%;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.45;
}
.msg.user {
  justify-content: flex-end;
}
.msg.user .bubble {
  background: #e6fff6;
}
.msg.bot .bubble {
  background: #fff;
}
.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eef1ef;
  background: #fff;
}
.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dfe8e4;
  outline: none;
  font-size: 14px;
}
.chat-input button {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.15s var(--timing), opacity 0.15s var(--timing);
}
.chat-input button:active {
  transform: scale(0.98);
}
@media (max-width: 420px) {
  .chat-box {
    right: 10px;
    left: 10px;
    width: auto;
  }
  .chat-fab {
    right: 12px;
    bottom: 16px;
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
