/* ==========================================================================
   Wan Zhong — Site #7: Ocean + Coral
   Meizhou Wanzhong Network Technology Co., Ltd.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{cursor:pointer;font-family:inherit;border:none;background:none}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f87171;
  margin-bottom: 12px;
}

/* --- TYPOGRAPHY ---------------------------------------------------------- */
h1,h2,h3,h4,h5,h6{line-height:1.2;font-weight:700;color:#0f172a}

h1{font-size:clamp(2.25rem,5vw,3.5rem)}
h2{font-size:clamp(1.75rem,3.5vw,2.5rem)}
h3{font-size:clamp(1.25rem,2vw,1.5rem)}
h4{font-size:1.125rem}

p{color:#334155}

/* --- NAVIGATION ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12,74,110,0.08);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(12,74,110,0.08);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0c4a6e;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #f87171;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f87171;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0c4a6e;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #0c4a6e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 80px 40px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  }

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

  .nav-toggle {
    display: flex;
  }
}

/* --- HERO — Full-Screen Circle Split ------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  padding-top: 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding: 80px 0;
}

.hero-content .section-label {
  margin-bottom: 16px;
}

.hero-content h1 {
  color: #0f172a;
  margin-bottom: 8px;
}

.hero-divider {
  width: 72px;
  height: 3px;
  background: #f87171;
  margin: 20px 0 24px;
  border-radius: 2px;
}

.hero-content .hero-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #0c4a6e;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(12,74,110,0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0b3d5c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,74,110,0.35);
}

.btn-secondary {
  background: transparent;
  color: #0c4a6e;
  border: 2px solid #0c4a6e;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #0c4a6e;
  color: #ffffff;
}

.btn-coral {
  background: #f87171;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(248,113,113,0.3);
}

.btn-coral:hover,
.btn-coral:focus-visible {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(248,113,113,0.4);
}

.hero-circle {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 30%, #38bdf8 70%, #7dd3fc 100%);
  z-index: 1;
  opacity: 0.92;
}

.hero-circle::after {
  content: '';
  position: absolute;
  inset: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  .hero-content {
    width: 65%;
  }
  .hero-circle {
    width: 600px;
    height: 600px;
    right: -100px;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-content {
    width: 100%;
    padding: 100px 0 40px;
    text-align: center;
  }
  .hero-content .hero-subtitle {
    max-width: 100%;
  }
  .hero-divider {
    margin: 20px auto 24px;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-circle {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    flex-shrink: 0;
  }
}

/* --- SERVICES — Alternating Image-Text Rows ------------------------------ */
.services {
  padding: 100px 0;
  background: #ffffff;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header h2 {
  margin-bottom: 12px;
}

.services-header p {
  color: #64748b;
  font-size: 1.0625rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.35s ease;
  border-radius: 12px;
  padding: 48px 24px;
  margin-bottom: 0;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row:hover {
  background-color: #f8fafc;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-icon-block {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-decorative {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.service-icon-decorative.ocean {
  background: linear-gradient(135deg, #ecfeff, #e0f2fe);
}

.service-icon-decorative.coral-bg {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.service-icon-decorative.sky {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.service-icon-decorative.warm {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.service-text {
  flex: 1;
}

.service-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.service-text p {
  color: #64748b;
  margin-bottom: 16px;
  max-width: 520px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #334155;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 36px 16px;
  }
  .service-icon-block {
    flex: 0 0 auto;
  }
  .service-icon-decorative {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
  .service-text p {
    max-width: 100%;
  }
  .service-features {
    align-items: center;
  }
}

/* --- ABOUT — Full-Width Stats Banner ------------------------------------- */
.about {
  padding: 0;
  background: #0c4a6e;
  color: #ffffff;
}

.about-stats {
  padding: 80px 0 48px;
  text-align: center;
}

.about-stats .section-label {
  color: #7dd3fc;
}

.about-stats h2 {
  color: #ffffff;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9375rem;
  color: #7dd3fc;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-description {
  padding: 0 0 80px;
  text-align: center;
}

.about-description p {
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* --- INDUSTRIES — Filterable Grid ---------------------------------------- */
.industries {
  padding: 100px 0;
  background: #f8fafc;
}

.industries-header {
  text-align: center;
  margin-bottom: 40px;
}

.industries-header h2 {
  margin-bottom: 12px;
}

.industries-header p {
  color: #64748b;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 24px;
  color: #334155;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: #0c4a6e;
  color: #0c4a6e;
}

.filter-btn.active {
  background: #0c4a6e;
  color: #ffffff;
  border-color: #0c4a6e;
}

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

.industry-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border-top: 3px solid transparent;
  transition: all 0.35s ease;
  box-shadow: 0 2px 12px rgba(12,74,110,0.04);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12,74,110,0.08);
}

.industry-card.filtered {
  border-top-color: #f87171;
}

.industry-card .industry-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.industry-card h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.industry-card .industry-tag {
  font-size: 0.8125rem;
  color: #64748b;
}

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

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

/* --- APPROACH — Two-Pillar Layout (Strategy + Execution) ----------------- */
.approach {
  padding: 100px 0;
  background: #ffffff;
}

.approach-header {
  text-align: center;
  margin-bottom: 56px;
}

.approach-header h2 {
  margin-bottom: 12px;
}

.approach-header p {
  color: #64748b;
}

.approach-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 48px 36px;
  box-shadow: 0 4px 20px rgba(12,74,110,0.05);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.pillar-card:hover {
  box-shadow: 0 12px 36px rgba(12,74,110,0.1);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.pillar-card h3 {
  font-size: 1.375rem;
  margin-bottom: 20px;
  color: #0c4a6e;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: #334155;
  line-height: 1.6;
}

.pillar-list li::before {
  content: '▸';
  color: #f87171;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.approach-cta {
  text-align: center;
}

@media (max-width: 640px) {
  .approach-pillars {
    grid-template-columns: 1fr;
  }
}

/* --- CONTACT — Full-Width with Floating Labels --------------------------- */
.contact {
  padding: 100px 0;
  background: #f8fafc;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h2 {
  margin-bottom: 12px;
}

.contact-header p {
  color: #64748b;
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(12,74,110,0.06);
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 16px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: #0c4a6e;
  background: #ffffff;
}

.form-group label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #64748b;
  pointer-events: none;
  transition: all 0.25s ease;
  background: transparent;
  padding: 0 4px;
}

.form-group.textarea-group label {
  top: 24px;
  transform: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  transform: none;
  font-size: 0.8125rem;
  color: #0c4a6e;
  font-weight: 600;
  background: #ffffff;
}

.form-group.textarea-group input:focus + label,
.form-group.textarea-group textarea:focus + label,
.form-group.textarea-group textarea:not(:placeholder-shown) + label {
  top: -10px;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit .btn-coral {
  width: 100%;
  max-width: 280px;
  padding: 16px 32px;
  font-size: 1rem;
}

.contact-address {
  text-align: center;
  margin-top: 32px;
  color: #64748b;
  font-size: 0.9375rem;
}

@media (max-width: 480px) {
  .contact-card {
    padding: 32px 20px;
  }
}

/* --- CTA — Geometric Background Pattern ---------------------------------- */
.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #ffffff;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(12,74,110,0.03) 48%, rgba(12,74,110,0.03) 52%, transparent 52%) 40px 40px,
    linear-gradient(-45deg, transparent 48%, rgba(12,74,110,0.03) 48%, rgba(12,74,110,0.03) 52%, transparent 52%) 40px 40px;
  background-size: 80px 80px;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #0f172a;
  margin-bottom: 12px;
}

.cta-content p {
  color: #64748b;
  font-size: 1.0625rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FOOTER -------------------------------------------------------------- */
.footer {
  background: #0c4a6e;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- LEGAL PAGES (privacy.html / terms-of-service.html) ------------------ */
.legal-page {
  padding: 120px 0 80px;
  background: #ffffff;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  color: #0c4a6e;
  margin-bottom: 8px;
}

.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 40px;
}

.legal-page .legal-section {
  margin-bottom: 36px;
}

.legal-page .legal-section h2 {
  font-size: 1.25rem;
  color: #0c4a6e;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-page .legal-section p,
.legal-page .legal-section ul {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page .legal-section ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-page .legal-section ul li {
  margin-bottom: 8px;
}

.legal-page .legal-section a {
  color: #0c4a6e;
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: #0c4a6e;
  font-weight: 600;
  margin-bottom: 32px;
  transition: gap 0.3s ease;
}

.legal-back:hover {
  gap: 12px;
}

/* --- SCROLL ANIMATIONS --------------------------------------------------- */
.appear {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.appear.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.appear-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.appear-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.appear-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.appear-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.appear-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.appear-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.appear-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* --- FOCUS VISIBLE ------------------------------------------------------- */
:focus-visible {
  outline: 2px solid #0c4a6e;
  outline-offset: 3px;
}

/* --- SKIP LINK ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #0c4a6e;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 10000;
  font-size: 0.875rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

/* --- FORM SUCCESS MESSAGE ------------------------------------------------ */
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #0c4a6e;
  font-weight: 600;
  font-size: 1rem;
}

.form-success.show {
  display: block;
}

/* --- MOBILE NAV OVERLAY -------------------------------------------------- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

.nav-overlay.show {
  display: block;
}
