/* HPS Website Prototype — built strictly from HPS_Brand_Assets_v5.0 design tokens.
   White First: white/cloud 55-65%, ocean/deep 25-35%, phuong red 8-12% (accents only). */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --hps-ocean-blue: #0B5EA8;
  --hps-deep-ocean: #083B66;
  --hps-phuong-red: #E52521;
  --hps-cloud-gray: #F4F7F9;
  --hps-charcoal: #263746;
  --hps-white: #FFFFFF;
  --font-brand: 'Be Vietnam Pro', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--hps-charcoal); background: var(--hps-white); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--hps-ocean-blue); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header — white bg, horizontal master logo (min 220px rule respected) */
.site-header { background: var(--hps-white); border-bottom: 3px solid var(--hps-ocean-blue); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand img { height: 44px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; font-family: var(--font-brand); font-weight: 700; color: var(--hps-ocean-blue); border: 2px solid var(--hps-ocean-blue); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
nav.main-nav ul { display: flex; gap: 4px; list-style: none; }
nav.main-nav a { font-family: var(--font-brand); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--hps-charcoal); padding: 8px 12px; border-radius: 8px; }
nav.main-nav a:hover { background: var(--hps-cloud-gray); color: var(--hps-ocean-blue); }
nav.main-nav a.active { color: var(--hps-ocean-blue); box-shadow: inset 0 -3px 0 var(--hps-phuong-red); }

/* Hero — white with geometric connection-line decor (secondary graphic, behind content) */
.hero { background-color: var(--hps-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg stroke='%230B5EA8' stroke-opacity='0.10' stroke-width='1.5'%3E%3Cpath d='M0 200 L80 140 L160 160 L240 80' fill='none'/%3E%3Cpath d='M0 240 L120 180 L240 200' fill='none'/%3E%3C/g%3E%3Cg fill='%23E52521' fill-opacity='0.35'%3E%3Crect x='78' y='138' width='7' height='7' transform='rotate(45 81 141)'/%3E%3Crect x='158' y='158' width='7' height='7' transform='rotate(45 161 161)'/%3E%3C/g%3E%3C/svg%3E"); padding: 64px 0 56px; }
.hero h1 { font-family: var(--font-brand); font-size: clamp(28px, 4.5vw, 46px); line-height: 1.2; color: var(--hps-deep-ocean); max-width: 800px; }
.hero h1 .red { color: var(--hps-phuong-red); }
.hero .tagline { font-family: var(--font-brand); font-weight: 600; letter-spacing: 2px; color: var(--hps-ocean-blue); margin: 14px 0 6px; font-size: 14px; }
.hero p.lead { font-size: 18px; max-width: 720px; margin-top: 12px; }
.accent-bar { width: 72px; height: 5px; background: var(--hps-phuong-red); border-radius: 3px; margin: 18px 0; }

/* Buttons — primary Ocean Blue (red reserved for deliberate CTA only) */
.btn { display: inline-block; font-family: var(--font-brand); font-weight: 600; text-decoration: none; padding: 12px 26px; border-radius: var(--radius); margin: 8px 12px 0 0; }
.btn-primary { background: var(--hps-ocean-blue); color: var(--hps-white); }
.btn-primary:hover { background: var(--hps-deep-ocean); }
.btn-outline { border: 2px solid var(--hps-ocean-blue); color: var(--hps-ocean-blue); }
.btn-outline:hover { background: var(--hps-cloud-gray); }

/* Sections */
section.block { padding: 52px 0; }
section.cloud { background: var(--hps-cloud-gray); }
h2.section-title { font-family: var(--font-brand); font-size: clamp(22px, 3vw, 30px); color: var(--hps-deep-ocean); margin-bottom: 6px; }
.section-sub { color: var(--hps-charcoal); opacity: .85; margin-bottom: 24px; max-width: 760px; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--hps-white); border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 24px; }
.card h3 { font-family: var(--font-brand); font-size: 19px; color: var(--hps-ocean-blue); margin-bottom: 8px; }
.card .num { font-family: var(--font-brand); font-size: 34px; font-weight: 700; color: var(--hps-ocean-blue); }
.card .num em { font-style: normal; color: var(--hps-phuong-red); }
.branch-card img { height: 52px; width: auto; margin-bottom: 12px; }
.branch-card { border-top: 5px solid var(--hps-ocean-blue); }
ul.check { list-style: none; margin-top: 10px; }
ul.check li { padding-left: 26px; position: relative; margin-bottom: 8px; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; background: var(--hps-phuong-red); transform: rotate(45deg); }

/* Deep ocean band */
.band-deep { background: var(--hps-deep-ocean); color: var(--hps-white); }
.band-deep h2 { color: var(--hps-white); }
.band-deep p { opacity: .92; }

/* Footer — Deep Ocean bg, reversed logo */
footer.site-footer { background: var(--hps-deep-ocean); color: var(--hps-white); padding: 40px 0 24px; font-size: 14px; }
footer.site-footer img.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer.site-footer h4 { font-family: var(--font-brand); font-size: 15px; margin-bottom: 10px; color: var(--hps-white); }
footer.site-footer a { color: #BFD9F2; text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer ul { list-style: none; }
footer.site-footer li { margin-bottom: 6px; }
.copyright { border-top: 1px solid rgba(255,255,255,.25); margin-top: 26px; padding-top: 14px; font-size: 13px; opacity: .85; }

/* Page hero (inner pages) */
.page-hero { background: var(--hps-cloud-gray); padding: 44px 0 36px; border-bottom: 3px solid var(--hps-ocean-blue); }
.page-hero h1 { font-family: var(--font-brand); color: var(--hps-deep-ocean); font-size: clamp(26px, 4vw, 38px); }

/* Contact table / misc */
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; margin-top: 12px; }
.kv dt { font-weight: 600; color: var(--hps-ocean-blue); }
.form-note { background: var(--hps-cloud-gray); border-radius: var(--radius); padding: 20px; margin-top: 20px; font-size: 15px; }

/* Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: block; }
  nav.main-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
  nav.main-nav ul { flex-direction: column; padding: 8px 0; }
  .header-inner { flex-wrap: wrap; }
}
