/* Horizon Rare Metals Group - corporate site */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

:root {
  --navy: #23445f;
  --navy-dark: #16283a;
  --link: #3a5f80;
  --ink: #1f1f1f;
  --muted: #5a5a5a;
  --line: #d9d9d9;
  --bg-soft: #f4f4f4;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 46px; height: auto; fill: var(--navy-dark); flex: none; }
.brand .brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--navy-dark);
  white-space: nowrap;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--link);
  font-size: 15px;
  font-weight: 400;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 30px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 3px; right: 3px;
  height: 2px;
  background: var(--navy-dark);
  transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 14px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 14px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,35,52,.55) 0%, rgba(20,35,52,.15) 60%, rgba(20,35,52,0) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 2px;
  max-width: 9em;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--navy-dark);
  color: #fff;
}
.page-banner .header-inner { padding: 0 24px; }
.banner-title {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 40px;
}
.banner-title h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: 2px;
}

/* ---------- Content ---------- */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px;
}
.section.wide { max-width: var(--maxw); }
.section h2 {
  font-size: 28px;
  font-weight: 500;
  color: var(--navy-dark);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.section h3 {
  font-size: 21px;
  font-weight: 500;
  color: var(--navy);
  margin: 40px 0 10px;
  letter-spacing: .5px;
}
.section .lead {
  font-size: 19px;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 22px;
}
.section p {
  color: #333;
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 16.5px;
}
.section-img {
  width: 100%;
  border-radius: 2px;
  margin: 10px 0 32px;
  box-shadow: 0 6px 26px rgba(0,0,0,.10);
}
.divider { height: 1px; background: var(--line); border: 0; max-width: 860px; margin: 0 auto; }

/* president */
.president {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.president .portrait { width: 100%; border-radius: 2px; box-shadow: 0 6px 26px rgba(0,0,0,.12); }
.president .p-name { font-size: 30px; font-weight: 500; color: var(--navy-dark); letter-spacing: 1px; }
.president .p-role { font-size: 17px; color: var(--muted); margin-bottom: 26px; }
.president p { font-weight: 300; color: #333; margin-bottom: 18px; font-size: 16.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 54px 40px 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.footer-brand svg { width: 64px; height: auto; fill: #111; }
.footer-brand .fb-name { font-size: 15px; font-weight: 500; letter-spacing: 1px; line-height: 1.35; color: #111; }
.footer-line { height: 1px; background: var(--line); margin: 0 0 18px; }
.footer-copy { text-align: right; color: var(--muted); font-size: 14px; padding-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav li { border-top: 1px solid #eee; }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { display: block; padding: 14px 24px; font-size: 16px; }
  .header-inner { position: relative; }
  .brand .brand-name { font-size: 13px; letter-spacing: 1px; }
  .hero { min-height: 460px; }
  .president { grid-template-columns: 1fr; gap: 24px; }
  .president .portrait { max-width: 300px; }
  .section, .banner-title { padding-left: 24px; padding-right: 24px; }
  .hero-inner { padding: 0 24px; }
}
