/*
Theme Name: YALI Biotech
Theme URI: https://yali-biotech.com/
Author: YALI Biotech
Description: 亞立生化科技一頁式客製形象網站。
Version: 1.1.3
Text Domain: yali-biotech
*/

@font-face {
  font-family: "Swei Spring TC";
  src: url("assets/fonts/SweiSpringCJKtc-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed TW";
  src: url("assets/fonts/LINESeedTW-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed TW";
  src: url("assets/fonts/LINESeedTW-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --yali-bg: #c9caca;
  --yali-dark: #858a90;
  --yali-ink: #373536;
  --yali-orange: #ef5528;
  --yali-peach: #f3a05f;
  --yali-card: rgba(183, 184, 185, .76);
  --yali-white: #fff;
  --yali-max: 1180px;
  --yali-serif: "Swei Spring TC", "Songti TC", serif;
  --yali-sans: "LINE Seed TW", "PingFang TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--yali-bg); color: var(--yali-ink); font-family: var(--yali-sans); line-height: 1.8; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, .section-title { font-family: var(--yali-serif); font-weight: 400; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.yali-container { width: min(calc(100% - 48px), var(--yali-max)); margin-inline: auto; }
.yali-section { position: relative; padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.eyebrow { color: var(--yali-orange); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-title { margin: 16px 0 24px; color: #fff; font-family: var(--yali-serif); font-size: clamp(36px, 4vw, 64px); font-weight: 400; letter-spacing: .08em; line-height: 1.35; }
.section-lead { max-width: 780px; margin: 0 auto; font-size: 17px; }
.section-heading-icon { width: clamp(170px, 14vw, 225px); margin: 0 auto 22px; }

.site-header { position: fixed; z-index: 1000; top: 18px; left: 0; width: 100%; pointer-events: none; }
.site-header__inner { display: flex; align-items: center; gap: 30px; min-height: 62px; padding: 10px 14px 10px 28px; border-radius: 999px; background: rgba(116, 121, 127, .78); backdrop-filter: blur(14px); box-shadow: 0 10px 35px rgba(50,50,50,.08); pointer-events: auto; }
.site-logo { margin-right: auto; }
.site-logo img { width: 245px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; color: #fff; font-size: 13px; letter-spacing: .1em; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: #ffd3b0; }
.header-cta, .gradient-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #f7931e, #ef5528 58%, #f4a45f); color: #fff; font-weight: 700; letter-spacing: .08em; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.45), 0 8px 24px rgba(239,85,40,.25); transition: filter .25s ease, transform .25s ease, box-shadow .25s ease; }
.header-cta:hover, .header-cta:focus-visible, .gradient-button:hover, .gradient-button:focus-visible { filter: brightness(.82) saturate(1.08); transform: translateY(-2px); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 14px 30px rgba(132,42,18,.38); }
.menu-toggle { display: none; padding: 2px 10px; border: 0; border-radius: 14px; background: transparent; color: #fff; font-size: 30px; cursor: pointer; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: rgba(49,52,56,.38); box-shadow: 0 8px 20px rgba(40,42,46,.26); transform: translateY(-1px); }

.hero { min-height: 760px; display: grid; place-items: center; padding: 150px 0 90px; text-align: center; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -7%;
  background: url("assets/home001.png") center/cover no-repeat;
  opacity: .92;
  will-change: transform;
  animation: yali-hero-float 9s ease-in-out infinite;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(201,202,202,.08)); }
.hero__content { position: relative; z-index: 2; }
.hero h1 { margin: 0; font-family: var(--yali-serif); font-size: clamp(48px, 5.7vw, 82px); font-weight: 400; letter-spacing: .14em; line-height: 1.35; }
.hero__en { margin: 24px 0 5px; font-size: clamp(18px, 2vw, 28px); letter-spacing: .06em; }
.hero__en strong { color: var(--yali-orange); font-weight: 500; }
.hero__tagline { margin: 0 0 45px; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .14em; }

.philosophy { min-height: clamp(1460px, 99vw, 1905px); padding-top: clamp(105px, 8vw, 155px); color: #fff; background: #c9caca url("assets/section2_bg.webp") top center/100% auto no-repeat; }
.philosophy__intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(55px, 9vw, 145px); align-items: start; }
.philosophy__icon { width: clamp(170px, 14vw, 225px); margin: 0 0 30px; }
.philosophy .section-title { max-width: 570px; margin-top: 0; font-size: clamp(42px, 4vw, 64px); }
.philosophy__copy { max-width: 550px; padding-top: clamp(55px, 6vw, 100px); font-size: 17px; line-height: 2.05; letter-spacing: .035em; }
.philosophy__copy p { margin: 0 0 24px; }
.philosophy__timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 56px); margin-top: clamp(290px, calc(29vw - 100px), 455px); align-items: start; }
.timeline-card { aspect-ratio: 1201 / 2638; overflow: hidden; background: var(--card-bg) center/100% 100% no-repeat; color: var(--yali-ink); text-align: center; filter: drop-shadow(0 18px 30px rgba(61,64,67,.08)); }
.timeline-card__body { height: 59%; padding: clamp(42px, 4vw, 65px) clamp(25px, 3vw, 48px) 18px; }
.timeline-card__body strong { display: block; color: var(--yali-orange); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.2; letter-spacing: .12em; }
.timeline-card__kicker { display: block; margin: 11px 0 23px; color: #fff; font-size: clamp(13px, 1.15vw, 17px); font-weight: 700; letter-spacing: .28em; }
.timeline-card__body h3 { margin: 0 0 20px; font-family: var(--yali-sans); font-size: clamp(19px, 1.7vw, 25px); font-weight: 700; line-height: 1.5; }
.timeline-card__body p { margin: 0 0 12px; font-size: clamp(12px, 1vw, 14px); line-height: 1.75; text-align: left; }

.brand-marquee { overflow: hidden; padding: 13px 0; color: #fff; background: linear-gradient(90deg, #b98d82, #e06f47, #b98d82); }
.brand-marquee__track { display: flex; width: max-content; gap: 48px; align-items: center; animation: marquee 28s linear infinite; }
.brand-marquee__track img { flex: none; width: auto; max-width: none; height: 32px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }
@keyframes yali-hero-float {
  0%, 100% { transform: translate3d(-18px, 8px, 0) scale(1.06) rotate(-.35deg); }
  34% { transform: translate3d(28px, -34px, 0) scale(1.13) rotate(.35deg); }
  68% { transform: translate3d(-12px, 28px, 0) scale(1.09) rotate(-.12deg); }
}

.products { background: var(--yali-bg); text-align: center; }
.products .section-title { color: #fff; }
.products__intro { max-width: 760px; margin: 0 auto clamp(70px, 8vw, 120px); }
.products__intro p { margin: 0; font-size: 15px; line-height: 2; }
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.product-card { position: relative; grid-column: span 2; min-height: 430px; overflow: hidden; padding: 0; border: 0; border-radius: 46px; outline: 0; background: transparent; color: var(--yali-ink); cursor: pointer; text-align: left; box-shadow: none; transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.product-card:nth-child(-n+2) { grid-column: span 3; min-height: 490px; }
.product-card__summary, .product-card__detail { position: absolute; inset: 0; transition: opacity .35s ease, transform .35s ease; }
.product-card__summary { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 34px 24px; text-align: center; }
.product-card__visual { width: min(82%, 290px); height: 160px; margin-bottom: 28px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(80,80,80,.12)); }
.product-card:nth-child(n+3) .product-card__visual { width: min(88%, 235px); height: 125px; }
.product-card__label { display: flex; align-items: center; gap: 13px; color: var(--yali-orange); font-size: 15px; line-height: 1.25; }
.product-card__label img { width: 44px; height: 15px; object-fit: contain; }
.product-card__label strong { font-weight: 700; white-space: nowrap; }
.product-card__title { display: block; margin-top: 12px; color: #fff; font-family: var(--yali-serif); font-size: clamp(25px, 2vw, 34px); line-height: 1.25; }
.product-card__prompt { margin-top: 38px; color: #242424; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.product-card__detail { display: flex; flex-direction: column; overflow: hidden; padding: 35px 38px 30px; border-radius: inherit; background: rgba(181, 182, 183, .72); opacity: 0; transform: translateY(15px) scale(.985); pointer-events: none; }
.product-card__head { display: grid; grid-template-columns: minmax(0, 1fr) 44%; gap: 22px; align-items: center; min-height: 118px; }
.product-card__head .product-card__title { margin-top: 18px; text-align: left; }
.product-card__detail-image { width: 100%; height: 115px; object-fit: contain; }
.product-card__rule { display: block; flex: none; width: 100%; height: 1px; margin: 18px 0 20px; background: var(--yali-orange); }
.product-card__features { display: grid; gap: 8px; font-size: 12px; line-height: 1.45; }
.product-card__features > span { display: block; }
.product-card__features strong { display: block; color: var(--yali-orange); font-size: 13px; letter-spacing: .08em; }
.product-card:hover, .product-card:focus-visible, .product-card.is-active { transform: translateY(-5px); background: rgba(181, 182, 183, .72); box-shadow: 0 20px 38px rgba(75,77,79,.18); }
.product-card:hover .product-card__summary, .product-card:focus-visible .product-card__summary, .product-card.is-active .product-card__summary { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.product-card:hover .product-card__detail, .product-card:focus-visible .product-card__detail, .product-card.is-active .product-card__detail { opacity: 1; transform: none; pointer-events: auto; }

.quality { padding-bottom: 0; text-align: center; }
.quality .section-title { color: #fff; }
.quality__hand { width: min(1200px, 94vw); margin: 35px auto -10px 0; }
.quality-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1000px; margin: 0 auto; border-top: 1px solid rgba(80,80,80,.2); }
.quality-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; align-items: center; min-height: 265px; padding: 42px 50px; text-align: left; border-bottom: 1px solid rgba(80,80,80,.2); }
.quality-card:nth-child(odd) { border-right: 1px solid rgba(80,80,80,.2); }
.quality-card h3 { margin: 0; color: var(--yali-orange); font-size: 27px; font-weight: 400; }
.quality-card strong { color: rgba(255,255,255,.82); font-size: 13px; font-weight: 400; }
.quality-card p { margin: 15px 0 0; font-size: 13px; line-height: 1.75; }
.quality-card img { width: 170px; height: 170px; object-fit: contain; }
.certification { width: min(600px, 62vw); margin: -5px auto -120px; position: relative; z-index: 2; }

.partnership { padding-top: 0; color: #fff; background: var(--yali-dark); text-align: center; }
.partnership__visual { position: relative; display: grid; place-items: center; min-height: clamp(540px, 56vw, 900px); background: url("assets/section4_7.webp") center/cover no-repeat; }
.partnership__title { display: grid; place-items: center; width: min(31vw, 440px); aspect-ratio: 1; margin-top: 2vw; }
.partnership__title h2 { margin: 0; font-family: var(--yali-serif); font-size: clamp(30px, 3vw, 48px); font-weight: 400; line-height: 1.6; letter-spacing: .06em; }
.partnership__lead { max-width: 820px; margin: -20px auto 60px; text-align: center; }
.advantage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 60px; max-width: 960px; margin: 0 auto; }
.advantage-card { position: relative; overflow: hidden; min-height: 118px; padding: 28px 26px 22px; border-radius: 40px 40px 0 0; background: var(--yali-dark); text-align: left; }
.advantage-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 25px; background: url("assets/section4_8.webp") top center/100% 25px no-repeat; }
.advantage-card h3 { margin: 0; font-size: 24px; font-weight: 700; }
.advantage-card small { color: var(--yali-orange); font-weight: 700; }
.advantage-card p { margin: 7px 0 0; font-size: 13px; }
.partnership__tagline { width: min(500px, 55vw); margin: 45px 0 0 auto; }

.contact { padding-bottom: 0; color: #fff; background: var(--yali-dark); }
.contact__layout { display: grid; grid-template-columns: 1.14fr .86fr; align-items: stretch; width: min(100%, 1600px); margin: 0 auto; }
.service-process { display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden; min-height: 720px; border-radius: 0 70px 0 0; background: var(--yali-bg); color: var(--yali-orange); }
.service-process__visual { min-height: 720px; background: url("assets/section5.webp") center/cover no-repeat; }
.service-process__steps { display: grid; align-content: center; padding: 50px; }
.service-process__steps h2 { margin: 0 0 30px; color: #fff; font-family: var(--yali-sans); font-size: 17px; font-weight: 400; line-height: 1.45; }
.service-process__steps h2 span { font-size: 14px; }
.service-process__steps ol { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 23px; line-height: 1.3; }
.service-process__steps li { display: grid; }
.service-process__steps small { margin-top: 3px; font-size: 14px; font-weight: 400; }
.contact-panel { padding: 55px 65px 75px; }
.contact-copy { margin-bottom: 28px; }
.contact-copy h2 { margin: 0 0 25px; font-family: var(--yali-serif); font-size: 42px; font-weight: 400; line-height: 1.5; }
.contact-form { display: grid; gap: 15px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: grid; gap: 6px; color: rgba(255,255,255,.72); font-size: 13px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; outline: 0; padding: 12px 18px; background: transparent; color: #fff; }
.contact-form textarea { min-height: 120px; border-radius: 24px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--yali-peach); box-shadow: 0 0 0 3px rgba(243,160,95,.14); }
.contact-form option { color: #222; }
.form-status { margin-bottom: 15px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.12); }
.form-hp { position: absolute; left: -9999px; }

.site-footer { padding: 60px 0 24px; background: linear-gradient(180deg, #878b91, #878b91 55%, #ed5329); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-logo { width: 300px; margin-bottom: 25px; }
.footer-contact { display: grid; gap: 7px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 25px; }
.footer-links h3 { grid-column: 1/-1; color: var(--yali-orange); font-size: 13px; letter-spacing: .12em; }
.footer-base { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.5); text-align: center; font-size: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .brand-marquee__track, .hero::before { animation: none; } * { transition-duration: .01ms !important; } }

@media (min-width: 901px) {
  .timeline-card:first-child { height: calc(100% - 20px); aspect-ratio: auto; }
}

@media (max-width: 1100px) {
  .contact__layout { grid-template-columns: 1fr; width: min(calc(100% - 36px), 900px); }
  .service-process { border-radius: 70px 70px 0 0; }
  .contact-panel { padding-inline: 35px; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .yali-container { width: min(calc(100% - 36px), var(--yali-max)); }
  .site-header { top: 16px; }
  .site-header__inner { min-height: 64px; padding: 10px 22px; }
  .site-logo img { width: min(62vw, 310px); }
  .menu-toggle { display: block; }
  .main-nav, .header-cta { display: none; }
  .site-header.is-open .main-nav { display: grid; position: absolute; top: 0; left: 18px; right: 18px; padding: 110px 32px 34px; border-radius: 40px; background: rgba(116,121,127,.97); font-size: 20px; }
  .site-header.is-open .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .site-header.is-open .menu-toggle { position: relative; z-index: 2; }
  .hero { min-height: 100svh; padding-top: 130px; }
  .hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .philosophy { min-height: 0; background-size: auto 900px; }
  .philosophy__intro { grid-template-columns: 1fr; gap: 0; }
  .philosophy__copy { max-width: 620px; padding-top: 20px; }
  .philosophy__timeline { grid-template-columns: 1fr; gap: 40px; max-width: 430px; margin: 260px auto 0; }
  .timeline-card { min-height: 0; }
  .timeline-card__body { padding: 55px 43px 20px; }
  .timeline-card__body strong { font-size: 22px; }
  .timeline-card__kicker { font-size: 16px; }
  .timeline-card__body h3 { font-size: 24px; }
  .timeline-card__body p { font-size: 14px; }
  .product-grid { grid-template-columns: 1fr; max-width: 590px; margin-inline: auto; }
  .product-card, .product-card:nth-child(-n+2) { grid-column: 1; min-height: 500px; }
  .product-card__visual, .product-card:nth-child(n+3) .product-card__visual { width: min(80%, 300px); height: 155px; }
  .product-card__detail { padding: 38px 42px; }
  .quality-grid { grid-template-columns: 1fr; }
  .quality-card:nth-child(odd) { border-right: 0; }
  .quality__hand { width: 110vw; max-width: none; margin-left: -18vw; }
  .certification { width: min(520px, 92vw); margin-bottom: -65px; }
  .partnership__visual { min-height: 560px; }
  .partnership__title { width: min(54vw, 330px); }
  .partnership__lead { margin-top: 15px; text-align: left; }
  .advantage-grid { grid-template-columns: 1fr; gap: 22px; }
  .partnership__tagline { width: min(500px, 85vw); }
  .service-process { grid-template-columns: 1fr; }
  .service-process__visual { min-height: 500px; background-size: cover; }
  .contact-panel { grid-template-columns: 1fr; gap: 45px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
  .yali-section { padding: 75px 0; }
  .section-title { font-size: 36px; }
  .hero { min-height: 780px; }
  .hero h1 { letter-spacing: .09em; }
  .hero__en { font-size: 19px; }
  .hero__tagline { font-size: 16px; }
  .philosophy { padding-top: 105px; background-size: auto 710px; }
  .philosophy__icon { width: 165px; margin-bottom: 25px; }
  .philosophy .section-title { font-size: 38px; }
  .philosophy__copy { font-size: 15px; line-height: 1.9; }
  .philosophy__timeline { margin-top: 180px; }
  .timeline-card__body { padding: 45px 32px 18px; }
  .timeline-card__body strong { font-size: 20px; }
  .timeline-card__kicker { margin-bottom: 18px; font-size: 14px; }
  .timeline-card__body h3 { margin-bottom: 15px; font-size: 21px; }
  .timeline-card__body p { font-size: 12px; }
  .products__intro { margin-bottom: 45px; }
  .product-card, .product-card:nth-child(-n+2) { min-height: 470px; border-radius: 34px; }
  .product-card__summary { padding-inline: 18px; }
  .product-card__detail { padding: 30px 26px; }
  .product-card__head { grid-template-columns: minmax(0, 1fr) 40%; gap: 12px; }
  .product-card__features { font-size: 11.5px; }
  .product-card__features strong { font-size: 12px; }
  .quality-card { grid-template-columns: 1fr 120px; min-height: 230px; padding: 30px 18px; }
  .quality-card img { width: 115px; height: 130px; }
  .certification { margin-bottom: -35px; }
  .partnership__visual { min-height: 440px; }
  .partnership__title { width: min(62vw, 270px); }
  .partnership__title h2 { font-size: 27px; }
  .service-process__steps { padding: 36px 28px; }
  .service-process__steps ol { font-size: 20px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .footer-logo { width: 260px; }
}
