/* homiotake.com — theme styles
 * Matches the approved homepage mockup (25 Oct 2026), fixed:
 * no sign-in anywhere, tax year 2026, real verified numbers.
 * Mobile-first, app-like on small screens, no horizontal scroll.
 */

:root {
  --green: #0aa06e;
  --green-dark: #078a5e;
  --navy: #101d42;
  --ink: #1c2333;
  --muted: #5b6478;
  --bg: #edf1fa;
  --card: #ffffff;
  --line: #dfe4f0;
  --red: #c0392b;
  --amber: #f5a623;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 29, 66, 0.10);
  --tap: 48px; /* minimum touch target */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(135deg, #22c55e, #0aa06e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: #e8f7f0;
  text-decoration: none;
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 8px; text-align: left; }
.hero h1 { font-size: 2.6rem; margin-bottom: 8px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero .tax-year {
  display: inline-block;
  margin-top: 6px;
  background: #e8f7f0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- country switcher ---------- */
.country-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}
.country-btn {
  min-height: var(--tap);
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #c7cddb;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.country-btn .flag { margin-right: 6px; }
.country-btn.active {
  background: #bfe8d8;
  color: var(--navy);
  border-color: var(--green);
}
.country-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h2 { font-size: 1.5rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.field .hint { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.field input, .field select {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  font-size: 1.1rem;
  border: 1.5px solid #c9cfdd;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: 3px solid #9fdcc4;
  border-color: var(--green);
}
.field input[type="checkbox"] {
  width: auto;
  min-height: auto;
  padding: 0;
  accent-color: var(--green);
}
.field label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
}
.btn:hover { background: var(--green-dark); }
.btn-secondary {
  background: #fff;
  color: var(--green-dark);
  border: 2px solid var(--green);
  text-transform: none;
  width: auto;
}
.error {
  color: var(--red);
  font-weight: 600;
  margin-top: 8px;
}

.result-card { position: sticky; top: 84px; }
.result-hero { text-align: left; }
.result-hero .label { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.takehome-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}
.takehome-sub { font-size: 1.15rem; color: var(--ink); margin-bottom: 16px; }
.breakdown { list-style: none; margin: 0 0 12px; padding: 0; }
.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.breakdown .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot-red { background: #e74c3c; }
.dot-amber { background: var(--amber); }
.dot-grey { background: #95a5a6; }
.dot-green { background: var(--green); }
.breakdown .amount { font-weight: 700; white-space: nowrap; }
.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 10px 0;
}
.total-row .neg { color: var(--red); }
.net-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e8f7f0;
  border: 2px solid #bfe8d8;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 16px;
}
.net-box .amount { color: var(--green); }
.meta-line { font-size: 0.92rem; color: var(--muted); }
.meta-line + .meta-line { margin-top: 4px; }
.estimate-badge {
  display: inline-block;
  background: #fff3cd;
  color: #7a5b00;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
details.working { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.working summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
details.working table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.95rem; }
details.working td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
details.working td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.coming-soon {
  text-align: center;
  padding: 32px 20px;
}
.coming-soon h2 { margin-bottom: 8px; }

/* ---------- feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.feature {
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature .icon { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink); }
.feature.blue { background: #dce9fb; }
.feature.green { background: #c8eed9; }
.feature.amber { background: #fdeec3; }

/* ---------- content sections (AdSense text) ---------- */
.section { margin: 44px 0; }
.section h2 { font-size: 1.9rem; }
.section .lede { color: var(--muted); font-size: 1.08rem; }
.example-table, .content-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.example-table th, .example-table td,
.content-table th, .content-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.example-table th, .content-table th { background: #eef3fb; color: var(--navy); }
.faq details { background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 32px; }

/* ---------- articles ---------- */
.section-head { position: relative; padding-bottom: 12px; }
.section-head::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
  margin-top: 10px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.article-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 29, 66, 0.16); }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-saving { background: #dce9fb; color: #1d4ed8; }
.tag-career { background: #d9f2d9; color: #1e7a34; }
.tag-budgeting { background: #ede3fb; color: #6b21a8; }
.article-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-card p { font-size: 0.94rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.article-card .read-time { font-size: 0.85rem; color: var(--muted); }
.article-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-weight: 800;
  color: var(--green-dark);
}
.article-card:hover .read-link { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cdd5e8;
  margin-top: 56px;
  padding: 36px 0 110px;
}
.site-footer a { color: #9fdcc4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #2a3a66;
  font-size: 0.9rem;
  color: #8fa0c4;
}

/* ---------- bottom mobile nav (app-like) ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(16, 29, 66, 0.10);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .wrap {
  display: flex;
  justify-content: space-around;
  padding: 0;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 4px 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  min-height: 56px;
}
.bottom-nav a .bnav-icon { display: block; font-size: 1.3rem; line-height: 1.2; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--green-dark); }

/* ---------- article / policy pages ---------- */
.page-body { padding: 36px 0 8px; }
.page-body h1 { font-size: 2.1rem; }
.page-body .byline { color: var(--muted); font-size: 0.95rem; }
.article-body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.article-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.article-body th, .article-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { background: #eef3fb; color: var(--navy); }
.article-body ul, .article-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.disclaimer-box {
  background: #fff8e1;
  border-left: 4px solid var(--amber);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 14px;
  font-size: 1rem;
  border: 1.5px solid #c9cfdd;
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: inherit;
}

/* ---------- print (payslip) ---------- */
@media print {
  .site-header, .bottom-nav, .country-switcher, .features,
  .section, .site-footer, .btn, details.working summary { display: none !important; }
  body { background: #fff; }
  .calc-grid { grid-template-columns: 1fr; }
  .card { box-shadow: none; border: 1px solid #999; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 28px 0 4px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1.05rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .features { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .bottom-nav { display: block; }
  .site-footer { padding-bottom: 150px; }
  .takehome-big { font-size: 2.4rem; }
  .card { padding: 22px 18px; }
  .country-switcher { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .country-btn { flex: 0 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 1.55rem; }
}
