/* fxpro-malaysia.com — teal + white, rounded cards, Shariah badge. Mobile-first, no frameworks. */

:root {
  --teal: #0e7a6f;
  --teal-dark: #0a5c54;
  --teal-deep: #06423c;
  --teal-tint: #e6f4f2;
  --teal-line: #bfe0dc;
  --gold: #c9a24b;
  --ink: #1d2a28;
  --ink-soft: #47605c;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(10, 92, 84, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: #f6faf9;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal) 70%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 2.6rem 0 2.4rem;
  border-bottom: 4px solid var(--gold);
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d8d1;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  color: #d7ece9;
  font-size: 1.02rem;
}

/* ---------- CTA buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

main .btn-ghost {
  color: var(--teal-dark);
  border-color: var(--teal);
}

/* ---------- Shariah / swap-free badge ---------- */

.badge-shariah {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

/* ---------- Sections as rounded cards ---------- */

main {
  padding: 1.6rem 0 2.4rem;
}

main section {
  background: var(--white);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem;
  margin: 1.3rem 0;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--teal-deep);
}

section > p { margin: 0 0 1rem; }
section > p:last-child { margin-bottom: 0; }

/* ---------- Quick answer ---------- */

.quick-answer {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-left: 6px solid var(--teal);
}

.qa-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.quick-answer p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--teal-line);
  vertical-align: top;
  min-width: 7rem;
}

thead th {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: var(--teal-tint); }

/* ---------- Lists ---------- */

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; }
.cost-list li { margin-bottom: 0.7rem; }

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: #fbfefd;
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--teal-dark);
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

details[open] summary::after { content: "–"; }

details[open] summary {
  background: var(--teal-tint);
  border-bottom: 1px solid var(--teal-line);
}

details p {
  padding: 0.85rem 1rem;
  margin: 0;
}

/* ---------- Footer ---------- */

.risk-footer {
  background: var(--teal-deep);
  color: #c9dedb;
  padding: 1.8rem 0 2.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.risk-footer strong { color: var(--white); }

.foot-meta {
  margin-top: 0.9rem;
  color: #8fb8b2;
  font-size: 0.78rem;
}

/* ---------- Wider screens ---------- */

@media (min-width: 700px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 3.4rem 0 3rem; }
  main section { padding: 1.8rem 2rem; }
  table { display: table; overflow-x: visible; }
}

/* FxPro partner disclosure bar + about block (brand guidelines) */
.partner-bar { background: #0b5d54; color: #eafaf7; font-size: .82rem; padding: .45rem 1rem; text-align: center; }
.partner-bar a { color: inherit; text-decoration: underline; font-weight: 600; }
.about-fxpro { padding: 1.5rem 1rem; max-width: 900px; margin: 0 auto; }
.about-fxpro h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-fxpro p { font-size: .88rem; opacity: .85; line-height: 1.6; }
