/* ===== ELITE CAREFLOW — SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
  --navy:       #003D7A;
  --navy-dark:  #002050;
  --navy-mid:   #1a4f8a;
  --gold:       #D4AF37;
  --gold-light: #e8c84a;
  --gold-pale:  #f5ecc4;
  --white:      #ffffff;
  --off-white:  #f8f6f0;
  --gray-100:   #f4f4f4;
  --gray-300:   #d0d0d0;
  --gray-500:   #7a7a7a;
  --text:       #1a1a1a;
  --line-green: #06C755;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', sans-serif; color: var(--text); background: var(--white); font-size: 16px; line-height: 1.85; letter-spacing: 0.01em; }

.display { font-family: 'Cormorant Garamond', serif; }
.gold { color: var(--gold); }
.navy { color: var(--navy); }

/* ─── NAVIGATION ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,32,80,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { display: none; }
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.nav-logo-text { line-height: 1.15; }
.nav-logo-en { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--white); letter-spacing: 0.12em; display: block; }
.nav-logo-zh { font-size: 14px; color: rgba(255,255,255,0.5); letter-spacing: 0.22em; display: block; margin-top: 3px; font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; }
.nav-links > li > a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13px; letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--gold); }
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 9px; opacity: 0.55; }
.nav-sub {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 10px;
  background: rgba(0,20,60,0.97); backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.25); min-width: 190px;
  list-style: none; padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35); z-index: 200;
}
/* Invisible bridge between nav item and dropdown to prevent hover gap */
.has-dropdown::after {
  content: ''; position: absolute; bottom: -10px;
  left: 0; right: 0; height: 10px;
}
.has-dropdown:hover .nav-sub { display: block; }
.nav-sub li a {
  display: block; padding: 9px 18px; font-size: 13px;
  color: rgba(255,255,255,0.75); transition: all 0.2s;
  white-space: nowrap; letter-spacing: 0.03em;
}
.nav-sub li a:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.has-dropdown.active > a { color: var(--gold); }
.nav-mobile-sub { padding-left: 28px !important; font-size: 13px !important; color: rgba(255,255,255,0.55) !important; border-bottom-style: dashed !important; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-line-nav {
  background: var(--line-green); color: var(--white);
  font-size: 14px; font-weight: 700; padding: 8px 18px;
  border-radius: 3px; text-decoration: none; letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-line-nav:hover { background: #05a847; }
.nav-hamburger { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }
.nav-mobile { display: none; background: var(--navy-dark); padding: 20px 24px; border-top: 1px solid rgba(212,175,55,0.15); }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; color: rgba(255,255,255,0.8); text-decoration: none; padding: 10px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-mobile a:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #001838 0%, #002d5c 40%, #003D7A 70%, #004d99 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=70') center/cover no-repeat;
  opacity: 0.18;
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 80px 24px; width: 100%; }

/* Gold corner brackets */
.hero-corner {
  position: absolute;
  width: 60px; height: 60px;
  border-color: rgba(212,175,55,0.5);
  border-style: solid;
}
.hero-corner.tl { top: 24px; left: 24px; border-width: 1px 0 0 1px; }
.hero-corner.tr { top: 24px; right: 24px; border-width: 1px 1px 0 0; }
.hero-corner.bl { bottom: 24px; left: 24px; border-width: 0 0 1px 1px; }
.hero-corner.br { bottom: 24px; right: 24px; border-width: 0 1px 1px 0; }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; letter-spacing: 0.06em; transition: all 0.2s; cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: var(--navy-dark); padding: 14px 32px; font-size: 15px; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.5); color: var(--white); background: transparent; padding: 14px 32px; font-size: 15px; }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); padding: 12px 28px; font-size: 15px; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline-navy { border: 1px solid var(--navy); color: var(--navy); background: transparent; padding: 12px 28px; font-size: 15px; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-line { background: var(--line-green); color: var(--white); padding: 12px 28px; font-size: 15px; }
.btn-line:hover { background: #05a847; }

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before, .section-label::after { content: '─'; opacity: 0.5; }

/* ─── DIVIDER ─── */
.gold-divider { width: 48px; height: 1px; background: var(--gold); margin: 16px 0; }
.gold-divider.center { margin: 16px auto; }

/* ─── CARDS ─── */
.card { background: var(--white); border: 1px solid #e8e8e8; padding: 32px; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 40px rgba(0,61,122,0.12); transform: translateY(-3px); }
.card-dark { background: var(--navy-dark); color: var(--white); border: 1px solid rgba(212,175,55,0.2); padding: 32px; }

/* ─── SECTIONS ─── */
.section { padding: 96px 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy-dark); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── FOOTER ─── */
.footer { background: #000d1a; color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
.footer-logo-en { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--white); font-weight: 600; letter-spacing: 0.05em; }
.footer-logo-zh { font-size: 14px; color: var(--gold); letter-spacing: 0.15em; margin-top: 4px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 32px 0; }
.footer a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 15px; line-height: 2.2; display: block; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer-heading { color: var(--gold); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.6fr; gap: 48px; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ─── FONT AWESOME ICONS ─── */
i.fa-solid, i.fa-regular { color: var(--gold); }
/* Buttons & nav: icons inherit parent text color for correct contrast */
a.btn i.fa-solid, a.btn i.fa-regular,
button.btn i.fa-solid, button.btn i.fa-regular,
.floating-line i.fa-solid, .floating-line i.fa-regular,
.nav-actions a i.fa-solid,
.nav-hamburger i.fa-solid { color: inherit; }

/* ─── FLOATING LINE ─── */
.floating-line {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  background: var(--line-green); color: var(--white);
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-line:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: block; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 60px 0; }
}

/* ─── GRID UTILITIES ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
