/* Speech & Act Education — Editorial redesign (distinct from SI-Taiwan SaaS template) */
:root {
  --gold: #C9A227;
  --gold-bright: #D4A017;
  --gold-dark: #9A7B1A;
  --black: #111111;
  --ink: #1A1A1A;
  --text: #1A1A1A;
  --muted: #5A564C;
  --bg: #F7F4EC;
  --paper: #F7F4EC;
  --card: #FFFEF9;
  --border: #DDD6C5;
  --taupe: #DDD6C5;
  --charcoal: #111111;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 4px 16px rgba(17, 17, 17, 0.06);
  --radius: 4px;
  --radius-sm: 2px;
  --header-h: 70px;
  --font-ui: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1080px;
  --rule: 3px solid var(--gold);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--black); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

/* —— Header: solid paper + gold rule (not blurred twin of SIT) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--rule);
  height: var(--header-h);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  max-width: 11.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--black);
  background: transparent;
  border-bottom-color: var(--gold);
}

/* —— Buttons: rectangular, editorial (not pill SaaS) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--black);
  color: #fff;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 0 var(--gold);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--black);
}
.btn-secondary:hover {
  border-color: var(--gold-dark);
  color: var(--black);
  background: rgba(201, 162, 39, 0.08);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn-sm { padding: 0.45rem 1rem; font-size: 0.875rem; }
.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 0;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
}
.lang-sep { color: var(--border); user-select: none; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}
.lang-btn:hover { color: var(--black); }
.lang-btn.is-active {
  color: var(--black);
  font-weight: 700;
  background: transparent;
  border-bottom-color: var(--gold);
}

/* —— Hero: left-heavy editorial —— */
.hero {
  padding: 4rem 0 3.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.hero-eyebrow, .eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 3px;
  height: 1.15rem;
  background: var(--gold);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.15rem);
  font-weight: 650;
  margin-bottom: 1.15rem;
  max-width: 14ch;
  line-height: 1.12;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-features .dot {
  width: 6px;
  height: 6px;
  margin-top: 0.5rem;
  border-radius: 0;
  background: var(--gold);
  flex-shrink: 0;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  transform: translateY(1.25rem);
}
.hero-logo-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.hero-logo-wrap img { height: 68px; width: auto; }
.logo-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.logo-collage .tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  transition: border-color 0.15s, background 0.15s;
}
.logo-collage .tile:hover {
  border-color: var(--gold);
  background: #fff;
  box-shadow: none;
  transform: none;
}
.logo-collage .tile img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

/* —— Sections —— */
.section { padding: 4rem 0; }
.section-alt {
  background: #F0EBE0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.65rem, 2.8vw, 2.15rem); }
.section-head p { color: var(--muted); }
.section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.section-head .eyebrow::before {
  content: "";
  width: 3px;
  height: 0.9rem;
  background: var(--gold);
}

.page-hero {
  padding: 3rem 0 1.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.page-hero .eyebrow::before {
  content: "";
  width: 3px;
  height: 0.9rem;
  background: var(--gold);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.page-hero p { color: var(--muted); max-width: 40rem; }

/* Cards: left gold bar, sharp corners */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: none;
}
.card h3, .card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
}
.card p { color: var(--muted); font-size: 0.975rem; }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding: 0;
}
.card-icon.lime { background: transparent; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.15rem;
}
.teaser {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  display: block;
}
.teaser:hover {
  border-color: var(--border);
  border-left-color: var(--gold-dark);
  background: #fff;
  box-shadow: none;
  transform: none;
  color: var(--text);
}
.teaser .tl {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
}
.teaser .tl img { max-height: 44px; width: auto; object-fit: contain; }
.teaser h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}
.teaser p { color: var(--muted); font-size: 0.875rem; margin: 0; }

/* CTA band: cream panel + thick gold top (not solid black SIT clone) */
.cta-band {
  background: #F0EBE0;
  color: var(--ink);
  padding: 3.25rem 0;
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { color: var(--ink); font-family: var(--font-display); }
.cta-band p { color: var(--muted); max-width: 36rem; }
.cta-band .btn-primary {
  background: var(--black);
  border-color: var(--gold);
  color: #fff;
}
.cta-band .btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* —— Products: text-tab filters (not rounded chip twins of SIT) —— */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.filter-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.1rem;
  border-radius: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.filter-btn:hover { color: var(--black); background: transparent; }
.filter-btn[aria-pressed="true"] {
  background: transparent;
  border-bottom-color: var(--gold);
  color: var(--black);
}

.product-list { display: flex; flex-direction: column; gap: 1.75rem; }
.product-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  box-shadow: none;
}
.product-top {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.35rem;
}
.product-logo {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}
.product-logo img { max-height: 68px; width: auto; object-fit: contain; }
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--gold);
}
.product-meta h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}
.product-meta .fullname { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.35rem; }
.product-meta .subtitle { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.product-meta .desc { color: var(--muted); margin: 0; }
.feature-block { margin-top: 1.35rem; }
.feature-block h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
}
.feature-list { list-style: none; }
.feature-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(221, 214, 197, 0.55);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 2px;
  border-radius: 0;
  background: var(--gold);
}
.feature-list li strong { color: var(--text); }
.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.product-links a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gold-dark);
}
.product-links a:hover { color: var(--black); }
.product-links .store-link {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  color: var(--gold-bright);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  font-size: 0.875rem;
}
.product-links .store-link:hover {
  background: var(--gold);
  color: var(--black);
}
.si-note {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.module-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.module-logo {
  height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 0.65rem;
}
.module-logo img { max-height: 40px; width: auto; object-fit: contain; }
.module-card h4 { font-size: 0.975rem; margin-bottom: 0.35rem; font-family: var(--font-display); }
.module-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* —— Services / Contact —— */
.service-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.85rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
}
.service-block > h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}
.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.muted { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: none;
}
.contact-row { margin-bottom: 1.25rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.4);
  border-color: var(--gold);
}
.form-status { font-size: 0.875rem; margin-top: 0.75rem; display: none; }
.form-status.show { display: block; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--paper);
}
.social-links a:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

/* Privacy */
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: none;
  max-width: 48rem;
}
.legal-content h1 { font-size: 1.85rem; font-family: var(--font-display); }
.legal-content h2 { font-size: 1.2rem; margin-top: 1.75rem; font-family: var(--font-display); }
.legal-content .plain-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
}
.legal-content .plain-list li {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* —— Footer: charcoal + gold hairline —— */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.78);
  padding: 3.25rem 0 2rem;
  margin-top: 0;
  border-top: 1px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2.25rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-brand img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
}
.footer-brand span { font-weight: 600; font-size: 0.875rem; color: #fff; max-width: 12rem; }
.footer-blurb { font-size: 0.9375rem; color: rgba(255,255,255,0.62); max-width: 24rem; }
.footer-col h4 {
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-family: var(--font-ui);
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  padding: 0.3rem 0;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.48);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { transform: none; margin-top: 0; }
  .hero h1 { max-width: none; }
  .logo-collage { grid-template-columns: repeat(4, 1fr); }
  .product-top { grid-template-columns: 1fr; }
  .product-logo { max-width: 160px; }
  .service-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; order: 3; }
  .header-inner { flex-wrap: wrap; }
  .nav {
    display: none;
    width: 100%;
    order: 5;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav a:hover,
  .nav a[aria-current="page"] {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
  }
  .lang-switcher { order: 2; margin-left: auto; }
  .header-cta { display: none; }
  .site-header { height: auto; min-height: var(--header-h); }
  .header-inner { height: auto; min-height: var(--header-h); padding-block: 0.35rem; }
  .logo-collage { grid-template-columns: repeat(3, 1fr); }
  .hero-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 0; overflow-x: auto; }
}
