/* Cani Media Limited / 敢意傳媒 — shared styles */

:root {
  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: #e4e0d9;
  --color-accent: #1a2f5c;
  --color-accent-hover: #0f1d3a;
  --color-accent-soft: rgba(26, 47, 92, 0.08);
  --color-teal: #2a9b8f;
  --font-sans: "Noto Sans TC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Serif TC", Georgia, "Times New Roman", serif;
  --max-width: 1080px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.04);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Layout */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand:hover {
  color: var(--color-text);
}

.brand-zh {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand-en {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 72px;
  width: auto;
  max-width: min(300px, 72vw);
  object-fit: contain;
  display: block;
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

@media (min-width: 768px) {
  .brand-logo,
  .footer-logo {
    height: 72px;
    max-width: 320px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: 600;
}

.nav-label-zh {
  display: block;
  line-height: 1.25;
}

.nav-label-en {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* Main */
main {
  min-height: calc(100vh - 12rem);
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.hero-en {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--color-text);
}

.hero-lead-en {
  max-width: 38rem;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: #cfc9bf;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
}

.btn-stack .btn-zh {
  line-height: 1.2;
}

.btn-stack .btn-en {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.section-header .section-en {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Cards / blocks */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.card h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.card .card-en {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

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

.card p + p {
  margin-top: 0.5rem;
}

/* Product highlight */
.product-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .product-block {
    grid-template-columns: 1fr auto;
  }
}

.product-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.product-block h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.product-block .product-en {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-block p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-text-muted);
}

.product-block p + p {
  margin-top: 0.4rem;
}

/* About / prose */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

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

.bilingual-pair {
  margin-bottom: 1.5rem;
}

.bilingual-pair .zh {
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.bilingual-pair .en {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Team */
.team-card {
  max-width: 28rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.team-role {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.team-card h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.team-card .team-en {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.team-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Coming soon */
.placeholder-panel {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

.placeholder-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.placeholder-panel .placeholder-en {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.placeholder-panel p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.contact-card .contact-en {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-email {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}

.badge-placeholder {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #7a5c1e;
  background: #f5ecd4;
  border: 1px solid #e6d5a8;
  border-radius: 4px;
}

.note-box {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-accent-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note-box strong {
  color: var(--color-text);
}

/* Page header (inner pages) */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
}

.page-header .page-en {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: #efebe5;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-brand .brand-zh {
  font-size: 1.05rem;
}

.footer-tagline {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 22rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* Decorative SVG mark */
.logo-mark {
  display: inline-block;
  vertical-align: middle;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


.contact-email-pending {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-email-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}
.contact-email-label-en {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.contact-pending-note {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}


.btn-pending {
  cursor: default;
  opacity: 0.85;
  pointer-events: none;
}
.footer-link-pending {
  color: var(--color-text-muted);
  font-size: inherit;
}
