/* ============================================================
   Hillsdale Grove Group Limited — Corporate Website Stylesheet
   ============================================================ */

:root {
  --navy: #0f2a43;
  --navy-800: #16385c;
  --navy-600: #1f4d7a;
  --teal: #0e7c6b;
  --teal-light: #e6f4f1;
  --ink: #22313f;
  --ink-soft: #4a5b6b;
  --line: #dde5ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-navy: #0f2a43;
  --gold: #b98a2f;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 67, 0.08);
  --shadow-lg: 0 14px 40px rgba(15, 42, 67, 0.14);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- i18n visibility ---------- */
html[data-lang="en"] .zh, html[data-lang="en"] .pt, html[data-lang="en"] .es { display: none !important; }
html[data-lang="zh"] .en, html[data-lang="zh"] .pt, html[data-lang="zh"] .es { display: none !important; }
html[data-lang="pt"] .en, html[data-lang="pt"] .zh, html[data-lang="pt"] .es { display: none !important; }
html[data-lang="es"] .en, html[data-lang="es"] .zh, html[data-lang="es"] .pt { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--bg-navy); color: #eaf1f8; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); }
.section-navy .section-head h2 { color: #ffffff; }
.section-navy .section-head p { color: #b8c9da; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; color: var(--navy); font-size: 17px; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.active { color: var(--teal); background: var(--teal-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font);
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.active { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 124, 107, 0.35);
}
.btn-primary:hover { background: #0b6a5b; transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline-dark { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(14, 124, 107, 0.35), transparent 60%),
    linear-gradient(135deg, #0f2a43 0%, #16385c 60%, #1f4d7a 100%);
  color: #fff;
  padding: 110px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.05);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}
.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fd1b5;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.hero .hero-cn { font-size: 22px; color: #a8c6e0; font-weight: 500; margin-bottom: 22px; }
.hero p.lead { color: #c7d8e8; font-size: 17.5px; max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 30px 30px 22px;
  backdrop-filter: blur(4px);
}
.hero-panel h3 { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: #9fd8cc; margin-bottom: 18px; }
.hero-fact { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.hero-fact:last-child { border-bottom: none; }
.hero-fact .fi { width: 38px; height: 38px; flex: 0 0 auto; }
.hero-fact .ft { font-size: 14.5px; color: #dce8f2; line-height: 1.5; }
.hero-fact .ft strong { color: #fff; display: block; font-size: 15px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(14, 124, 107, 0.3), transparent 60%),
    linear-gradient(135deg, #0f2a43 0%, #16385c 100%);
  color: #fff;
  padding: 72px 0 60px;
}
.page-hero h1 { font-size: 36px; margin-bottom: 8px; }
.page-hero p { color: #b8c9da; max-width: 720px; }
.breadcrumb { font-size: 13px; color: #8ba3ba; margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a { color: #a8c6e0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card ul { margin-top: 10px; padding-left: 0; list-style: none; }
.card ul li {
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 6px 0 6px 24px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

/* ---------- Facts strip ---------- */
.facts-strip {
  background: var(--teal);
  color: #fff;
  padding: 34px 0;
}
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.fact-item strong { display: block; font-size: 22px; margin-bottom: 4px; }
.fact-item span { font-size: 14px; opacity: 0.92; }

/* ---------- Detail list rows (services) ---------- */
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.service-row .s-icon {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row .s-icon svg { width: 42px; height: 42px; }
.service-row h3 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.service-row .s-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.service-row p { color: var(--ink-soft); }
.service-row ul { list-style: none; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.service-row ul li {
  color: var(--ink-soft);
  font-size: 14.5px;
  padding-left: 26px;
  position: relative;
}
.service-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.info-table th, table.info-table td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
table.info-table th {
  background: var(--bg-soft);
  color: var(--navy);
  width: 260px;
  font-weight: 600;
  white-space: nowrap;
}
table.info-table tr:last-child th, table.info-table tr:last-child td { border-bottom: none; }
table.info-table td { color: var(--ink-soft); }

/* ---------- Notice / callout ---------- */
.callout {
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 28px;
  color: #0b5a4e;
  font-size: 15px;
}
.callout strong { display: block; margin-bottom: 4px; color: #093f37; }
.callout.amber { border-left-color: var(--gold); background: #faf3e4; color: #6b5220; }
.callout.amber strong { color: #5a4416; }

/* ---------- Compliance checklist ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.check-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
}
.check-item .ci {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.check-item h3 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.check-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-line { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line .ci { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; }
.contact-line .ci svg { width: 22px; height: 22px; }
.contact-line h4 { color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.contact-line p { color: var(--ink-soft); font-size: 14.5px; }

.contact-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin: 16px 0 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-light);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Disclaimer band ---------- */
.disclaimer-band { background: #0b1f33; color: #90a7bc; padding: 26px 0; font-size: 13.5px; text-align: center; }
.disclaimer-band strong { color: #cddce9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: #b8c9da; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer p { font-size: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #b8c9da; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #7d93a9;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .check-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row ul { grid-template-columns: 1fr; }
  table.info-table th { width: auto; white-space: normal; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 4%;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .facts-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
