/* ============================================
   HỮU THÀNH COMPUTER — CSS
   Font: Montserrat (display) + Be Vietnam Pro (body)
   Theme: Deep navy/teal gradient tech vibe
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Montserrat:wght@700;900&display=swap");

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a1628;
  --navy-mid: #0e2040;
  --blue: #1a3a6b;
  --teal: #0d9e8a;
  --teal-light: #18c4ac;
  --teal-glow: #0fd9be33;
  --white: #ffffff;
  --off-white: #f0f6fb;
  --text-muted: #8aacc8;
  --card-bg: #ffffff;
  --shadow: 0 8px 32px rgba(10, 22, 40, 0.15);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-main,
.btn-call {
  display: inline-block;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.btn-main {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(13, 158, 138, 0.45);
  border: none;
}
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 158, 138, 0.6);
}

button.btn-main {
  font-size: 0.9rem;
  padding: 10px 26px;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.logo h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
/* Fallback icon if no logo img */
.logo img[src=""] {
  display: none;
}

/* Nav */
nav {
  display: flex;
  gap: 6px;
}
nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Call button */
.btn-call {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.88rem;
  border: none;
  box-shadow: 0 3px 14px rgba(13, 158, 138, 0.4);
}
.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(13, 158, 138, 0.55);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-mid) 55%,
    #0b3354 100%
  );
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}
/* decorative wave blobs */
.hero::before {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 420px;
  height: 320px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    ellipse,
    rgba(26, 96, 180, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-text p {
  color: var(--teal-light);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-img {
  flex: 0 0 42%;
  max-width: 420px;
}
.hero-img img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* ── About ── */
.about {
  background: var(--off-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--teal),
    var(--teal-light),
    var(--blue)
  );
}

.about-content {
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-content > img {
  flex: 0 0 40%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-content > div {
  flex: 1;
}

.about-content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.about-content p {
  color: #4a6080;
  font-size: 0.97rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-content ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
}
.about-content li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 50%;
  flex-shrink: 0;
  /* checkmark via mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E")
    center/16px no-repeat;
}

/* ── Services ── */
.services {
  background: var(--white);
  padding: 80px 0;
}

.services > .container > h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  text-align: center;
  color: var(--navy);
  margin-bottom: 48px;
  letter-spacing: 0.06em;
  position: relative;
}
.services > .container > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
  margin: 10px auto 0;
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.09);
  border: 1.5px solid rgba(13, 158, 138, 0.1);
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(13, 158, 138, 0.18);
  border-color: rgba(13, 158, 138, 0.4);
}

.card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto;
}

.card h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  min-height: 48px; /* fix chiều cao */
  line-height: 1.4;
}

.card button {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(13, 158, 138, 0.35);
  margin-top: auto;
}
.card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(13, 158, 138, 0.5);
}

/* ── Wave divider (purely CSS) ── */
.wave-divider {
  width: 100%;
  height: 64px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
  margin-top: -2px;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  padding: 28px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}
footer a {
  color: var(--teal-light);
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

/* Icon tích xanh teal bằng CSS thuần */
.check-list li::before {
  content: "";
  display: inline-flex;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Floating Contact */

.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.floating-contact a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.floating-contact a:hover {
  transform: scale(1.1);
}

.zalo-btn {
  background: white;
}

.messenger-btn {
  background: white;
}

.floating-contact img {
  width: 30px;
  height: 30px;
}
footer {
  background: #0b1c2c;
  color: white;
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.footer-col h3 {
  margin-bottom: 15px;
}

.footer-col p {
  margin: 5px 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* css cho trang about */
.about-page {
  padding: 80px 0;
  line-height: 1.6;
}

.about-page h1 {
  margin-bottom: 20px;
}

.about-page h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

/* CSS cho trang contact */
.contact-page {
  padding: 80px 0;
}

/* GRID 2 CỘT */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;

  align-items: start; /* FIX LỆCH */
}

/* BOX BÊN PHẢI (CTA) */
.contact-highlight {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  position: sticky; /* giúp nó "dính" nhẹ khi scroll */
  top: 100px;
}

.contact-highlight h2 {
  margin-bottom: 15px;
}

/* FORM (nếu còn dùng) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 100px;
}

.contact-desc {
  margin-top: 10px;
  max-width: 600px;
}

.contact-info-block h2 {
  margin-top: 20px;
}

.contact-info li {
  margin-bottom: 8px;
}

.contact-call-text {
  margin-top: 20px;
  font-weight: 500;
}

.contact-call-text a {
  color: var(--primary);
  font-weight: 600;
}

.contact-note {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-highlight {
    position: static; /* tắt sticky trên mobile */
  }
}

/* mobile */
@media (max-width: 640px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
}
/* Mobile */
@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0b1f3a;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-img {
    max-width: 100%;
    flex: none;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-content > img {
    max-width: 100%;
    flex: none;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
}

@media (max-width: 1024px) {
  .service-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  } /* hide nav on mobile – add hamburger if needed */
  .service-box {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}
