/* Kanban+ — Lean Project Management for serious construction business.
   Yellow/gold accent over slate. Refine against
   _extracted/<page>/screenshot.png to match the current Wix design. */

:root {
  --color-bg: #ffffff;
  --color-fg: #1f2a37;
  --color-muted: #5b6573;
  --color-accent: #2f4d6e;     /* slate headings/buttons */
  --color-yellow: #f5c400;     /* Kanban+ accent */
  --color-line: #e3e8ee;
  --color-soft: #f4f7fa;
  --maxw: 1140px;
  --radius: 6px;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* original body is Helvetica Light */
  --font-head: "Mulish", "Helvetica Neue", Arial, sans-serif;    /* Avenir substitute */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-weight: 300; font-size: 1.0625rem; color: var(--color-fg); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; font-weight: 800; }

.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section-title { text-align: center; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 2rem; position: relative; padding-bottom: 0.75rem; }
.section-title::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; background: var(--color-yellow); border-radius: 2px; }
.brand-plus { color: var(--color-yellow); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #232b33; }
.header-inner { max-width: 100%; margin: 0 auto; padding: 0.5rem 2rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; filter: brightness(0) invert(1); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav a { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.main-nav a:hover { color: var(--color-yellow); text-decoration: none; }
.main-nav a.active { color: var(--color-yellow); }
.lang-switcher { display: flex; gap: 0.4rem; font-size: 0.85rem; }
.lang-switcher .lang { padding: 0.15rem 0.4rem; border-radius: 4px; color: rgba(255,255,255,0.65); }
.lang-switcher .lang.active { background: var(--color-yellow); color: var(--color-fg); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: #fff; }

/* ---------- Hero ---------- */
.hero { background-size: cover; background-position: center; }
.hero-overlay {
  background: linear-gradient(180deg, rgba(36,54,86,0.10) 0%, rgba(36,54,86,0.04) 100%);
  min-height: calc(100vh - 72px); /* fills the viewport; image clearly visible */
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 8vh;
}
.hero-inner { max-width: 1000px; margin: 0 auto; padding: 1rem 1.25rem; text-align: center; }
.hero-logo { height: clamp(54px, 8.5vw, 104px); width: auto; margin: 0 auto; }
.hero-tagline {
  font-family: var(--font-head); font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.28);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem); line-height: 1.2; margin: 1rem auto 1.75rem; max-width: 26ch;
}
.hero-cta { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.btn-hero {
  display: inline-block; padding: 0.75rem 1.75rem; border-radius: 999px; font-weight: 600;
  font-size: 1rem; color: #fff; cursor: pointer; backdrop-filter: blur(2px);
}
.btn-hero:hover { text-decoration: none; opacity: 0.92; }
.btn-hero-light { background: rgba(71, 85, 105, 0.62); }
.btn-hero-dark { background: rgba(28, 38, 52, 0.72); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; font-size: 1rem; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary { background: var(--color-yellow); color: var(--color-fg); border-color: var(--color-yellow); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }

/* ---------- Info cards ---------- */
.info { padding: 4rem 0; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.info-card { background: var(--color-soft); border: 1px solid var(--color-line); border-top: 4px solid var(--color-yellow); border-radius: var(--radius); overflow: hidden; }
.info-card-img { width: 100%; height: 160px; object-fit: cover; }
.info-card h3 { margin: 1.25rem 1.5rem 0.5rem; color: var(--color-accent); font-size: 1.375rem; font-weight: 800; }
.info-card p { margin: 0 1.5rem 1.5rem; font-size: 0.9375rem; }

/* ---------- About ---------- */
.about { padding: 2rem 0 4rem; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about .section-title { text-align: left; }
.about .section-title::after { left: 0; transform: none; }
.about-media img { width: 100%; border-radius: var(--radius); }

/* ---------- Stats (yellow bar) ---------- */
.stats { background: var(--color-yellow); color: var(--color-fg); padding: 2.5rem 1.25rem; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-value { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; }
.stat-label { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 1.7vw, 1.375rem); margin-top: 0.35rem; }

/* ---------- Projects ---------- */
.projects { padding: 4rem 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--color-soft); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.project-card:hover img { transform: scale(1.04); }
.project-label { position: absolute; left: 0; bottom: 0; background: rgba(25,40,64,0.78); color: #fff; padding: 0.5rem 1rem; font-weight: 600; }

/* ---------- Clients / references ---------- */
.clients { background: var(--color-soft); padding: 4rem 0; }
.clients-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.client-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; margin-top: 1rem; }
.client-logos img { max-height: 46px; width: auto; filter: grayscale(1); opacity: 0.7; }
.client-logos img:hover { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact { padding: 4rem 0; }
.contact-title { text-align: center; }
.contact-map { max-width: var(--maxw); margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.contact-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-sub { font-family: var(--font-head); font-weight: 800; color: var(--color-accent); font-size: 1.4rem; margin: 0 0 0.75rem; }
.contact-left .contact-sub:nth-of-type(2) { margin-top: 2rem; }
.contact-right p { margin: 0 0 1.75rem; }
.contact-right .contact-sub { margin-top: 2rem; }
.contact-right .contact-sub:first-child { margin-top: 0; }
.contact-offers-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--color-accent); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea { font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-yellow); border-color: var(--color-yellow); }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1a7a3c; }
.form-status.err { color: #b3261e; }

/* ---------- Legal pages ---------- */
.page.legal .page-content { font-size: 1rem; line-height: 1.6; }
.page.legal .page-content h2 { font-family: var(--font-body); font-weight: 700; color: var(--color-fg); font-size: 1.2rem; margin: 1.9rem 0 0.6rem; }
.page.legal .page-content h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.page.legal .page-inner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Galleries / figures ---------- */
.gallery { margin: 2.5rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img { width: 100%; height: auto; border-radius: var(--radius); }
.gallery-stack { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.gallery-stack img { max-width: 100%; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.content-figure { display: block; margin: 1.75rem auto; max-width: 100%; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Generic page / registration ---------- */
.page { padding: 3.5rem 1.25rem; }
.page-inner { max-width: 820px; margin: 0 auto; }
.page-inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-content h2 { margin-top: 2rem; color: var(--color-accent); }
.register-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.register-support { background: var(--color-soft); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 1.5rem; }
.register-support h3 { color: var(--color-accent); margin: 0 0 0.25rem; font-size: 1rem; }
.register-support p { margin: 0 0 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-fg); color: #cbd3df; padding: 2.5rem 1.25rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-nav a { color: #cbd3df; }
.copyright { margin: 0 0 0 auto; font-size: 0.85rem; color: #8c97a6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .info-cards { grid-template-columns: 1fr; }
  .about-inner, .contact-grid, .register-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; background: #232b33; padding: 1.25rem; display: none; }
  .header-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }
  .copyright { margin: 0; }
}

.page-banner { width: 100%; max-height: 340px; object-fit: cover; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero-logo-h1 { margin: 0; line-height: 0; }

.hero-chevron { display: inline-flex; align-items: center; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)); }

/* Taiwan: LINE contact button */
.line-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: #06C755; color: #fff; font-weight: 700; padding: 0.55rem 1.25rem; border-radius: 999px; }
.line-btn:hover { text-decoration: none; opacity: 0.92; }
.line-mark { background: #fff; color: #06C755; font-weight: 800; border-radius: 5px; padding: 0.05rem 0.4rem; font-size: 0.85rem; }
.line-note { font-size: 0.9rem; color: var(--color-muted); }
