/* ============================================================
   COREFIELD LIMITED — Hong Kong pharma wholesale corporate site
   ============================================================ */

:root {
  --hk-navy: #0c2d4a;
  --hk-navy-light: #134a72;
  --hk-blue: #1a6fa8;
  --hk-teal: #0d7377;
  --hk-accent: #c9a227;
  --bg: #f7f9fb;
  --white: #ffffff;
  --dark: #1a2332;
  --gray: #5a6578;
  --gray-light: #8b95a5;
  --border: #dce3eb;
  --success: #1e7e4a;
  --font: "Segoe UI", "PingFang HK", "Microsoft JhengHei", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--dark); background: var(--bg); line-height: 1.65; }

a { color: var(--hk-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Top bar (HK corporate standard) ---------- */
.top-bar {
  background: var(--hk-navy);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 9px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: #fff; font-weight: 600; }
.top-bar .phone { font-weight: 700; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12,45,74,0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 20px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 48px; height: 48px; background: linear-gradient(135deg, var(--hk-navy), var(--hk-blue));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; border-radius: 6px;
}
.logo-name { font-size: 20px; font-weight: 800; color: var(--hk-navy); display: block; letter-spacing: 0.03em; }
.logo-tag { font-size: 11px; color: var(--gray-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 10px 16px; color: var(--dark); font-weight: 600; font-size: 14px; border-radius: 4px;
}
.main-nav a:hover { background: var(--bg); color: var(--hk-navy); text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-primary {
  background: var(--hk-navy); color: #fff; padding: 11px 22px; border-radius: 4px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer; white-space: nowrap;
  display: inline-block; text-decoration: none; letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--hk-navy-light); color: #fff; text-decoration: none; }

/* Language switch — top-right, prominent (HK bilingual standard) */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 2px solid var(--hk-navy);
  color: var(--hk-navy); font-weight: 800; font-size: 14px;
  padding: 8px 14px; cursor: pointer; border-radius: 4px; min-width: 80px;
}
.lang-switch-btn:hover { background: var(--bg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 2px solid var(--hk-navy); border-radius: 4px;
  min-width: 200px; box-shadow: 0 8px 28px rgba(0,0,0,0.12); overflow: hidden; z-index: 120;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block; width: 100%; text-align: left; padding: 12px 16px;
  border: none; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border); color: var(--dark);
}
.lang-dropdown button:last-child { border-bottom: none; }
.lang-dropdown button:hover { background: var(--bg); }
.lang-dropdown button.active { background: var(--hk-navy); color: #fff; }
.lang-dropdown .lang-sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.75; margin-top: 2px; }
.lang-dropdown button.active .lang-sub { color: rgba(255,255,255,0.85); }

.menu-toggle { display: none; background: var(--hk-navy); color: #fff; border: none; padding: 10px 14px; font-size: 18px; cursor: pointer; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--hk-navy) 0%, var(--hk-navy-light) 100%);
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(26,111,168,0.15); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--hk-accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.25; margin-bottom: 18px; }
.hero-lead { font-size: 16px; opacity: 0.92; margin-bottom: 28px; max-width: 54ch; line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.hero-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 22px; border-radius: 4px; font-weight: 700; font-size: 14px;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; border-color: #fff; }

.hero-card {
  background: var(--white); color: var(--dark); border-radius: 8px; padding: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.hero-card h3 { color: var(--hk-navy); font-size: 16px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--hk-teal); }
.hero-card ul { list-style: none; }
.hero-card li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.hero-card li:last-child { border-bottom: none; }
.hero-card .ico { color: var(--hk-teal); font-size: 18px; flex-shrink: 0; }

/* ---------- Compliance notice (pharma HK standard) ---------- */
.compliance-bar {
  background: #eef4f8; border-bottom: 1px solid var(--border);
  padding: 12px 0; font-size: 12px; color: var(--gray); text-align: center;
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item .ico { font-size: 28px; margin-bottom: 10px; color: var(--hk-teal); }
.trust-item h4 { font-size: 14px; font-weight: 700; color: var(--hk-navy); margin-bottom: 4px; }
.trust-item p { font-size: 12px; color: var(--gray-light); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--hk-navy); margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 15px; }
.section-head .line { width: 48px; height: 3px; background: var(--hk-teal); margin: 14px auto 0; border-radius: 2px; }

/* ---------- Services / products grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow 0.2s; border-left: 4px solid var(--hk-teal);
}
section.alt .service-card { background: var(--bg); }
.service-card:hover { box-shadow: 0 8px 24px rgba(12,45,74,0.08); }
.service-card .ico { font-size: 36px; flex-shrink: 0; }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--hk-navy); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-text p { color: var(--gray); margin-bottom: 16px; font-size: 15px; }
.about-facts { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.about-facts h3 { background: var(--hk-navy); color: #fff; padding: 14px 20px; font-size: 15px; font-weight: 700; }
.about-facts dl { padding: 0; }
.about-facts dt { font-weight: 700; font-size: 11px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 20px 4px; }
.about-facts dd { padding: 0 20px 14px; font-size: 14px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.about-facts dd:last-child { border-bottom: none; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 24px 18px; text-align: center; }
.why-item .ico { font-size: 32px; margin-bottom: 12px; }
.why-item h4 { font-size: 14px; font-weight: 700; color: var(--hk-navy); margin-bottom: 6px; }
.why-item p { font-size: 12px; color: var(--gray); line-height: 1.55; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
.contact-info { background: var(--hk-navy); color: #fff; border-radius: 8px; padding: 32px; }
.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--hk-accent); }
.contact-info ul { list-style: none; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14px; line-height: 1.55; }
.contact-info li:last-child { border-bottom: none; }
.contact-info a { color: var(--hk-accent); font-weight: 700; }
.contact-info .label { display: block; font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
  font-family: inherit; font-size: 14px; margin-bottom: 16px; outline: none; background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--hk-blue); }
.contact-form button { width: 100%; background: var(--hk-navy); color: #fff; border: none; padding: 14px; font-weight: 700; font-size: 15px; border-radius: 4px; cursor: pointer; }
.contact-form button:hover { background: var(--hk-navy-light); }
.form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 1.2em; }

/* ---------- Footer (HK corporate + legal) ---------- */
.site-footer { background: var(--dark); color: #999; font-size: 13px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.footer-col a { display: block; color: #888; padding: 5px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; font-size: 12px;
}
.footer-disclaimer { max-width: 720px; color: #666; line-height: 1.6; font-size: 11px; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #777; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.mobile-open { display: flex; flex-direction: column; width: 100%; order: 10; background: var(--bg); padding: 12px; border-radius: 6px; }
}
@media (max-width: 560px) {
  .why-grid, .trust-grid, .footer-main { grid-template-columns: 1fr; }
}
