/* EU Invest Guide — global styles v2 */
:root {
  --green: #00b964;
  --green-dark: #00915a;
  --green-tint: #e7f7ef;
  --navy: #0c2233;
  --navy-2: #133550;
  --ink: #16242f;
  --muted: #5d6f7b;
  --line: #e4eae8;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --orange: #ff8a3d;
  --blue: #3b7dd8;
  --btn-ink: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(12, 34, 51, .05), 0 2px 8px rgba(12, 34, 51, .04);
  --shadow-md: 0 2px 4px rgba(12, 34, 51, .06), 0 12px 28px rgba(12, 34, 51, .09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }

h1, h2, h3 { color: var(--navy); }
h1, .article h1, .hero h1, .section > .container > h2 { font-family: var(--serif); }

/* ---------------------------------------------------------------- header */
.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.16rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.4px;
}
.logo:hover { color: var(--navy); }
.logo em { color: var(--green); font-style: normal; }
.logo svg { display: block; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  color: #38505f;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .93rem;
  font-weight: 500;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.site-nav a.active { color: var(--navy); font-weight: 700; }
.site-nav a.nav-cta {
  background: var(--green);
  color: var(--btn-ink);
  font-weight: 700;
  margin-left: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.site-nav a.nav-cta:hover { background: var(--green-dark); color: var(--btn-ink); }

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.crumbs .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: .82rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-dark); text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(0, 185, 100, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 78px 24px 84px;
  text-align: center;
}
.hero .kicker { color: var(--green); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  max-width: 820px;
  margin: 0 auto 20px;
  color: #fff;
}
.hero h1 em { color: var(--green); font-style: italic; }
.hero p {
  max-width: 660px;
  margin: 0 auto 34px;
  color: #bfd0dc;
  font-size: 1.13rem;
  line-height: 1.65;
}
.hero .stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.hero .stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 12px 22px;
  text-align: center;
}
.hero .stat b { display: block; font-size: 1.35rem; color: #fff; letter-spacing: -0.3px; }
.hero .stat span { font-size: .8rem; color: #9fb4c2; }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--btn-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: background .15s, transform .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--green-dark); color: var(--btn-ink); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid #ffffff55;
  margin-left: 12px;
  box-shadow: none;
}
.btn.secondary:hover { border-color: #fff; background: #ffffff14; }

/* ---------------------------------------------------------------- layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 68px 0; }
.section.alt { background: var(--bg-soft); }
.kicker {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.section h3.sub-h { font-size: 1.05rem; margin: 34px 0 14px; color: var(--navy); }
.section .lead { color: var(--muted); max-width: 680px; margin-bottom: 36px; font-size: 1.04rem; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; line-height: 1.65; }
.card .card-link {
  margin-top: 16px;
  font-weight: 600;
  font-size: .93rem;
  text-decoration: none;
}
.card .card-link:hover { text-decoration: underline; }
.card .tag {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- article */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}
.article h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.article .meta { color: var(--muted); font-size: .88rem; margin-bottom: 30px; }
.article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 42px 0 14px;
  letter-spacing: -0.3px;
}
.article h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.article p, .article ul, .article ol { margin-bottom: 17px; }
.article ul, .article ol { padding-left: 26px; }
.article li { margin-bottom: 7px; }
.article li::marker { color: var(--green-dark); }

/* ---------------------------------------------------------------- tables */
.table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
table.compare th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .3px;
  white-space: nowrap;
}
table.compare td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.compare tr:nth-child(even) td { background: var(--bg-soft); }
table.compare .best { color: var(--green-dark); font-weight: 700; }

/* ---------------------------------------------------------------- brokers */
.broker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.broker .rank {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 3px 11px;
  font-size: .82rem;
  margin-bottom: 10px;
}
.broker h3 { font-size: 1.35rem; margin-bottom: 6px; letter-spacing: -0.3px; }
.broker .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.broker .facts span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .8rem;
  color: var(--muted);
}
.broker .cta { margin-top: 16px; }
.broker .pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; font-size: .92rem; }
.broker .pros-cons ul { padding-left: 20px; margin: 6px 0 0; }
.broker .pros-cons li { margin-bottom: 4px; }

/* ---------------------------------------------------------------- calculator */
.calc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.calc label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: #2e424f;
  margin: 18px 0 6px;
}
.calc label:first-child { margin-top: 0; }
.calc input, .calc select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #ccd8d4;
  border-radius: 10px;
  font-size: 1.02rem;
  font-family: var(--sans);
  background: #fff;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.calc input:focus, .calc select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 185, 100, .18);
}
.calc button {
  margin-top: 22px;
  background: var(--green);
  color: var(--btn-ink);
  border: 0;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 700;
  padding: 13px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.calc button:hover { background: var(--green-dark); }
.calc .result {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 20px 22px;
  display: none;
}
.calc .result .result-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.calc .result strong { display: block; font-size: 1.9rem; color: var(--navy); letter-spacing: -0.6px; margin: 1px 0 4px; }
.calc .result .sub { color: var(--muted); font-size: .92rem; margin-top: 7px; }
.calc .result .kv { margin-top: 8px; }
.calc .result .kv > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}
.calc .result .kv span { color: var(--muted); }
.calc .result .kv b { font-weight: 600; color: var(--ink); text-align: right; }
.calc .result .kv .full { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- charts */
.eui-chart { position: relative; margin-top: 22px; }
.eui-title { font-weight: 700; font-size: .98rem; color: var(--navy); margin-bottom: 8px; }
.eui-chart svg { width: 100%; height: auto; display: block; }
.eui-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.eui-legend i, .eui-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.eui-tip { display: none; position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-md); padding: 9px 13px; font-size: .88rem; color: var(--ink); pointer-events: none; z-index: 5; white-space: nowrap; }
.eui-tip b { display: block; margin-bottom: 3px; }
.eui-tip span { display: block; padding: 1px 0; }

/* ---------------------------------------------------------------- notices, related, faq */
.notice {
  background: #fff8f0;
  border: 1px solid #ffdfc0;
  border-radius: 12px;
  padding: 15px 19px;
  font-size: .86rem;
  color: #7a4a12;
  margin: 26px 0;
  line-height: 1.6;
}

.related {
  margin: 40px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--bg-soft);
}
.related h2, .related h3 {
  font-family: var(--sans) !important;
  font-size: .8rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--green-dark);
  margin: 0 0 14px !important;
}
.related ul { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 24px; }
.related li { margin: 0 !important; padding: 5px 0; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }
.related small { display: block; color: var(--muted); font-size: .84rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--green-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------------------------------------------------------------- promo banner */
.promo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin: 38px 0;
  padding: 16px 22px 12px;
}
.promo-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.promo-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.promo-logo { height: 36px; width: auto; flex: 0 0 auto; }
.promo-text { flex: 1 1 260px; }
.promo-text strong { display: block; color: var(--navy); font-size: 1.06rem; letter-spacing: -0.2px; margin-bottom: 2px; }
.promo-text span { color: var(--muted); font-size: .9rem; line-height: 1.5; display: block; }
.btn.promo-btn { background: #13c636; color: #07300f; padding: 12px 26px; white-space: nowrap; }
.btn.promo-btn:hover { background: #10ad2f; color: #07300f; }
.promo-risk {
  margin-top: 13px;
  font-size: .74rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 9px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy);
  color: #a8bcc9;
  padding: 56px 24px 30px;
  margin-top: 56px;
  font-size: .89rem;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}
.site-footer .brand .logo { color: #fff; margin-bottom: 14px; }
.site-footer .brand p { line-height: 1.65; font-size: .86rem; }
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 13px;
}
.site-footer a { color: #a8bcc9; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--green); }
.site-footer .brand a.logo { display: inline-flex; padding: 0; }
.site-footer .legal { border-top: 1px solid #ffffff1c; padding-top: 20px; font-size: .78rem; color: #7e95a5; line-height: 1.65; }

@media (max-width: 900px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 52px 20px 58px; }
  .btn.secondary { margin-left: 0; margin-top: 12px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .site-nav a.nav-cta { margin-left: 0; }
}
