/* Holiday Entitlement Calculator — Design System */

:root {
  --bg: #f5f7fb;
  --primary: #2457d6;
  --primary-light: #e8f0fe;
  --green: #1a7f4b;
  --green-light: #e8f7ef;
  --warn: #fff3dc;
  --warn-text: #92660a;
  --muted: #5c6b7a;
  --text: #182230;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 2px 8px rgba(36,87,214,.07);
  --shadow-hover: 0 6px 20px rgba(36,87,214,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.page { flex: 1; }

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }

p { max-width: 68ch; }
.muted { color: var(--muted); }
.subcopy { font-size: 1.05rem; color: var(--muted); margin-top: 10px; }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
  text-align: center !important;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(36,87,214,.06);
  margin-bottom: 10px;
}
.card h2 { margin-bottom: 8px; }

/* Coloured sub-cards */
.sub-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.sub-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1.5px solid rgba(36,87,214,.06);
  box-shadow: 0 1px 4px rgba(36,87,214,.05);
}
.sub-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.sub-card p {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.6;
}
.sub-card--blue   { border-left: 4px solid #2457d6; background: #f0f5ff; }
.sub-card--green  { border-left: 4px solid #1a7f4b; background: #f0faf5; }
.sub-card--amber  { border-left: 4px solid #e6a817; background: #fffbf0; }
.sub-card--purple { border-left: 4px solid #7c3aed; background: #f5f0ff; }
.sub-card--teal   { border-left: 4px solid #0891b2; background: #f0fafd; }

/* Site Header */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid rgba(36,87,214,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  max-width: min(100%,1180px);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 8px;
  letter-spacing: .02em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy span { font-size: .875rem; font-weight: 700; color: var(--text); }
.brand-copy small { font-size: .68rem; color: var(--muted); font-weight: 400; }

.site-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-link {
  font-size: .855rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-link:hover { background: var(--primary-light); color: var(--primary); }
.site-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* Hero */
.hero {
  max-width: min(100%,860px);
  margin: 0 auto;
  padding: 36px 24px 24px;
  text-align: center;
}
.hero .eyebrow { text-align: center; }

/* Sections */
.section { padding: 20px 24px; max-width: min(100%,860px); margin: 0 auto; }
.section--wide { max-width: min(100%,1180px); }

/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

/* Form elements */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0d9e4;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,87,214,.10);
}
input[type="radio"] { width: auto; margin-right: 6px; accent-color: var(--primary); }
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(36,87,214,.22);
}
.btn-primary:hover { background: #1d4bc4; box-shadow: 0 4px 14px rgba(36,87,214,.28); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }
.btn-full { width: 100%; }

/* Result box */
.result-box {
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}
.result-box .result-main {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}
.result-box .result-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.result-breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(26,127,75,.15);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.result-breakdown .break-item { text-align: center; }
.result-breakdown .break-value { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.result-breakdown .break-label { font-size: .7rem; color: var(--muted); }

/* Info box */
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: .88rem;
  margin: 14px 0;
}
.info-box.green { background: var(--green-light); border-color: var(--green); }
.info-box.warn { background: var(--warn); border-color: #e6a817; }

/* Steps */
.steps { counter-reset: steps; }
.step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.step::before {
  counter-increment: steps;
  content: counter(steps);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-warn { background: var(--warn); color: var(--warn-text); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(36,87,214,.08);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: .95rem; margin-bottom: 8px; cursor: pointer; }
.faq-a { font-size: .88rem; color: var(--muted); display: none; padding-bottom: 4px; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.footer {
  background: var(--white);
  border-top: 1.5px solid rgba(36,87,214,.08);
  margin-top: auto;
}
.footer.is-collapsed .footer-body { display: none; }
.footer-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  font-family: inherit;
  transition: color .15s;
}
.footer-toggle:hover { color: var(--primary); }
.footer-body { padding: 0 24px 18px; }
.footer-inner {
  max-width: min(100%,1180px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .855rem;
  font-weight: 500;
}
.footer-inner a { color: var(--muted); text-decoration: none; margin-left: 16px; transition: color .15s; }
.footer-inner a:hover { color: var(--primary); }

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.contact-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: .88rem;
  font-weight: 600;
  display: none;
}
.contact-status.success {
  display: block;
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid var(--green);
}
.contact-status.error {
  display: block;
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fca5a5;
}

/* Honeypot */
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Responsive */
@media (max-width: 600px) {
  .site-nav { height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .brand-copy { display: none; }
  .site-links { gap: 2px; }
  .site-link { font-size: .8rem; padding: 5px 8px; }
  .hero { padding: 28px 16px 20px; }
  .section { padding: 16px 16px; }
  .card { padding: 16px 14px; }
}

/* Calculator specific */
.calc-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
@media (max-width: 700px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-main { min-width: 0; }
.calc-sidebar { position: sticky; top: 80px; }

.calc-mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.calc-mode-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.calc-mode-tab.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.mode-panel { display: none; }
.mode-panel.active { display: block; }

.nation-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.nation-tab {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background .15s, color .15s;
}
.nation-tab.active { background: var(--white); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.07); }

/* Accordion FAQ */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(36,87,214,.06);
}
.accordion-q {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion-q::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .2s;
}
.accordion-item.open .accordion-q::after { transform: rotate(45deg); }
.accordion-a {
  padding: 0 18px 14px;
  font-size: .85rem;
  color: var(--muted);
  display: none;
  line-height: 1.65;
}
.accordion-item.open .accordion-a { display: block; }

/* Notice box */
.notice-box {
  background: var(--warn);
  border: 1.5px solid rgba(230,168,23,.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
  margin: 12px 0;
}

/* Visual section */
.visual-section {
  max-width: min(100%,860px);
  margin: 0 auto 4px;
  padding: 0 24px;
}
.visual-inner {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid rgba(36,87,214,.07);
  box-shadow: var(--shadow);
  min-height: 260px;
}
.visual-text {
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.visual-text h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.visual-text p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; max-width: 38ch; }
.visual-image {
  background: #dff4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 620px) {
  .visual-inner { grid-template-columns: 1fr; }
  .visual-image { min-height: 160px; }
  .visual-text { padding: 22px 18px 18px; }
}

/* Key facts */
.key-facts {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 auto 8px;
}
.key-facts > h2 { margin-bottom: 14px; }
.key-facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.key-facts-grid .key-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 200px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1.5px solid rgba(36,87,214,.08);
}
.key-facts-grid .key-fact-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1.15;
}
.key-facts-grid .key-fact-text {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Guides grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid rgba(36,87,214,.07);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.guide-card .tag { margin-bottom: 8px; }
.guide-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.guide-card p { font-size: .78rem; color: var(--muted); }

/* Citation */
.cite {
  display: block;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
  border-left: 3px solid rgba(36,87,214,.2);
}