/*
Theme Name: Proyoung Industrial Clean
Theme URI: https://proyoung.com.tw/
Author: Proyoung
Description: Clean-room industrial presentation theme preserving Proyoung's content order and brand palette.
Version: 1.0.0
Requires at least: 6.1
Requires PHP: 8.0
Text Domain: proyoung-industrial
*/

:root {
  --py-green: #80aa00;
  --py-green-dark: #5f8200;
  --py-blue: #101b63;
  --py-navy: #10182c;
  --py-yellow: #f3cf32;
  --py-ink: #172033;
  --py-muted: #637083;
  --py-line: #dfe5ea;
  --py-paper: #f5f7f4;
  --py-white: #fff;
  --py-shadow: 0 18px 48px rgba(16, 24, 44, .12);
  --py-radius: 18px;
  --py-wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--py-ink); background: #fff; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.py-wrap { width: var(--py-wrap); margin-inline: auto; }
.py-section { padding: clamp(64px, 8vw, 104px) 0; }
.py-section--soft { background: var(--py-paper); }
.py-section--dark { color: #fff; background: linear-gradient(135deg, #10182c, #17234a); }
.py-kicker { display: block; margin-bottom: 8px; color: var(--py-green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.py-section--dark .py-kicker { color: #b9dc58; }
.py-title { margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.18; letter-spacing: -.04em; }
.py-lead { max-width: 720px; margin: 18px 0 0; color: var(--py-muted); font-size: 1.08rem; }
.py-section--dark .py-lead { color: #cbd3e0; }

.py-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(16,24,44,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.py-header__bar { display: flex; align-items: center; min-height: 82px; gap: 32px; }
.py-brand { display: flex; align-items: center; flex: 0 0 auto; }
.py-brand img { display: block; width: min(360px, 32vw); max-height: 60px; object-fit: contain; object-position: left center; }
.py-nav { margin-left: auto; }
.py-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.py-nav a { display: block; padding: 12px 13px; border-radius: 10px; color: #263048; font-size: .95rem; font-weight: 700; }
.py-nav a:hover, .py-nav .current-menu-item > a { color: var(--py-green-dark); background: #eef5dd; }
.py-header__cta, .py-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--py-blue); font-weight: 800; box-shadow: 0 10px 24px rgba(16,27,99,.22); transition: transform .2s, box-shadow .2s, background .2s; }
.py-header__cta:hover, .py-button:hover { transform: translateY(-2px); background: #1b2b88; box-shadow: 0 14px 30px rgba(16,27,99,.28); }
.py-button--green { background: var(--py-green-dark); box-shadow: 0 10px 24px rgba(95,130,0,.24); }
.py-button--line { color: var(--py-navy); background: #fff; box-shadow: inset 0 0 0 1px var(--py-line); }
.py-menu-toggle { display: none; margin-left: auto; padding: 10px 12px; border: 1px solid var(--py-line); border-radius: 10px; background: #fff; font-size: 1rem; font-weight: 800; }

.py-hero { position: relative; min-height: min(700px, 76vh); overflow: hidden; background: var(--py-navy); }
.py-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center; }
.py-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,18,38,.88) 0%, rgba(9,18,38,.6) 48%, rgba(9,18,38,.18) 100%); }
.py-hero__slide.is-active { opacity: 1; }
.py-hero__content { position: relative; z-index: 2; display: grid; align-content: center; min-height: min(700px, 76vh); color: #fff; }
.py-hero__content > div { max-width: 720px; }
.py-hero h1 { margin: 0; font-size: clamp(2.65rem, 6vw, 5.3rem); line-height: 1.04; letter-spacing: -.055em; }
.py-hero h1 span { color: #c1df65; }
.py-hero p { max-width: 650px; margin: 24px 0 32px; color: #e0e5ed; font-size: clamp(1rem, 2vw, 1.22rem); }
.py-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.py-hero__dots { position: absolute; z-index: 3; bottom: 30px; left: 50%; display: flex; gap: 8px; transform: translateX(-50%); }
.py-hero__dot { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); }
.py-hero__dot.is-active { background: var(--py-yellow); }

.py-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 38px; }
.py-card { grid-column: span 4; overflow: hidden; border: 1px solid var(--py-line); border-radius: var(--py-radius); background: #fff; box-shadow: 0 8px 30px rgba(16,24,44,.06); transition: transform .22s, box-shadow .22s; }
.py-card:hover { transform: translateY(-5px); box-shadow: var(--py-shadow); }
.py-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ece8; }
.py-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.py-card:hover .py-card__media img { transform: scale(1.035); }
.py-card__body { padding: 24px; }
.py-card__body h3 { margin: 0 0 10px; font-size: 1.28rem; line-height: 1.35; }
.py-card__body p { margin: 0; color: var(--py-muted); font-size: .96rem; }
.py-card__link { display: inline-flex; margin-top: 18px; color: var(--py-green-dark); font-weight: 800; }
.py-card--wide { grid-column: span 6; }

.py-feature { display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; margin-top: 42px; border-radius: 24px; background: #fff; box-shadow: var(--py-shadow); }
.py-feature__media { min-height: 440px; }
.py-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.py-feature__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 72px); }
.py-feature__copy h3 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); line-height: 1.2; }
.py-feature__copy p { color: var(--py-muted); }
.py-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.py-pill { padding: 8px 13px; border-radius: 999px; color: #415100; background: #eff6dc; font-size: .9rem; font-weight: 800; }

.py-news { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.14); }
.py-news__item { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.py-news__date { color: #aeb8c9; font-size: .9rem; }
.py-news__title { font-size: 1.08rem; font-weight: 800; }
.py-news__more { color: #c1df65; font-weight: 800; }

.py-contact-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 48px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--py-blue), #263b9d); box-shadow: var(--py-shadow); }
.py-contact-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.py-contact-band p { margin: 8px 0 0; color: #dce3ff; }
.py-contact-band .py-button { color: var(--py-navy); background: var(--py-yellow); box-shadow: none; }

.py-map { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; margin-top: 40px; overflow: hidden; border: 1px solid var(--py-line); border-radius: 24px; }
.py-map__visual { display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 28% 25%, #dcefa7, transparent 32%), linear-gradient(135deg, #e8eee5, #cbd8c7); }
.py-map__pin { display: grid; place-items: center; width: 90px; height: 90px; border-radius: 50% 50% 50% 12px; color: #fff; background: var(--py-green-dark); transform: rotate(-45deg); box-shadow: var(--py-shadow); }
.py-map__pin span { transform: rotate(45deg); font-size: 2rem; }
.py-map__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 68px); }
.py-map__copy h3 { margin: 0 0 12px; font-size: 1.8rem; }

.py-partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px; }
.py-partner { display: grid; place-items: center; min-height: 110px; padding: 20px; border: 1px solid var(--py-line); border-radius: 14px; background: #fff; }
.py-partner img { max-height: 68px; object-fit: contain; filter: saturate(.8); }
.py-new-year { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--py-line); text-align: center; }
.py-new-year img { max-height: 460px; border-radius: 18px; box-shadow: var(--py-shadow); }

.py-page-hero { padding: 70px 0 54px; color: #fff; background: linear-gradient(135deg, var(--py-navy), #1f315e); }
.py-page-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.12; }
.py-breadcrumbs { margin-bottom: 14px; color: #bfc8d8; font-size: .9rem; }
.py-content { width: min(920px, calc(100vw - 40px)); margin: 0 auto; padding: 64px 0 96px; }
.py-content > :first-child { margin-top: 0; }
.py-content h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.3; }
.py-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.py-content p, .py-content li { color: #344158; }
.py-content table { width: 100%; border-collapse: collapse; }
.py-content th, .py-content td { padding: 13px 15px; border: 1px solid var(--py-line); text-align: left; }
.py-content th { background: var(--py-paper); }
.py-content figure { margin: 30px 0; }
.py-content img { border-radius: 12px; }
.py-content__cta { margin-top: 58px; padding: 32px; border-radius: 18px; background: var(--py-paper); }

.py-footer { padding: 64px 0 24px; color: #d6dceb; background: #0d1426; }
.py-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 52px; }
.py-footer__logo { width: min(360px, 100%); padding: 10px; border-radius: 8px; background: #fff; }
.py-footer h2, .py-footer h3 { margin-top: 0; color: #fff; }
.py-footer ul { margin: 0; padding: 0; list-style: none; }
.py-footer a:hover { color: #c1df65; }
.py-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #98a4ba; font-size: .86rem; }

@media (max-width: 980px) {
  .py-header__cta { display: none; }
  .py-menu-toggle { display: inline-flex; }
  .py-nav { position: absolute; top: 82px; right: 20px; left: 20px; display: none; padding: 14px; border: 1px solid var(--py-line); border-radius: 16px; background: #fff; box-shadow: var(--py-shadow); }
  .py-nav.is-open { display: block; }
  .py-nav ul { display: block; }
  .py-brand img { width: min(360px, 58vw); }
  .py-card, .py-card--wide { grid-column: span 6; }
  .py-feature { grid-template-columns: 1fr; }
  .py-feature__media { min-height: 320px; }
  .py-map { grid-template-columns: 1fr; }
  .py-partners { grid-template-columns: repeat(3, 1fr); }
  .py-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --py-wrap: min(100% - 28px, 1180px); }
  .py-section { padding: 56px 0; }
  .py-hero, .py-hero__content { min-height: 620px; }
  .py-hero__slide::after { background: linear-gradient(90deg, rgba(9,18,38,.9), rgba(9,18,38,.58)); }
  .py-card, .py-card--wide { grid-column: 1 / -1; }
  .py-news__item { grid-template-columns: 1fr; gap: 4px; }
  .py-contact-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .py-partners { grid-template-columns: repeat(2, 1fr); }
  .py-footer__grid { grid-template-columns: 1fr; }
}

