/* =========================================
   SHANGHAI GOOD ARRIVAL LOGISTICS CO., LTD.
   Main Stylesheet
   ========================================= */

/* ----- CSS Variables ----- */
:root {
  --color-primary: #1a73e8;
  --color-primary-dark: #0d47a1;
  --color-primary-light: #4a9aff;
  --color-accent: #e84393;
  --color-dark: #0a1628;
  --color-dark-2: #1a2a4a;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #0a1628;
  --color-border: #e8ecf1;
  --color-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header / Nav ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 10px;
  color: white;
  font-size: 20px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.logo__subtitle {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

/* Nav */
.nav__list {
  display: flex;
  gap: 4px;
}

.nav__link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
  background: rgba(26,115,232,0.06);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,115,232,0.3);
}

.btn--outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 40px; font-size: 16px; }

/* ----- Sections ----- */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(26,115,232,0.08);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 50%, #0d47a1 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,115,232,0.15) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #90caf9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: var(--transition);
}

.hero__scroll:hover { color: rgba(255,255,255,0.8); }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ----- Features ----- */
.features {
  background: var(--color-bg);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(26,115,232,0.1), rgba(13,71,161,0.05));
  border-radius: 16px;
  color: var(--color-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.feature-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ----- Services Preview ----- */
.services-preview {
  background: var(--color-bg-alt);
}

.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card__img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.service-card__body {
  padding: 24px;
}

.service-card__body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.service-card__body p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

.service-card:hover .service-card__more {
  letter-spacing: 1px;
}

/* ----- Stats ----- */
.stats {
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
  padding: 80px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  position: relative;
  color: white;
}

.stat-item__number {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(to right, #ffffff, #90caf9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-left: 2px;
}

.stat-item__label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

/* ----- CTA ----- */
.cta {
  background: var(--color-bg-alt);
  text-align: center;
}

.cta__inner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.cta__inner p {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ----- Footer ----- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer__logo i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 8px;
  font-size: 16px;
}

.footer__col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer__col h4 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__col ul li {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer__col ul li a {
  transition: var(--transition);
}

.footer__col ul li a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer__col--contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer__col--contact ul li i {
  margin-top: 4px;
  color: var(--color-primary-light);
  width: 14px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer__icp a:hover {
  color: var(--color-primary-light);
}

/* ----- Back to Top ----- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   PAGE SUB-HEADER (for inner pages)
   ========================================= */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.page-header .breadcrumb a:hover {
  color: white;
}

.page-header .breadcrumb span {
  margin: 0 8px;
}

/* ----- Page Content ----- */
.page-content {
  padding: 80px 0;
}

/* ----- About Page ----- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro__image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.about-intro__image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

.about-intro__text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-intro__text p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.values {
  margin-top: 80px;
}

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

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__icon {
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ----- Services Page ----- */
.service-detail {
  margin-bottom: 60px;
  padding: 40px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
}

.service-detail__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.service-detail__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  color: white;
  flex-shrink: 0;
}

.service-detail__header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
}

.service-detail p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}

.service-detail ul {
  margin: 16px 0;
}

.service-detail ul li {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.service-detail ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ----- Contact Page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,115,232,0.08);
  border-radius: 12px;
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: var(--color-bg-alt);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ----- News Page ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--color-text-light);
}

.news-card__body {
  padding: 24px;
}

.news-card__date {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-card__body p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

.news-card__link:hover {
  letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablet */
@media (max-width: 992px) {
  .features__grid,
  .services-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .page-content { padding: 40px 0; }

  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    padding: 80px 24px 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
  }

  .nav.open { right: 0; }

  .nav__list {
    flex-direction: column;
    gap: 8px;
  }

  .nav__link {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .features__grid,
  .services-preview__grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

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

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

  .service-detail { padding: 24px; }
  .contact-form { padding: 24px; }

  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* =========================================
   Keyframe - fade-up animation placeholder
   (Intersection Observer drives this in JS)
   ========================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
