/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:    #00a651;
  --green-dk: #007a3d;
  --white:    #ffffff;
  --bg:       #f5f7fa;
  --card-bg:  #ffffff;
  --border:   #e2e8f0;
  --text:     #1a202c;
  --muted:    #718096;
  --red:      #e53e3e;
  --radius:   10px;
  --shadow:   0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  background: var(--green-dk);
  padding: .875rem 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.logo span { color: #7dffb3; }
nav a { color: rgba(255,255,255,.85); text-decoration: none; margin-left: 1.5rem; font-size: .9rem; }
nav a:hover { color: #fff; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dk) 0%, #009944 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.hero-sub { font-size: 1.05rem; opacity: .88; max-width: 580px; margin: 0 auto; }

/* ── Calculator layout ── */
.calc-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: start;
}
@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--green-dk); }

/* ── Fields ── */
.field-group { margin-bottom: 1rem; }
.field-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.field-group input[type=number],
.field-group input[type=text],
.field-group select {
  width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .95rem; color: var(--text);
  background: #fff; transition: border-color .15s;
}
.field-group input:focus, .field-group select:focus {
  outline: none; border-color: var(--green);
}

.calc-btn {
  width: 100%; padding: .75rem; margin-top: .5rem;
  background: var(--green); color: #fff; border: none;
  border-radius: 8px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.calc-btn:hover { background: var(--green-dk); }

/* ── Results card ── */
.result-card { border-top: 4px solid var(--green); }
.result-amount {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800;
  color: var(--green-dk); margin-bottom: .15rem;
}
.result-label { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Breakdown rows ── */
.breakdown { border-top: 1px solid var(--border); padding-top: .75rem; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; font-size: .9rem;
  border-bottom: 1px dashed var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row.gross { font-weight: 600; }
.breakdown-row.wht span:last-child { color: var(--red); font-weight: 700; }
.breakdown-row.net { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--border); padding-top: .5rem; }
.breakdown-row.net span:last-child { color: var(--green-dk); }
.breakdown-row.rate span:last-child { color: var(--muted); font-weight: 600; }

/* ── Notice boxes ── */
.notice {
  margin-top: 1.25rem; padding: .85rem 1rem;
  border-radius: 8px; font-size: .85rem; line-height: 1.6;
}
.notice.remit { background: #fffbeb; border-left: 3px solid #d97706; color: #92400e; }
.notice.credit { background: #f0fdf4; border-left: 3px solid var(--green); color: #166534; }

/* ── WHT rate table ── */
.rate-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.rate-table th {
  background: var(--green-dk); color: #fff; padding: .65rem 1rem;
  text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
}
.rate-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--border); }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: #f8fafb; }
.rate-table .same { color: var(--muted); }

/* ── Content sections ── */
.content-section { margin: 3rem 0; }
.content-section h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--green-dk); }
.content-section p { font-size: .93rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.75; }

/* Steps */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.step-num {
  min-width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.step p { font-size: .875rem; color: var(--muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow);
}
summary { font-weight: 600; cursor: pointer; font-size: .95rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: var(--green); font-weight: 800; }
details[open] summary::before { content: '− '; }
details p { margin-top: .6rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ── Footer ── */
.site-footer {
  background: var(--green-dk); color: rgba(255,255,255,.7);
  padding: 1.5rem 0; margin-top: 3rem; text-align: center; font-size: .82rem;
}
.site-footer a { color: #7dffb3; text-decoration: none; }
.site-footer p + p { margin-top: .4rem; }
