/* ============================================================
   鴻昌環保科技有限公司 — 官網樣式
   主色：環保綠 / 深墨綠；輔色：暖橘 CTA
   ============================================================ */

:root {
  --green:        #1f7a4d;
  --green-dark:   #14573a;
  --green-deep:   #0e3d29;
  --green-soft:   #e8f3ed;
  --accent:       #f2913d;
  --accent-dark:  #db7a26;
  --ink:          #1c2b24;
  --text:         #3a4742;
  --muted:        #6b7a73;
  --line:         #e2e8e4;
  --bg:           #ffffff;
  --bg-alt:       #f5f9f7;
  --radius:       14px;
  --shadow:       0 10px 30px rgba(20, 87, 58, 0.08);
  --shadow-lg:    0 20px 50px rgba(20, 87, 58, 0.14);
  --max:          1140px;
  --t:            .28s cubic-bezier(.4, 0, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 90%; max-width: var(--max); margin: 0 auto; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn-sm { padding: 10px 22px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 145, 61, .35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- 導覽列 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .07); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 54px; max-width: 84px; }
.brand-mark {
  font-size: 1.5rem; color: #fff; background: var(--green);
  padding: 2px 10px; border-radius: 8px; letter-spacing: 2px;
}
.brand-text { font-size: 1.15rem; color: var(--ink); }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-weight: 500; color: var(--ink); position: relative; transition: color var(--t); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--green); transition: width var(--t);
}
.nav a:not(.nav-cta):hover { color: var(--green); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 9px 22px; border-radius: 50px; font-weight: 700;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(135deg, rgba(14, 61, 41, .92), rgba(31, 122, 77, .82)),
    radial-gradient(circle at 80% 20%, rgba(242, 145, 61, .25), transparent 45%);
  background-color: var(--green-deep);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%);
}
.hero-inner { padding: 120px 0 90px; position: relative; }
.hero-eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: 3px;
  font-size: .9rem; color: #ffd9b3;
  border: 1px solid rgba(255, 217, 179, .5);
  padding: 6px 16px; border-radius: 50px; margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.25; }
.hero-title span { color: #ffd9b3; }
.hero-sub { max-width: 620px; margin: 24px 0 36px; font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 30px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2.4rem; font-weight: 900; color: #fff; }
.hero-stats span { font-size: .92rem; color: rgba(255, 255, 255, .8); }

.scroll-down {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: rgba(255, 255, 255, .8); animation: bounce 1.8s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }


/* ---------- Hero 視覺資訊面板 ---------- */
.hero-inner { isolation: isolate; }
.hero-orbit {
  position: absolute; right: 2%; top: 50%; transform: translateY(-42%); width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.13) 0 31%, transparent 32%);
}
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.17); }
.hero-orbit::before { inset: 32px; }
.hero-orbit::after { inset: 83px; background: rgba(242,145,61,.2); border-color: rgba(255,217,179,.6); }
.orbit-card {
  position: absolute; z-index: 1; min-width: 150px; padding: 13px 17px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.13); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12); line-height: 1.35;
}
.orbit-card span { display: block; color: #ffd9b3; font-size: .78rem; font-weight: 700; letter-spacing: 2px; }
.orbit-card strong { display: block; margin-top: 4px; font-size: 1.06rem; }
.orbit-card--top { top: -18px; left: -38px; }
.orbit-card--middle { top: 105px; right: -55px; }
.orbit-card--bottom { bottom: -13px; left: 7px; }

/* ---------- 服務流程 ---------- */
.process-strip { position: relative; z-index: 2; margin-top: -1px; padding: 30px 0; background: #fff; border-bottom: 1px solid var(--line); }
.process-kicker { text-align: center; color: var(--green); font-weight: 700; letter-spacing: 1px; margin-bottom: 17px; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; }
.process-list li { position: relative; display: grid; grid-template-columns: 42px 1fr; column-gap: 10px; padding: 0 24px; }
.process-list li + li { border-left: 1px solid var(--line); }
.process-list span { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; color: var(--green); background: var(--green-soft); border-radius: 50%; font-size: .78rem; font-weight: 900; }
.process-list strong { color: var(--ink); line-height: 1.35; }
.process-list small { color: var(--muted); font-size: .82rem; line-height: 1.45; }
/* ---------- 區塊通用 ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--green-deep); color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  font-size: .8rem; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--ink); }
.section-dark .section-head h2, .section-head--light h2 { color: #fff; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-lead { color: rgba(255, 255, 255, .8); }

/* ---------- 公司簡介 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.about-text p { margin-bottom: 18px; font-size: 1.05rem; }
.about-text strong { color: var(--green-dark); }
.about-cards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-cards li {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform var(--t), box-shadow var(--t);
}
.about-cards li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-cards h3 { color: var(--green); font-size: 1.15rem; margin-bottom: 8px; }
.about-cards p { font-size: .95rem; color: var(--muted); }

/* ---------- 服務項目 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  font-size: 1.7rem; background: var(--green-soft); border-radius: 14px; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.service-card p { font-size: .95rem; color: var(--muted); }
.service-card--cta {
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255, 255, 255, .9); margin-bottom: 18px; }

/* ---------- 實績 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 60px; }
.stat-box {
  text-align: center; padding: 28px 12px; border-radius: var(--radius);
  background: var(--green-soft);
}
.stat-box strong { display: block; font-size: 2.6rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-box span { font-size: .92rem; color: var(--green-dark); }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  background: var(--bg); transition: transform var(--t), box-shadow var(--t);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-tag {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; margin-bottom: 16px;
}
.case-card h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.case-card p { font-size: .95rem; color: var(--muted); }
.works-note { text-align: center; margin-top: 34px; font-size: .9rem; color: var(--muted); }


/* ---------- 回收業申請實績 ---------- */
.recovery-highlight {
  display: grid; grid-template-columns: minmax(280px, .95fr) 1.35fr; gap: 36px; align-items: center;
  margin: 0 0 28px; padding: 32px 36px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--green-deep), var(--green)); color: #fff;
  box-shadow: var(--shadow-lg);
}
.recovery-highlight h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.45; }
.recovery-highlight p { color: rgba(255,255,255,.87); }
.recovery-highlight .case-tag { background: var(--accent); }
/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.ci-label { flex: 0 0 88px; color: #ffd9b3; font-weight: 700; letter-spacing: 2px; }
.ci-value { color: #fff; }
.ci-link { text-decoration: underline; text-decoration-color: rgba(255,217,179,.55); text-underline-offset: 4px; transition: color var(--t); }
.ci-link:hover { color: #ffd9b3; }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 7px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--text); transition: border-color var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field textarea { resize: vertical; }
.form-hint { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.form-hint.ok { color: var(--green); }
.form-hint.err { color: #d24b4b; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: baseline; gap: 8px; }
.footer-brand .brand-text { color: #fff; font-weight: 700; }
.footer-copy { font-size: .9rem; }

/* ---------- 浮動 CTA ---------- */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 22px; border-radius: 50px; box-shadow: 0 10px 24px rgba(242, 145, 61, .45);
  transition: transform var(--t); writing-mode: horizontal-tb;
}
.float-cta:hover { transform: scale(1.06); }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }


/* ---------- 專業知識 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.guide-card { background: var(--bg); border: 1px solid var(--line); border-top: 5px solid var(--green); padding: 32px 28px; box-shadow: var(--shadow); }
.guide-card h3 { margin: 12px 0; font-size: 1.38rem; color: var(--ink); }
.guide-intro { color: var(--muted); margin-bottom: 22px; }
.guide-steps, .guide-checklist { list-style: none; margin: 0; padding: 0; }
.guide-steps { counter-reset: guide-step; }
.guide-steps li, .guide-checklist li { position: relative; padding: 0 0 16px 46px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.guide-steps li::before { counter-increment: guide-step; content: counter(guide-step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--accent-dark); font-weight: 900; }
.guide-checklist li::before { content: '✓'; position: absolute; left: 5px; top: 0; color: var(--green); font-weight: 900; }
.guide-steps strong, .guide-checklist strong { display: block; color: var(--ink); margin-bottom: 3px; }
.guide-steps span, .guide-checklist span { display: block; color: var(--muted); font-size: .93rem; }
.guide-note { margin: 20px 0 0; padding: 15px 17px; background: var(--green-soft); border-left: 3px solid var(--green); color: var(--green-dark); font-size: .92rem; }
.guide-cta { margin-top: 30px; background: var(--green-deep); color: #fff; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide-cta strong, .guide-cta span { display: block; }
.guide-cta strong { font-size: 1.1rem; }
.guide-cta span { margin-top: 4px; color: rgba(255,255,255,.8); font-size: .93rem; }
.guide-cta .btn-primary { white-space: nowrap; }
/* ---------- 響應式 ---------- */
@media (max-width: 980px) {
  .about-grid, .contact-grid, .guide-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-orbit { right: -40px; opacity: .72; transform: translateY(-38%) scale(.8); }
  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .process-list li:nth-child(3) { border-left: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .recovery-highlight { grid-template-columns: 1fr; gap: 18px; }
  .guide-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav {
    position: fixed; top: 72px; right: 0; width: 70%; max-width: 300px; height: calc(100vh - 72px);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; padding: 24px; box-shadow: -10px 0 30px rgba(0,0,0,.1);
    transform: translateX(100%); transition: transform var(--t);
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 28px; }
  .hero-orbit { display: none; }
  .process-list { grid-template-columns: 1fr; gap: 16px; }
  .process-list li { padding: 0; }
  .process-list li + li { border-left: none; }
  .hero-stats strong { font-size: 1.9rem; }
  .about-cards { grid-template-columns: 1fr; }
  .float-cta { right: 14px; bottom: 14px; padding: 12px 18px; }
}
@media (max-width: 460px) {
  .service-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
}
