/*
Theme Name: Hengko
Theme URI: https://ihengko.com
Description: 恆哥不動產顧問 - 台中彰化資產整合顧問
Version: 1.0
Author: Hengko
*/

/* =====================
   Reset & Base
===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: #1a2e44;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* =====================
   Variables
===================== */
:root {
  --navy:   #1a2e44;
  --teal:   #1a6b5a;
  --teal-light: #e8f5f1;
  --gold:   #c9a84c;
  --gray:   #f5f5f3;
  --text:   #333;
  --muted:  #666;
  --white:  #fff;
  --max-w:  1160px;
  --radius: 8px;
}

/* =====================
   Utilities
===================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--teal); transform: translateY(-1px); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #145047; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
section { padding: 80px 0; }

/* =====================
   Header / Nav
===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.site-logo span { color: var(--teal); }
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color .2s;
}
nav a:hover { color: var(--teal); }
.header-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone::before { content: '📞'; font-size: 13px; }
.nav-mobile-btn { display: none; }

/* =====================
   Hero
===================== */
#hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2e44 0%, #2d4a6e 50%, #1a6b5a 100%);
  color: var(--white);
  overflow: hidden;
  padding: 80px 0;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?w=1600&q=80') center/cover;
  opacity: .18;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}
.hero-h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
}
.hero-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-family: inherit;
}
.hero-form input::placeholder { color: #aaa; }

/* =====================
   Pain Points
===================== */
#pain-points { background: var(--white); }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pp-left h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.pp-left .sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.pp-right p { color: var(--text); margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.pp-right strong { color: var(--navy); font-weight: 700; }

/* =====================
   About
===================== */
#about { background: var(--gray); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content .eyebrow { margin-bottom: 8px; }
.about-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}
.about-content p { color: var(--text); margin-bottom: 16px; font-size: 15px; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
}
.about-feature-icon { font-size: 22px; flex-shrink: 0; }
.about-feature h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.about-feature p { font-size: 13px; color: var(--muted); margin: 0; }
.about-image { border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; height: 380px; object-fit: cover; }
.about-image-placeholder {
  width: 100%; height: 380px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 14px;
}

/* =====================
   Services
===================== */
#services { background: var(--white); }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}
.services-header p { color: var(--muted); font-size: 15px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  padding: 36px 28px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-4px); }
.service-icon { font-size: 36px; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.8; }
.service-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-link::after { content: '→'; }
.services-cta { text-align: center; margin-top: 48px; }

/* =====================
   Cases
===================== */
#cases { background: var(--gray); }
.cases-header { text-align: center; margin-bottom: 56px; }
.cases-header h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cases-header p { color: var(--muted); font-size: 15px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 4px solid var(--teal);
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--teal-light);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.case-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--navy); }
.case-stats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.case-stat { display: flex; gap: 10px; font-size: 14px; }
.case-stat-label { color: var(--muted); min-width: 80px; }
.case-stat-value { font-weight: 700; color: var(--navy); }
.case-highlight {
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid #eee;
  line-height: 1.7;
}

/* =====================
   Contact
===================== */
#contact {
  background: linear-gradient(135deg, #1a2e44, #1a6b5a);
  color: var(--white);
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-left h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
}
.contact-left p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.contact-info-item .icon { font-size: 20px; }
.contact-info-item strong { display: block; font-size: 16px; }
.contact-form-box {
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 40px 36px;
  backdrop-filter: blur(8px);
}
.contact-form-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-row { margin-bottom: 16px; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border .2s;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,.55); }
.form-row input:focus, .form-row textarea:focus { border-color: rgba(255,255,255,.6); }
.form-row textarea { height: 100px; resize: none; }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #f0f0f0; }

/* =====================
   Footer
===================== */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: .05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* =====================
   Responsive
===================== */
@media (max-width: 900px) {
  nav ul { display: none; }
  .nav-mobile-btn { display: block; background: none; border: 1px solid var(--navy); border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 18px; color: var(--navy); }
  .pp-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .services-grid, .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-form { flex-direction: column; }
}
