/* ==================== HKMAC Website Styles ==================== */
:root {
  --navy: #0B1D3A;
  --navy-light: #132D56;
  --navy-dark: #060F1F;
  --red: #C8102E;
  --red-dark: #A00D23;
  --red-light: #E8334A;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --font: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 2px 8px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 20px rgba(11,29,58,0.12);
  --shadow-lg: 0 8px 40px rgba(11,29,58,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-800); line-height: 1.7; background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.3); animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.2);opacity:0} }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition); background: transparent;
}
.navbar.scrolled {
  background: rgba(11,29,58,0.97); backdrop-filter: blur(12px);
  padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo-img { height: 102px; width: auto; transition: var(--transition); }
.navbar.scrolled .nav-logo-img { height: 40px; }
.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-menu a {
  color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-menu a:hover { color: #fff; }
.nav-menu a::after {
  content:''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--red); transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }
.nav-cta {
  background: var(--red) !important; color: #fff !important;
  padding: 10px 24px; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 6px 0; transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px,6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,29,58,0.92) 0%, rgba(11,29,58,0.75) 50%, rgba(200,16,46,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 140px 0 100px; max-width: 800px;
}
.hero-badge {
  display: inline-block; background: rgba(17,16,200,0.2); border: 1px solid rgba(19,42,136,1);
  /*color: var(--red-light); */
  color: #fff; 
  padding: 8px 20px; border-radius: 30px;
  font-size: 18px; font-weight: 600; margin-bottom: 24px; letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--red-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 36px;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
  display: flex; gap: 40px; align-items: center;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
  padding: 24px 40px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 32px; font-weight: 900; color: #fff; }
.stat-label { font-size: 21px; color: rgba(255,255,255,0.7); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; font-family: var(--font);
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(200,16,46,0.4); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-white {
  background: #fff; color: var(--navy); font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--red);
  letter-spacing: 3px; margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section-line { width: 60px; height: 4px; background: var(--red); margin: 0 auto 20px; border-radius: 2px; }
.section-desc { font-size: 17px; color: var(--gray-600); max-width: 640px; margin: 0 auto; }

/* ===== About ===== */
.about { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { font-size: 22px; line-height: 1.9; margin-bottom: 20px; color: var(--gray-700); }
.about-text strong { color: var(--navy); }
.about-highlight { display: flex; flex-direction: column; gap: 20px; }
.highlight-card {
  background: #fff; padding: 32px; border-radius: var(--radius);
  border-left: 4px solid var(--red); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.highlight-card:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.highlight-icon { font-size: 28px; margin-bottom: 12px; }
.highlight-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.highlight-card p { font-size: 14px; color: var(--gray-600); line-height: 1.7; }

/* ===== Services ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.service-card {
  background: #fff; padding: 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap { margin-bottom: 20px; }
.service-card h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.service-sub { font-size: 16px; color: var(--red); font-weight: 500; }
.service-card p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-top: 12px; }

/* ===== Why Us ===== */
.why-us { background: var(--navy); color: #fff; }
.why-us .section-title { color: #fff; }
.why-us .section-desc { color: rgba(255,255,255,0.7); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
  padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.why-num {
  font-size: 48px; font-weight: 900; color: rgba(200,16,46,0.4);
  margin-bottom: 16px; line-height: 1;
}
.why-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.why-card p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ===== Cases ===== */
.cases { background: var(--gray-50); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-card {
  background: #fff; padding: 36px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); transition: var(--transition);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.case-tag {
  display: inline-block; background: rgba(200,16,46,0.1); color: var(--red);
  padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  align-self: flex-start; margin-bottom: 16px;
}
.case-icon { font-size: 36px; margin-bottom: 16px; }
.case-card h3 { font-size: 23px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.case-card > p { font-size: 18px; color: var(--gray-600); line-height: 1.7; flex: 1; }
.case-highlight {
  margin: 20px 0; padding: 16px; background: var(--gray-50);
  border-radius: 10px; text-align: center;
}
.case-num { display: block; font-size: 28px; font-weight: 900; color: var(--red); }
.case-label { font-size: 13px; color: var(--gray-600); }
.case-link { font-size: 14px; color: var(--red); font-weight: 600; margin-top: auto; }

/* ===== Consultant ===== */
.consultant { background: #fff; }
.consultant-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  background: var(--gray-50); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.consultant-visual {
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.consultant-card-img {
  max-width: 100%; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.consultant-info { padding: 48px 48px 48px 0; display: flex; flex-direction: column; justify-content: center; }
.consultant-badge {
  display: inline-block; background: rgba(200,16,46,0.1); color: var(--red);
  padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  align-self: flex-start; margin-bottom: 16px;
}
.consultant-name { font-size: 36px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.consultant-title { font-size: 15px; color: var(--gray-600); margin-bottom: 24px; }
.consultant-details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.detail-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-700); }
.detail-icon { font-size: 18px; }
.consultant-cta { align-self: flex-start; }

/* ===== Promise ===== */
.promise {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
}
.promise-card {
  text-align: center; color: #fff; max-width: 700px; margin: 0 auto;
}
.promise-title {
  font-size: clamp(24px, 3.5vw, 35px); font-weight: 800; margin-bottom: 20px;
  line-height: 1.4;
}
.promise-text { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 12px; }
.promise-text strong { color: #fff; }
.promise-cta { margin-top: 32px; }

/* ===== Footer ===== */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 126px; margin-bottom: 16px; filter: brightness(2); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
  color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  color: #25D366; font-size: 14px; font-weight: 600; margin-top: 8px;
  transition: var(--transition);
}
.footer-whatsapp:hover { color: #fff; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 13px; }

/* ===== Case Page Styles ===== */
.case-hero {
  background: var(--navy); padding: 140px 0 80px; color: #fff; position: relative; overflow: hidden;
}
.case-hero::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(200,16,46,0.08);
}
.case-hero-tag {
  display: inline-block; background: rgba(200,16,46,0.2); border: 1px solid rgba(200,16,46,0.4);
  color: var(--red-light); padding: 6px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.case-hero-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 16px; line-height: 1.3; }
.case-hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 600px; }

.case-content { padding: 80px 0; }
.case-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.case-main {}
.case-block {
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-200);
}
.case-block:last-child { border-bottom: none; margin-bottom: 0; }
.case-block-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 28px; font-weight: 700; color: var(--red);
  letter-spacing: 1px; margin-bottom: 16px;
}
.case-block-label::before {
  content: ''; width: 20px; height: 3px; background: var(--red); border-radius: 2px;
}
.case-block h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.case-block p { font-size: 16px; color: var(--gray-700); line-height: 1.9; margin-bottom: 12px; }
.case-block strong { color: var(--navy); }
.case-strategy {
  background: var(--gray-50); border-radius: var(--radius); padding: 28px;
  margin: 16px 0;
}
.case-strategy h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.case-strategy p { font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.case-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.case-result-item {
  background: var(--gray-50); padding: 24px; border-radius: var(--radius);
  text-align: center; border: 1px solid var(--gray-200);
}
.case-result-item .result-value { display: block; font-size: 24px; font-weight: 900; color: var(--red); }
.case-result-item .result-label { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

.case-sidebar {}
.sidebar-card {
  background: var(--navy); border-radius: var(--radius-lg); padding: 32px;
  color: #fff; margin-bottom: 24px; position: sticky; top: 100px;
}
.sidebar-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.sidebar-card p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 16px; }
.sidebar-card .btn { width: 100%; }
.sidebar-other-cases { margin-top: 20px; }
.sidebar-other-cases h5 { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 12px; letter-spacing: 1px; }
.sidebar-other-link {
  display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px; color: rgba(255,255,255,0.7); transition: var(--transition);
}
.sidebar-other-link:hover { color: #fff; }
.sidebar-other-link:last-child { border-bottom: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .case-layout { grid-template-columns: 1fr; }
  .case-sidebar { order: -1; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--navy); flex-direction: column; justify-content: center;
    gap: 24px; padding: 40px; transition: var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .nav-menu.active { right: 0; }
  .nav-menu a { font-size: 18px; }
  .nav-toggle { display: block; }
  
  .hero-content { padding: 120px 0 60px; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .stat-divider { width: 60px; height: 1px; }
  
  .section { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .consultant-card { grid-template-columns: 1fr; }
  .consultant-info { padding: 32px; }
  .consultant-visual { padding: 32px; }
  
  .case-result-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 16px; }
}
