/* ===== 台中女婿 葉日煌 個人官網 ===== */
:root {
  --bg: #EAF7FB;
  --bg-alt: #FFFFFF;
  --text: #16384A;
  --text-soft: #3D5A6C;
  --accent: #63A93B;
  --accent-dark: #4C8A2A;
  --accent-soft: #E3F3DA;
  --line-green: #06C755;
  --line-green-dark: #05a648;
  --fb-blue: #1877F2;
  --fb-blue-dark: #145dbf;
  --border: #D7E9EE;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(22, 56, 74, 0.08);
  --shadow-sm: 0 2px 10px rgba(22, 56, 74, 0.06);
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; color: var(--text-soft); }
.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-line:hover { background: var(--line-green-dark); }
.btn-fb { background: var(--fb-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-fb:hover { background: var(--fb-blue-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(234, 247, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-weight: 900;
  font-size: 19px;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--accent-dark); margin-left: 2px; }
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.header-cta { display: flex; gap: 10px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Floating action buttons (mobile) ---------- */
.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 18px rgba(22,56,74,0.25);
  transition: transform .15s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-call { background: var(--text); }
.fab-line { background: var(--line-green); font-size: 12px; font-weight: 800; }
.fab-fb { background: var(--fb-blue); font-size: 22px; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .tagline { font-size: 17px; color: var(--text-soft); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 28px; display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust div { text-align: left; }
.hero-trust strong { display: block; font-size: 24px; color: var(--accent-dark); }
.hero-trust span { font-size: 13px; color: var(--text-soft); }

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}
.portrait-frame {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #cdeee0 0%, #EAF7FB 55%, #ffffff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portrait-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.portrait-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.portrait-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .portrait-frame { max-width: 260px; }
}

/* ---------- Eligibility infographic ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.check-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.check-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}
.check-card h3 { font-size: 15px; margin-bottom: 6px; }
.check-card p { font-size: 13px; margin: 0; }
.check-note {
  text-align: center;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 14px;
}
@media (max-width: 860px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials / results ---------- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.result-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.result-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--accent-soft), #cfe9f5);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 15px;
}
.result-body { padding: 18px 20px; }
.result-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.result-body h3 { margin-bottom: 6px; }
.result-meta { font-size: 13px; color: var(--text-soft); margin: 0; }

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.quote-card p.quote-text {
  font-style: normal;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 14px;
}
.quote-who { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.quote-consent { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

@media (max-width: 960px) { .result-grid, .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .result-grid, .quote-grid { grid-template-columns: 1fr; } }

/* ---------- Tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tool-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-card .icon { font-size: 30px; }
.tool-card .hint { font-size: 12px; color: var(--text-soft); }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.timeline { border-left: 2px solid var(--border); padding-left: 24px; margin-top: 20px; }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.timeline-item h3 { margin-bottom: 4px; font-size: 16px; }
.timeline-item span { font-size: 13px; color: var(--accent-dark); font-weight: 700; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .value-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}
.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-info-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-card .row a, .contact-info-card .row span.value { font-weight: 700; }

.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-note { font-size: 12px; color: var(--text-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  margin-top: 16px;
}
.form-error {
  background: #fdeceb;
  color: #a3372a;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 700;
  margin-top: 16px;
}
.form-note code {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

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

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--text) 0%, #1f4f66 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cfe4ec; margin: 0; }
.cta-band .btn-outline { background: transparent; border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #cfe4ec; padding: 48px 0 20px; margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #9fd88a; }
.footer-contact p { color: #cfe4ec; margin: 0 0 6px; }
.footer-copy { text-align: center; font-size: 12px; color: #91acb8; margin: 20px 0 0; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.page-hero p { max-width: 560px; margin: 0 auto; }
