/* Hope Foundation Holdings LLC — hopehfgroup.com
   Shared stylesheet for all six language editions.
   Palette: deep navy #0e2233 + gold #c9a227. No frameworks.
   Direction-safe: logical properties used wherever direction matters. */
:root{
  --navy:#0e2233; --navy-2:#14334d; --navy-3:#0a1826;
  --gold:#c9a227; --gold-lt:#e9cd6b; --gold-text:#80641a;
  --ink:#1d2934; --mut:#5b6b78; --bg:#f5f6f7; --line:#e1e7ec;
  --white:#fff;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"Segoe UI","Helvetica Neue",Arial,"Noto Sans","PingFang SC","Microsoft YaHei",Tahoma,sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.65; font-size:16.5px;
}
img{max-width:100%; display:block}
a{color:inherit}
.container{width:92%; max-width:1240px; margin-inline:auto}

/* ---------- Header ---------- */
.site-header{background:var(--navy); color:#fff; position:sticky; top:0; z-index:50;
  box-shadow:0 2px 14px rgba(0,0,0,.25)}
.header-in{display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding-top:12px; padding-bottom:12px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.brand-mark{background:var(--gold); color:var(--navy); font-weight:800; font-size:1.05rem;
  width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:6px; letter-spacing:.5px}
.brand-name{font-weight:700; font-size:1.06rem; line-height:1.2; letter-spacing:.2px}
.brand-name small{display:block; font-weight:400; font-size:.72rem; color:var(--gold-lt); letter-spacing:2.5px; text-transform:uppercase}
.main-nav{display:flex; gap:4px; flex-wrap:wrap}
.main-nav a{color:#dbe5ec; text-decoration:none; padding:8px 13px; border-radius:5px; font-size:.96rem}
.main-nav a:hover{background:var(--navy-2); color:#fff}
.main-nav a.active{color:var(--gold-lt)}
.lang-nav{display:flex; gap:4px; flex-wrap:wrap; align-items:center}
.lang-nav a{color:#9fb4c2; text-decoration:none; font-size:.83rem; padding:5px 9px; border:1px solid #2c4a61; border-radius:20px}
.lang-nav a:hover{color:#fff; border-color:var(--gold)}
.lang-nav a.current{background:var(--gold); color:var(--navy); border-color:var(--gold); font-weight:700}

/* ---------- Hero ---------- */
.hero{position:relative; background:var(--navy); color:#fff; overflow:hidden}
.hero img.hero-bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.5}
.hero::after{content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(10,24,38,.92) 30%, rgba(10,24,38,.45) 75%)}
[dir="rtl"] .hero::after{background:linear-gradient(-100deg, rgba(10,24,38,.92) 30%, rgba(10,24,38,.45) 75%)}
.hero-in{position:relative; z-index:2; padding:92px 0 118px; max-width:760px}
.hero .kicker{color:var(--gold-lt); letter-spacing:3px; font-size:.8rem; font-weight:700; text-transform:uppercase; margin-bottom:16px}
.hero h1{font-size:2.65rem; line-height:1.18; font-weight:800; margin-bottom:18px}
.hero p{font-size:1.13rem; color:#dde7ee; margin-bottom:30px}
.btn{display:inline-block; text-decoration:none; font-weight:700; padding:13px 28px; border-radius:6px; font-size:1rem}
.btn-gold{background:var(--gold); color:var(--navy)}
.btn-gold:hover{background:var(--gold-lt)}
.btn-ghost{border:1.5px solid #cfe0ec; color:#fff; margin-inline-start:12px}
.btn-ghost:hover{border-color:var(--gold-lt); color:var(--gold-lt)}

/* ---------- Stats band ---------- */
.stats{position:relative; z-index:3; margin-top:-64px}
.stats-in{background:#fff; border-radius:10px; box-shadow:0 14px 34px rgba(14,34,51,.16);
  display:grid; grid-template-columns:repeat(4,1fr); padding:26px 10px}
.stat{text-align:center; padding:4px 10px}
.stat + .stat{border-inline-start:1px solid var(--line)}
.stat b{display:block; font-size:1.65rem; color:var(--navy); font-weight:800}
.stat b em{font-style:normal; color:var(--gold-text)}
.stat span{font-size:.86rem; color:var(--mut)}

/* ---------- Sections ---------- */
section{padding:74px 0}
.sec-head{max-width:820px; margin-bottom:42px}
.sec-head.center{margin-inline:auto; text-align:center}
.kicker{color:var(--gold-text); letter-spacing:2.5px; font-size:.78rem; font-weight:700; text-transform:uppercase; margin-bottom:10px}
h2{font-size:1.9rem; color:var(--navy); line-height:1.25; margin-bottom:12px}
.sec-head p, .lead{color:var(--mut); font-size:1.05rem}
.alt{background:#fff}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center}
.two-col img{border-radius:10px; box-shadow:0 12px 30px rgba(14,34,51,.18); width:100%; height:100%; object-fit:cover}
.prose p{margin-bottom:16px; color:#33424f}
.fact-list{list-style:none; margin-top:8px}
.fact-list li{display:flex; justify-content:space-between; gap:16px; padding:10px 2px; border-bottom:1px solid var(--line); font-size:.98rem}
.fact-list li b{color:var(--navy); white-space:nowrap}

/* ---------- Division cards (home) ---------- */
.div-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.div-card{background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  text-decoration:none; display:flex; flex-direction:column; transition:transform .18s, box-shadow .18s}
.div-card:hover{transform:translateY(-4px); box-shadow:0 16px 32px rgba(14,34,51,.14)}
.div-card img{height:158px; width:100%; object-fit:cover}
.div-card .dc-body{padding:18px 18px 20px}
.div-card h3{font-size:1.02rem; color:var(--navy); line-height:1.35; margin-bottom:7px}
.div-card p{font-size:.9rem; color:var(--mut)}
.div-card .dc-items{font-size:.82rem; color:var(--mut); margin-top:4px; line-height:1.55}
.div-card .dc-link{margin-top:auto; padding:0 18px 16px; color:var(--gold-text); font-weight:700; font-size:.88rem}

/* ---------- Track record ---------- */
.track{background:var(--navy); color:#e8eff4}
.track h2{color:#fff}
.track .sec-head p{color:#a9bccb}
.track-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.track-card{background:var(--navy-2); border:1px solid #24506f; border-top:3px solid var(--gold);
  border-radius:8px; padding:24px}
.track-card .tc-amt{font-size:1.45rem; font-weight:800; color:var(--gold-lt); margin:6px 0 8px}
.track-card h3{font-size:1.05rem; color:#fff; line-height:1.4}
.track-card p{font-size:.92rem; color:#a9bccb}
.track-total{margin-top:26px; text-align:center; font-size:1.08rem; color:#fff}
.track-total b{color:var(--gold-lt); font-size:1.3rem}

/* ---------- Offices ---------- */
.off-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px}
.off-card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px}
.off-card h3{color:var(--navy); font-size:1rem; margin-bottom:6px}
.off-card .off-tag{color:var(--gold-text); font-size:.78rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; display:block; margin-bottom:8px}
.off-card p{font-size:.92rem; color:var(--mut)}

/* ---------- CTA ---------- */
.cta{background:linear-gradient(120deg, var(--navy) 55%, var(--navy-2)); color:#fff; text-align:center}
.cta h2{color:#fff}
.cta p{color:#c3d3df; max-width:640px; margin:0 auto 26px}

/* ---------- Products page ---------- */
.page-hero{background:var(--navy); color:#fff; padding:58px 0}
.page-hero h1{font-size:2.2rem; margin-bottom:10px}
.page-hero p{color:#c3d3df; max-width:760px}
.prod-row{display:grid; grid-template-columns:5fr 7fr; gap:40px; align-items:center; padding:44px 0; border-bottom:1px solid var(--line)}
.prod-row:last-child{border-bottom:none}
.prod-row.flip .prod-img{order:2}
.prod-img img{border-radius:10px; width:100%; height:300px; object-fit:cover; box-shadow:0 10px 26px rgba(14,34,51,.15)}
.prod-txt h2{font-size:1.5rem; margin-bottom:10px}
.prod-txt .prod-desc{color:#3c4c59; margin-bottom:16px}
.chips{list-style:none; display:flex; flex-wrap:wrap; gap:8px}
.chips li{background:#eef3f6; border:1px solid var(--line); border-radius:20px; padding:6px 14px; font-size:.88rem; color:var(--navy)}

/* ---------- Entities (group page) ---------- */
.ent-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:20px}
.ent-card{background:#fff; border:1px solid var(--line); border-inline-start:4px solid var(--gold); border-radius:8px; padding:24px}
.ent-card h3{color:var(--navy); margin-bottom:4px; font-size:1.08rem}
.ent-card .ent-role{color:var(--gold-text); font-weight:700; font-size:.85rem; letter-spacing:1px; text-transform:uppercase; margin-bottom:8px}
.ent-card p{color:var(--mut); font-size:.95rem}

/* ---------- Contact ---------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:22px}
.c-card{background:#fff; border:1px solid var(--line); border-radius:10px; padding:28px}
.c-card h3{color:var(--navy); margin-bottom:12px; font-size:1.1rem}
.c-card p{color:#33424f; margin-bottom:8px}
.c-card a{color:#8a6d14; font-weight:600; text-decoration:none; word-break:break-all}
.c-card a:hover{text-decoration:underline}
.c-big{font-size:1.25rem; font-weight:700; color:var(--navy)}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy-3); color:#93a9ba; padding:48px 0 30px; font-size:.92rem}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr; gap:34px; margin-bottom:30px}
.site-footer h4{color:#fff; font-size:1rem; margin-bottom:12px}
.site-footer a{color:#c8d7e1; text-decoration:none}
.site-footer a:hover{color:var(--gold-lt)}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:7px}
.footer-legal{border-top:1px solid #1d3a50; padding-top:20px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:.84rem}

/* ---------- Contact form ---------- */
.contact-form{background:#fff; border:1px solid var(--line); border-radius:10px; padding:32px}
.form-grid{display:flex; flex-wrap:wrap; gap:18px}
.form-field{display:block; width:calc(50% - 9px)}
.form-field.full{width:100%}
.form-field label{display:block; font-weight:600; color:var(--navy); font-size:.94rem; margin-bottom:7px}
.contact-form input[type="hidden"]{display:none}
.form-field input, .form-field select, .form-field textarea{font:inherit; font-size:.98rem; padding:12px 14px; border:1px solid var(--line); border-radius:6px; background:#fbfcfd; color:var(--ink); width:100%}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{outline:2px solid var(--gold); border-color:var(--gold); background:#fff}
.form-field textarea{min-height:150px; resize:vertical}
.form-actions{margin-top:22px; display:flex; align-items:center; gap:20px; flex-wrap:wrap}
button.btn{border:none; cursor:pointer; font-family:inherit}
.form-note{font-size:.88rem; color:var(--mut)}
@media (max-width:760px){.form-field{width:100%}}

/* ---------- Responsive ---------- */
@media (max-width:1020px){
  .div-grid{grid-template-columns:repeat(2,1fr)}
  .off-grid{grid-template-columns:repeat(2,1fr)}
  .stats-in{grid-template-columns:repeat(2,1fr); gap:16px}
  .stat + .stat{border-inline-start:none}
}
@media (max-width:760px){
  .hero-in{padding:60px 0 96px}
  .hero h1{font-size:1.9rem}
  .two-col, .prod-row, .contact-grid, .ent-grid, .footer-grid{grid-template-columns:1fr}
  .prod-row.flip .prod-img{order:0}
  .track-grid{grid-template-columns:1fr}
  .prod-img img{height:220px}
  h2{font-size:1.55rem}
  .btn-ghost{margin-inline-start:0; margin-top:10px}
}
@media (max-width:520px){
  .div-grid, .off-grid{grid-template-columns:1fr}
  .header-in{justify-content:center; text-align:center}
  .brand{margin-inline:auto}
}

/* product-page links */
.chips li:has(> a){padding:0}
.chips li > a{display:block; padding:6px 14px; color:inherit; text-decoration:none; border-radius:20px}
.chips li:has(> a):hover{border-color:var(--gold); background:#faf3da}
.mc-link{margin-top:12px}
.mc-link a{color:#8a6d14; font-weight:600; text-decoration:none}
.mc-link a:hover{text-decoration:underline}

/* v13: gold text on dark bands keeps the light gold; text links on light
   backgrounds use the darker gold for contrast (audit fix). */
.page-hero .kicker, .track .kicker, .cta .kicker{color:var(--gold)}
.spec-table{width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line)}
.spec-table th, .spec-table td{padding:13px 16px; text-align:start; border-bottom:1px solid var(--line); font-size:.95rem; vertical-align:top}
.spec-table thead th{background:var(--navy); color:#fff; font-size:.9rem; letter-spacing:.4px}
.spec-table tbody tr:last-child td{border-bottom:none}
.spec-table td a{color:#8a6d14; font-weight:600; text-decoration:none}
.spec-table td a:hover{text-decoration:underline}
.spec-note{font-size:.88rem; color:var(--mut); margin-top:12px}
