/* ===== Variables ===== */
:root {
  --navy: #0c2d4d;
  --navy-light: #164670;
  --gold: #c99e4b;
  --gold-light: #d8b46d;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #2b2b2b;
  --text-light: #666666;
  --muted: #f0ede6;
  --border: rgba(12, 45, 77, 0.1);
  --shadow: 0 4px 20px rgba(12, 45, 77, 0.06);
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

.container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 38px;
  width: auto;
}

.nav-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-left: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
}

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

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.menu-toggle span {
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-company {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}

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

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

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

.about-text .lead {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-light);
}

.about-text strong {
  color: var(--navy);
  font-weight: 600;
}

.about-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.about-card-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.about-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-card-item:first-child {
  padding-top: 0;
}

.about-card-item h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-card-item p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== Services ===== */
.services {
  background: var(--cream);
}

.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.service-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 45, 77, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  color: var(--navy);
  border-radius: 10px;
  font-size: 20px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Why ===== */
.why {
  background: var(--navy);
  color: var(--white);
}

.why .section-tag {
  color: var(--gold-light);
}

.why .section-header h2 {
  color: var(--white);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.why-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 3px 12px;
  margin-bottom: 18px;
}

.why-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why-body p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

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

.contact-item {
  padding: 22px 26px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

.contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}

.contact-item a {
  color: var(--navy);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.contact-cta h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
  line-height: 1.7;
}

.contact-cta .btn-primary {
  background: var(--gold);
  color: var(--navy);
  align-self: center;
}

.contact-cta .btn-primary:hover {
  background: var(--gold-light);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0 36px;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 18px;
}

.footer-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-en {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .nav-company {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 70%;
    max-width: 260px;
    height: calc(100vh - 68px);
    background: var(--white);
    flex-direction: column;
    padding: 28px;
    gap: 22px;
    box-shadow: -6px 0 30px rgba(12, 45, 77, 0.08);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 90px;
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
  }

  .section {
    padding: 60px 0;
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    flex: 0 0 100%;
  }

  .about-card {
    padding: 24px;
  }

  .contact-cta {
    padding: 32px 24px;
  }
}
