:root{
  --navy:#002060;
  --blue:#155ea8;
  --gold:#c99a3d;
  --red:#c00000;
  --green:#137a3f;
  --green-dark:#0d5c2e;
  --text:#000000;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:var(--text);background:#fff;}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
a:focus-visible{outline:3px solid var(--blue);outline-offset:2px;}
.header-banner{width:100%;line-height:0;}
.header-banner img{width:100%;height:auto;}

.navbar{
  border:3px solid var(--navy);
  margin:0 auto;
  max-width:1200px;
  background:#fff;
}
.navbar ul{
  display:flex;
  justify-content:center;
  align-items:center;
  list-style:none;
  margin:0;
  padding:14px 10px;
  flex-wrap:wrap;
  gap:10px;
}
.navbar li{display:flex;align-items:center;gap:10px;}
.navbar li:not(:last-child)::after{
  content:"|";
  color:var(--blue);
  margin-left:10px;
  font-weight:700;
}
.navbar a{
  color:var(--blue);
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:.3px;
}
.navbar a.active,.navbar a:hover{color:var(--navy);text-decoration:underline;}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  margin:-1px;padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

main{max-width:1200px;margin:0 auto;padding:30px 24px 60px;}

h1,h2,h3{color:var(--navy);}
h2.section-title{
  color:var(--navy);
  text-decoration:underline;
  font-size:1.4rem;
  margin-top:2em;
}
p{line-height:1.6;font-size:1.02rem;}
.lead{font-size:1.05rem;line-height:1.7;}
p.lead-title{color:var(--navy);font-weight:700;}
p.lead-title strong{font-weight:700;}
ol.numbered{list-style:none;margin:0;padding:0;}
ol.numbered li{margin-bottom:.5em;line-height:1.6;}
ol.numbered li b{color:var(--red);margin-right:.3em;}
p.lead-blue{color:var(--blue);font-weight:700;}
p.lead-red{color:var(--red);font-weight:700;}
p.lead-green{color:#1c6228;font-weight:700;}
p.lead-green-bright{color:#006600;font-weight:700;}
p.lead-dark{color:var(--text);font-weight:700;}
/* the source sets Home's closing call-to-action line in a very dark green,
   deliberately distinct from the black body copy on the lines above it */
b.deep-green{color:#112e10;}
ol.numbered.strong li{font-weight:700;}
h2.section-title.red{color:var(--red);}
/* indented parenthetical note that follows a numbered list (projects) */
p.note-indent{margin:.2em 0 0;padding-left:1.6em;}

/* Annual earning comparison (home) */
.earnings{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:auto auto;
  gap:0 18px;
  margin:.4em 0 0;
}
/* Each item spans the label row and the value row so that, as in the source
   design, every value sits on one aligned baseline even when a longer label
   ("Real Estate (Capital Appreciation)") wraps onto a second line. */
.earnings-item{
  display:grid;
  grid-row:span 2;
  grid-template-rows:subgrid;
  gap:.2em;
  line-height:1.5;
}
@supports not (grid-template-rows:subgrid){
  /* reserve two label lines so the values still line up */
  .earnings-label{min-height:2.6em;}
}
.earnings-item+.earnings-item{
  border-left:2px solid var(--blue);
  padding-left:18px;
}
.earnings-label{color:var(--navy);font-weight:700;}
.earnings-value{font-weight:700;}
@media (max-width:760px){
  .earnings{grid-template-columns:repeat(2,1fr);gap:14px 14px;}
  .earnings-item:nth-child(odd){border-left:0;padding-left:0;}
}

footer{
  background:var(--navy);
  color:#fff;
  text-align:center;
  padding:22px 16px;
  margin-top:40px;
  font-size:.92rem;
}
.footer-copy{margin:0;font-size:inherit;line-height:inherit;}
.footer-lang{margin:.6em 0 0;font-size:inherit;line-height:inherit;}
footer a{color:#ffd97a;text-decoration:underline;}

/* ===== Language Selection Page ===== */
.lang-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:40px 24px 80px;
}
.welcome-banner{
  max-width:760px;
  margin:0 auto 1.6em;
}
.welcome-banner img{
  width:100%;
  height:auto;
  margin:0 auto;
  /* the source image carries a dark rule under the wording; clip it off */
  clip-path:inset(0 0 14% 0);
}
.lang-wrap h1{
  text-align:center;
  text-decoration:underline;
  font-size:1.6rem;
  margin-bottom:1.4em;
  color:var(--green);
}
.lang-grid{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
  max-width:600px;
  margin:0 auto;
}
.lang-btn{
  display:block;
  width:100%;
  text-align:center;
  font-size:1.3rem;
  font-weight:700;
  color:var(--navy);
  padding:6px 18px;
  transition:.15s;
}
.lang-btn:hover{color:var(--blue);}
.lang-native{
  display:block;
  font-size:1rem;
  font-weight:400;
  color:#6b7280;
  margin-top:.25em;
}
.lang-btn-primary{
  background:var(--blue);
  color:#fff;
  padding:18px 18px;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}
.lang-btn-primary:hover{
  background:var(--navy);
  color:#fff;
}
/* ===== Contact page ===== */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:20px;
}
@media (max-width:760px){.contact-grid{grid-template-columns:1fr;}}
.contact-card h2{font-size:1.17rem;margin:1em 0 .2em;}
.contact-card p{margin:.25em 0;}
.contact-card p.office-title{margin-top:1.2em;color:var(--navy);}
.contact-line{display:flex;align-items:center;gap:10px;margin:.6em 0;font-size:1.05rem;}
.contact-ico{width:30px;height:auto;flex:none;}
.contact-ico.mail{width:32px;}
.tech-support{margin-top:1.6em;}
.tech-support .green{color:#1e8449;font-weight:700;text-decoration:underline;}

/* Certificates gallery */
.cert-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:24px;
  margin-top:24px;
}
.cert-card{
  display:block;
  border:1px solid #e0e4ec;
  border-radius:10px;
  padding:18px;
  text-align:center;
  background:#f9fafc;
  transition:.15s;
}
.cert-card:hover{border-color:var(--blue);box-shadow:0 4px 14px rgba(13,42,92,.15);}
.cert-card img{
  width:100%;
  height:300px;
  object-fit:cover;
  object-position:top center;
  border:1px solid #d7dce6;
  background:#fff;
}
.cert-card h2{font-size:1rem;margin:.8em 0 .2em;color:var(--navy);}
.cert-card h2 b{color:var(--red);margin-right:.3em;}
.cert-card p{margin:0;font-size:.95rem;color:#444;}
.cert-view{
  display:inline-block;
  margin-top:1em;
  padding:8px 16px;
  border-radius:6px;
  background:var(--blue);
  color:#fff;
  font-weight:700;
  font-size:.92rem;
}
.cert-card:hover .cert-view{background:var(--navy);}

#google_translate_element{position:absolute;top:-9999px;left:-9999px;}
.goog-te-banner-frame{display:none !important;}
body{top:0 !important;}
