/* =========================
   Light Theme Garment Co. UI
   Author: 網頁高手
   ========================= */

/* -------- CSS Reset (modern, minimal) -------- */
*, *::before, *::after { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
  Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
:where(p, h1, h2, h3, h4) { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; list-style: none; }

/* -------- Design Tokens -------- */
:root{
  /* Palette - Light */
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f2f6ff;
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */
  --muted-2: #64748b;    /* slate-500 */
  --border: #e2e8f0;     /* slate-200 */
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);

  /* Brand */
  --brand: #2563eb;      /* blue-600 */
  --brand-2: #60a5fa;    /* blue-400 */
  --accent: #22c55e;     /* green-500 */
  --warning: #f59e0b;    /* amber-500 */

  /* Radius & spacing */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --container: 1120px;

  /* Typography */
  --h1: clamp(2rem, 3vw, 3rem);
  --h2: clamp(1.4rem, 2vw, 2rem);
  --h3: 1.15rem;
  --lead: 1.05rem;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 220ms;
}

/* -------- Base -------- */
body{
  background: radial-gradient(900px 400px at 20% 0%, rgba(96,165,250,.18), transparent 55%),
              radial-gradient(900px 400px at 85% 10%, rgba(34,197,94,.10), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container{
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

/* Skip link for a11y */
.skip-link{
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .6rem .9rem;
  border-radius: .75rem;
  box-shadow: var(--shadow);
}
.skip-link:focus{ top: 1rem; z-index: 9999; }

/* Focus ring */
:focus-visible{
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* -------- Header / Nav -------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 249, 252, .75);
  border-bottom: 1px solid rgba(226,232,240,.8);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
  gap: 1rem;
}

.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
  position: relative;
  overflow: hidden;
}
.brand__mark::after{
  content:"";
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 45%);
  transform: rotate(15deg);
}
.brand__name{ display:flex; flex-direction: column; line-height: 1.1; }
.brand__name small{ font-weight: 600; color: var(--muted); }

.nav{
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a{
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border var(--dur) var(--ease);
  font-weight: 650;
}
.nav a:hover{
  background: rgba(37,99,235,.08);
  color: var(--text);
  border-color: rgba(37,99,235,.18);
}
.nav a[aria-current="page"]{
  background: rgba(37,99,235,.12);
  color: var(--text);
  border-color: rgba(37,99,235,.22);
}

/* CTA button */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.25);
  background: linear-gradient(135deg, rgba(37,99,235,.98), rgba(96,165,250,.95));
  color: white;
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(37,99,235,.18);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(37,99,235,.22);
  filter: saturate(1.1);
}
.btn:active{ transform: translateY(0); }
.btn--ghost{
  background: rgba(255,255,255,.65);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn--ghost:hover{
  background: rgba(255,255,255,.9);
  border-color: rgba(37,99,235,.22);
}

/* -------- Hero -------- */
.hero{
  padding: 3.4rem 0 2.5rem;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.6rem;
  align-items: center;
}
.hero__title{
  font-size: var(--h1);
  letter-spacing: -.4px;
  line-height: 1.15;
}
.hero__lead{
  margin-top: .85rem;
  color: var(--muted);
  font-size: var(--lead);
  max-width: 56ch;
}
.hero__actions{
  margin-top: 1.2rem;
  display:flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.pills{
  margin-top: 1.2rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.pill{
  padding: .35rem .65rem;
  font-weight: 650;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Hero card */
.heroCard{
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.heroCard__top{
  padding: 1.1rem 1.1rem .3rem;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.24);
  color: #166534;
  font-weight: 750;
  font-size: .9rem;
}
.badge--blue{
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.22);
  color: #1e3a8a;
}
.heroCard__media{
  padding: 0 1.1rem 1.1rem;
}
.fauxImage{
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(226,232,240,.95);
  background:
    radial-gradient(500px 220px at 25% 25%, rgba(96,165,250,.45), transparent 60%),
    radial-gradient(450px 200px at 80% 60%, rgba(34,197,94,.22), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(242,246,255,.85));
  position: relative;
  overflow: hidden;
}
.fauxImage::after{
  content:"";
  position:absolute; inset:-30%;
  background: repeating-linear-gradient(45deg,
    rgba(15,23,42,.05) 0 10px,
    rgba(15,23,42,.02) 10px 20px);
  transform: rotate(8deg);
}
.heroCard__stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  padding: 0 1.1rem 1.1rem;
}
.stat{
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: .75rem .8rem;
}
.stat strong{ font-size: 1.1rem; }
.stat span{ display:block; color: var(--muted-2); font-size: .9rem; }

/* -------- Sections -------- */
.section{
  padding: 2.5rem 0;
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section__title{ font-size: var(--h2); letter-spacing: -.2px; }
.section__desc{ color: var(--muted); max-width: 70ch; }
.section__meta{ color: var(--muted-2); font-weight: 650; }

/* Cards */
.grid{
  display:grid;
  gap: 1rem;
}
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.card{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  overflow:hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border var(--dur) var(--ease);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(2,6,23,.09);
  border-color: rgba(37,99,235,.20);
}
.card__body{
  padding: 1.05rem 1.05rem 1.1rem;
}
.card__icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  margin-bottom: .75rem;
}
.card__title{ font-size: 1.15rem; margin-bottom: .35rem; }
.card__text{ color: var(--muted); }
.card__list{ margin-top: .6rem; display:grid; gap: .35rem; }
.card__list li{
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.card__list li::before{
  content:"";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(34,197,94,.9);
  position:absolute; left: .25rem; top: .55rem;
}

/* Callout */
.callout{
  border-radius: var(--r-lg);
  border: 1px solid rgba(226,232,240,.95);
  background: linear-gradient(135deg, rgba(96,165,250,.16), rgba(34,197,94,.10), rgba(255,255,255,.78));
  box-shadow: var(--shadow);
  padding: 1.3rem 1.2rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
}
.callout p{ color: var(--muted); }
.callout strong{ font-size: 1.05rem; }

/* Timeline */
.timeline{
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.95);
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}
.timeline__item{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: .9rem;
  padding: .85rem 0;
  border-top: 1px dashed rgba(226,232,240,.95);
}
.timeline__item:first-child{ border-top: 0; padding-top: 0; }
.timeline__year{
  font-weight: 850;
  color: #1e3a8a;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  height: fit-content;
  width: fit-content;
  padding: .25rem .55rem;
  border-radius: 999px;
}
.timeline__text p{ color: var(--muted); }

/* Tables (light) */
.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
}
.table th, .table td{
  padding: .9rem .95rem;
  border-bottom: 1px solid rgba(226,232,240,.95);
  text-align: left;
}
.table th{
  background: rgba(242,246,255,.9);
  color: #0f172a;
  font-weight: 800;
}
.table tr:last-child td{ border-bottom: 0; }
.kbd{
  display:inline-flex;
  align-items:center;
  padding: .18rem .45rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: .55rem;
  background: rgba(255,255,255,.8);
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

/* Form */
.form{
  display:grid;
  gap: .8rem;
}
.field{
  display:grid;
  gap: .35rem;
}
.label{
  font-weight: 800;
  color: var(--text);
}
.hint{ color: var(--muted-2); font-size: .92rem; }
.input, .textarea, .select{
  width: 100%;
  padding: .75rem .85rem;
  border-radius: .9rem;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.85);
  transition: border var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input:hover, .textarea:hover, .select:hover{
  border-color: rgba(37,99,235,.22);
}
.input:focus, .textarea:focus, .select:focus{
  outline: none;
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  background: rgba(255,255,255,.95);
}
.textarea{ min-height: 140px; resize: vertical; }

/* Footer */
.footer{
  margin-top: 2.6rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(226,232,240,.9);
  color: var(--muted);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: start;
}
.footer__links{
  display:flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  justify-content: flex-end;
}
.footer__links a{
  color: var(--muted);
  font-weight: 700;
  padding: .25rem .25rem;
  border-radius: .6rem;
}
.footer__links a:hover{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Utilities */
.mtop-1{ margin-top: .75rem; }
.mtop-2{ margin-top: 1.2rem; }
.mtop-3{ margin-top: 1.8rem; }
.subtle{
  color: var(--muted);
}
.tag{
  display:inline-flex;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.7);
  color: var(--muted);
}

/* -------- Responsive -------- */
@media (max-width: 960px){
  .hero__grid{ grid-template-columns: 1fr; }
  .heroCard__stats{ grid-template-columns: repeat(3, 1fr); }
  .grid--3{ grid-template-columns: 1fr; }
  .grid--2{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .footer__links{ justify-content: flex-start; }
}
@media (max-width: 560px){
  .nav{ gap: .25rem; }
  .nav a{ padding: .5rem .65rem; }
  .hero{ padding: 2.7rem 0 2rem; }
  .heroCard__stats{ grid-template-columns: 1fr; }
  .timeline__item{ grid-template-columns: 1fr; }
}