/* ============================================
   HAI YANG BIO-TECH — Bauhaus Geometric
   ============================================ */

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

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

body {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  background: #FAFAFA;
  color: #1A1A1A;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 700;
}
a:hover { text-decoration: underline; }

/* --- Geometric Decorations (shared) --- */
.geo-circle {
  border-radius: 50%;
  position: absolute;
}
.geo-square {
  position: absolute;
}
.geo-line {
  position: absolute;
  height: 4px;
  transform-origin: left center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 4px solid #1A1A1A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1A1A1A;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
}
.nav-logo-icon .circle { width: 20px; height: 20px; background: #DC2626; border-radius: 50%; position: absolute; top: 2px; left: 2px; }
.nav-logo-icon .square { width: 16px; height: 16px; border: 2.5px solid #2563EB; position: absolute; bottom: 2px; right: 2px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}
.nav-links a:hover {
  text-decoration: none;
  border-bottom-color: #EAB308;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #1A1A1A;
}

/* ============================================
   HERO — Asymmetric Bauhaus
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem clamp(1rem, 4vw, 3rem) 4rem;
  overflow: hidden;
  background: #FAFAFA;
}

/* Large red circle — left side */
.hero .geo-circle-large {
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  background: #DC2626;
  border-radius: 50%;
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-55%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .geo-circle-large h1 {
  color: #FAFAFA;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  text-align: center;
  max-width: 70%;
  line-height: 1.1;
}

/* Blue square frame — right side */
.hero .geo-square-frame {
  width: clamp(180px, 25vw, 340px);
  height: clamp(180px, 25vw, 340px);
  border: 6px solid #2563EB;
  position: absolute;
  right: -3%;
  top: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero .geo-square-frame p {
  font-weight: 900;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563EB;
  text-align: center;
  line-height: 1.3;
}

/* Yellow accent line */
.hero .geo-line-yellow {
  position: absolute;
  bottom: 18%;
  right: 10%;
  width: clamp(120px, 20vw, 240px);
  height: 5px;
  background: #EAB308;
}

/* Hero text block */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: 5%;
  padding-top: 2rem;
}

.hero-content .hero-tag {
  display: inline-block;
  background: #1A1A1A;
  color: #FAFAFA;
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: #5C5C5C;
  max-width: 460px;
  margin: 1rem 0 2rem;
}

.hero-content .btn {
  display: inline-block;
  background: #EAB308;
  color: #1A1A1A;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: 3px solid #1A1A1A;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-content .btn:hover {
  text-decoration: none;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 #1A1A1A;
}

/* Small geometric accents */
.hero-accent-1 {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #DC2626;
  top: 22%;
  left: 48%;
}

.hero-accent-2 {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #2563EB;
  bottom: 25%;
  left: 55%;
}

.hero-accent-3 {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #EAB308;
  top: 30%;
  right: 22%;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #EAB308;
}

.section-header p {
  color: #5C5C5C;
  margin-top: 1.2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   SERVICES — 2×3 Grid
   ============================================ */
.services {
  padding: 6rem clamp(1rem, 4vw, 3rem);
  background: #FFFFFF;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #FAFAFA;
  border: 3px solid #1A1A1A;
  padding: 2rem 1.5rem;
  position: relative;
  transition: transform 0.2s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.service-card:nth-child(6n+1)::before,
.service-card:nth-child(6n+4)::before { background: #DC2626; }
.service-card:nth-child(6n+2)::before,
.service-card:nth-child(6n+5)::before { background: #2563EB; }
.service-card:nth-child(6n+3)::before,
.service-card:nth-child(6n+6)::before { background: #EAB308; }

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  position: relative;
}

.service-card .service-icon.circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #DC2626;
}
.service-card .service-icon.square {
  width: 44px; height: 44px;
  border: 3px solid #2563EB;
}
.service-card .service-icon.tri {
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 40px solid #EAB308;
  background: none;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: #5C5C5C;
  font-size: 0.9rem;
}

/* ============================================
   ABOUT — Split with geometric decorations
   ============================================ */
.about {
  padding: 6rem clamp(1rem, 4vw, 3rem);
  background: #FAFAFA;
  position: relative;
  overflow: hidden;
}

/* Large decorative shapes */
.about .geo-decor-1 {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 12px solid #DC2626;
  border-radius: 50%;
  top: -40px;
  right: -60px;
  opacity: 0.15;
}

.about .geo-decor-2 {
  position: absolute;
  width: 140px;
  height: 140px;
  background: #2563EB;
  bottom: -30px;
  left: -40px;
  opacity: 0.1;
}

.about .geo-decor-3 {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 8px solid #EAB308;
  top: 40%;
  right: 8%;
  opacity: 0.2;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text h2 span {
  display: inline-block;
  background: #EAB308;
  padding: 0 8px;
}

.about-text p {
  color: #5C5C5C;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text .about-contact {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 3px solid #1A1A1A;
  background: #FFFFFF;
}

.about-text .about-contact p {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.about-visual {
  position: relative;
  height: 400px;
}

.about-visual .av-circle {
  position: absolute;
  width: 180px;
  height: 180px;
  background: #DC2626;
  border-radius: 50%;
  top: 0;
  left: 10%;
}

.about-visual .av-square {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 6px solid #2563EB;
  bottom: 0;
  right: 10%;
}

.about-visual .av-line {
  position: absolute;
  width: 120px;
  height: 6px;
  background: #EAB308;
  top: 55%;
  left: 25%;
  transform: rotate(-20deg);
}

.about-visual .av-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #1A1A1A;
  border-radius: 50%;
  top: 45%;
  right: 35%;
}

/* ============================================
   STATS — 3 outline boxes
   ============================================ */
.stats {
  padding: 5rem clamp(1rem, 4vw, 3rem);
  background: #FFFFFF;
  border-top: 4px solid #1A1A1A;
  border-bottom: 4px solid #1A1A1A;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-box {
  background: transparent;
  border: 4px solid #1A1A1A;
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.stat-box:nth-child(1) { border-color: #DC2626; }
.stat-box:nth-child(2) { border-color: #2563EB; }
.stat-box:nth-child(3) { border-color: #EAB308; }

.stat-box .stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C5C5C;
}

/* ============================================
   PROCESS — Horizontal building blocks
   ============================================ */
.process {
  padding: 6rem clamp(1rem, 4vw, 3rem);
  background: #FAFAFA;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.process-step .step-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1A1A1A;
  min-width: 40px;
  text-align: right;
}

.process-step .step-bar-wrap {
  flex: 1;
  height: 56px;
  background: #FFFFFF;
  border: 3px solid #1A1A1A;
  position: relative;
  overflow: hidden;
}

.process-step .step-bar {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FAFAFA;
  transition: width 1s ease;
}

.process-step:nth-child(1) .step-bar { width: 95%; background: #DC2626; }
.process-step:nth-child(2) .step-bar { width: 80%; background: #2563EB; }
.process-step:nth-child(3) .step-bar { width: 65%; background: #EAB308; color: #1A1A1A; }
.process-step:nth-child(4) .step-bar { width: 88%; background: #1A1A1A; }
.process-step:nth-child(5) .step-bar { width: 72%; background: #DC2626; }

/* ============================================
   CTA — Full-width yellow banner
   ============================================ */
.cta {
  padding: 4rem clamp(1rem, 4vw, 3rem);
  background: #EAB308;
  text-align: center;
  border-top: 4px solid #1A1A1A;
  border-bottom: 4px solid #1A1A1A;
}

.cta h2 {
  color: #1A1A1A;
  margin-bottom: 0.8rem;
}

.cta p {
  color: #1A1A1A;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-dark {
  display: inline-block;
  background: #1A1A1A;
  color: #EAB308;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: 3px solid #1A1A1A;
  cursor: pointer;
  transition: transform 0.15s;
}
.cta .btn-dark:hover {
  text-decoration: none;
  transform: scale(1.04);
}

/* ============================================
   FOOTER — Dark, minimal
   ============================================ */
.footer {
  background: #1A1A1A;
  color: #FAFAFA;
  padding: 4rem clamp(1rem, 4vw, 3rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .fl-circle {
  width: 14px; height: 14px;
  background: #DC2626;
  border-radius: 50%;
}
.footer-logo .fl-square {
  width: 12px; height: 12px;
  border: 2px solid #2563EB;
}
.footer-logo .fl-tri {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid #EAB308;
}

.footer-brand span {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: #999999;
  font-size: 0.85rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #FAFAFA;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999999;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { height: 250px; }
  .stats-grid { grid-template-columns: 1fr; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 4px solid #1A1A1A;
    gap: 1rem;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero .geo-circle-large {
    width: 220px;
    height: 220px;
    left: -40px;
    top: 15%;
    transform: none;
  }
  .hero .geo-circle-large h1 { font-size: 1.2rem; }

  .hero .geo-square-frame {
    width: 140px;
    height: 140px;
    right: -20px;
    top: 10%;
  }

  .hero-content {
    margin: 0;
    padding-top: 18rem;
  }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-step { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .process-step .step-num { text-align: left; }
}

/* ============================================
   PRIVACY / TERMS PAGES
   ============================================ */
.legal-page {
  padding: 8rem clamp(1rem, 4vw, 3rem) 4rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 60vh;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .legal-date {
  color: #999999;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.8rem;
}

.legal-page p,
.legal-page li {
  color: #5C5C5C;
  margin-bottom: 0.8rem;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page address {
  font-style: normal;
  line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
