/* 有歆有限公司 — 飲料加盟官網 */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --surface: #f8fafc;
  --cream: #fafaf9;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  --font: "Noto Sans TC", system-ui, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__badge {
  position: relative;
  flex-shrink: 0;
  display: flex;
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95) 0%, rgba(15, 118, 110, 0.95) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(15, 23, 42, 0.12);
}

.logo__badge::before {
  content: none;
}

.logo__badge-inner {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.logo__badge-text {
  position: relative;
  z-index: 1;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.logo__badge-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(13, 148, 136, 0.16) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
}

.logo__badge--sm {
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 12px;
}

.logo__badge--sm::before {
  content: none;
}

.logo__badge--sm .logo__badge-inner {
  border-radius: 10px;
}

.logo__badge--sm .logo__badge-text {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.logo__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.logo__tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  background: rgba(13, 148, 136, 0.08);
  text-decoration: none;
  color: var(--accent-hover);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--surface);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 58px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0f172a 0%, #134e4a 42%, #0d9488 100%);
  color: #e2e8f0;
  padding: clamp(2.75rem, 7vw, 5rem) 1.25rem 3.5rem;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(217, 119, 6, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(13, 148, 136, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5eead4;
  margin: 0 0 0.85rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.28;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.02rem;
  color: #94a3b8;
  line-height: 1.75;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 22px rgba(245, 158, 11, 0.4);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 640px;
}

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

.hero__stats li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.hero__stats strong {
  display: block;
  font-size: 0.95rem;
  color: #fef3c7;
  margin-bottom: 0.25rem;
}

.hero__stats span {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Sections */
.section {
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 1.25rem;
}

.section--alt {
  background: var(--surface);
}

.section--contact {
  background: linear-gradient(165deg, #134e4a 0%, #0f172a 100%);
  color: #cbd5e1;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 720px;
}

.section__head {
  margin-bottom: 2.25rem;
  text-align: center;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section__eyebrow--light {
  color: #5eead4;
}

.section__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section__title--light {
  color: var(--white);
}

.section__desc {
  margin: 0.65rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section__desc--light {
  color: #94a3b8;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

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

.about-text p {
  margin: 0 0 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.about-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.about-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-lg);
}

.card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  counter-reset: t;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--line);
  margin-left: 1rem;
  padding-left: 1.5rem;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline__step {
  position: absolute;
  left: -0.65rem;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}

.timeline p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Support grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

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

.support-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
  box-shadow: var(--shadow);
}

.support-item::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* Contact */
.contact-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.contact-list {
  margin: 0;
  padding: 0;
}

.contact-list dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.contact-list dd {
  margin: 0.3rem 0 1.1rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.contact-list div:last-child dd {
  margin-bottom: 0;
}

.contact-list a {
  color: #5eead4;
}

.contact-disclaimer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #94a3b8;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #64748b;
  padding: 2rem 1.25rem;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
}
