/* Ontario Take Home Calc — Main Stylesheet */
/* Aesthetic: Clean government-grade authority with a modern twist */
/* Fonts: IBM Plex Sans (body) + IBM Plex Mono (numbers) */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --bg:         #f5f5f0;
  --surface:    #ffffff;
  --surface-2:  #f9f9f6;
  --border:     #e0dfd8;
  --border-2:   #c8c7be;

  --text-primary:   #1a1a18;
  --text-secondary: #4a4a46;
  --text-muted:     #7a7a74;

  --accent:       #1a4f2e;      /* Deep Ontario green */
  --accent-light: #e8f2ec;
  --accent-mid:   #2d7a47;
  --accent-hover: #153d24;

  --red:    #c0392b;
  --amber:  #c47a00;

  --radius:   6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --max-width: 960px;
  --content-width: 760px;
}

/* ─── RESET ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ─── LAYOUT ──────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ─── HEADER ──────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--accent);
  color: #fff;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.logo-maple { font-size: 1.3rem; line-height: 1; }
.logo-text { font-size: 0.95rem; font-weight: 700; }
.logo-text span { font-weight: 300; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* ─── Hamburger / Mobile Nav ────────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger span + span { margin-top: 6px; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 58px;
  right: 0;
  width: 260px;
  max-width: 80vw;
  height: calc(100vh - 58px);
  background: var(--accent);
  z-index: 105;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.active {
  display: block;
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav a:hover { color: #fff; }

/* ─── HERO ────────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 32px 20px 28px;
  border-bottom: 3px solid var(--accent-mid);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero p {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.95);
}

/* ─── CALCULATOR CARD ────────────────────────────────────────────────────────── */
.calc-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  margin-bottom: 28px;
}
.calc-header {
  background: var(--accent-light);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}
.calc-icon { font-size: 1.2rem; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin: 0 0 16px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.ts-item { display: flex; align-items: center; gap: 4px; }
.ts-item .ts-check { color: var(--accent-mid); font-weight: 700; }

.calc-body {
  padding: 24px;
}
.calc-form-section {
  padding: 32px 36px;
  border-bottom: 1px solid var(--border);
}
.calc-results-section {
  padding: 32px 36px;
  background: var(--surface-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  align-items: end;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.input-prefix-wrap {
  position: relative;
}
.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  pointer-events: none;
}
input[type="number"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.input-prefix-wrap input[type="number"] {
  padding-left: 28px;
}
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a46' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}
.calc-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
  width: 100%;
  margin-top: 4px;
}
.calc-btn:hover { background: var(--accent-hover); }
.calc-btn:active { transform: translateY(1px); }

/* ─── RESULTS ────────────────────────────────────────────────────────────────── */
.results-placeholder {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}
.results-placeholder p { font-size: 0.95rem; margin-top: 8px; }

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.takehome-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.takehome-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.takehome-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.takehome-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.effective-rate-chip {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Results breakdown table */
.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  gap: 12px;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row:hover { background: var(--surface); }
.breakdown-row.section-header {
  background: #f0f0eb;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 7px 16px;
  border-bottom: 1px solid var(--border-2);
}
.breakdown-row.total {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-bottom: none;
}
.breakdown-row.total:hover { background: var(--accent-hover); }
.breakdown-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1 1 auto;
  min-width: 0;
}
.breakdown-row.total .breakdown-label { color: rgba(255,255,255,0.85); }
.breakdown-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}
.breakdown-row.total .breakdown-value { color: #fff; font-size: 1rem; }
.breakdown-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  display: block;
  margin-top: 3px;
}
.deduction-amount { color: var(--red); }
.breakdown-row.total .deduction-amount { color: rgba(255,220,220,1); }

/* Period comparison */
.period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.period-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.period-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.period-card-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.period-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.period-card.highlight {
  border-color: var(--accent);
  background: var(--accent-light);
}
.period-card.highlight .period-card-amount { color: var(--accent); }

.disclaimer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: #fffbf0;
  border: 1px solid #e8d88a;
  border-radius: var(--radius);
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── Main content area ──────────────────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.content-col {
  max-width: 760px;
  margin: 0 auto;
}

/* ─── CONTENT SECTIONS ───────────────────────────────────────────────────────── */
.page-content {
  padding: 40px 20px 64px;
}
.section {
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
  text-wrap: balance;
}
.section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  margin-top: 24px;
}
.section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.section p:last-child { margin-bottom: 0; }

/* Info boxes */
.info-box.green {
  background: var(--accent-light);
  border-color: rgba(45,122,71,0.25);
}
.info-box h3 { margin-top: 0; }

/* Info / methodology sections */
.info-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.info-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.info-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 16px 0 6px;
}
.info-section p, .info-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.info-section ul, .info-section ol {
  margin: 8px 0 8px 20px;
}
.info-section li { margin-bottom: 4px; }

.info-box {
  background: var(--accent-light);
  border: 1px solid #b8d8c4;
  border-left: 4px solid var(--accent-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 14px 0;
}
.authority-section {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  border: 1px solid #e0dfd8;
}
.authority-section p { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 10px; }
.authority-section h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; letter-spacing: -0.01em; }
.authority-section h3 { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin: 18px 0 8px; }
/* Legacy info-box.green — kept for backward compat on support pages */

/* Example calculation */
.example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.example-table th {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.example-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.example-table tr:last-child td { border-bottom: none; }
.example-table tr:nth-child(even) td { background: var(--surface-2); }
.example-table td:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  text-align: right;
  color: var(--text-primary);
}
.example-table .table-total td {
  font-weight: 700;
  background: #f0f0eb;
  color: var(--text-primary);
}
.example-table .table-result td {
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
}

/* Scenarios grid */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scenario-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.scenario-income {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}
.scenario-net {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.scenario-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 2px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}
.scenario-row span:last-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.faq-q::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: -2px;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* Related tools */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.related-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.related-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--accent);
  color: rgba(255,255,255,0.7);
  padding: 28px 20px;
  margin-top: 20px;
  font-size: 0.82rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.footer-brand .logo {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  display: block;
}
.footer-brand p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}
.more-tools-title { font-weight: 700 !important; color: #ffffff !important; font-size: 0.88rem; }
.subtext {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ─── PAGE-SPECIFIC (about, privacy, etc.) ───────────────────────────────────── */
.page-hero {
  background: var(--accent);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  font-size: 0.95rem;
}
.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}
.page-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.page-body h2:first-child { margin-top: 0; }
.page-body p, .page-body li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.page-body ul { padding-left: 20px; }
.page-body li { margin-bottom: 8px; }

/* Contact form */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--surface);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(45,122,71,0.12);
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}
.calc-btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, box-shadow 0.15s;
}
.calc-btn:hover { background: var(--accent-hover); box-shadow: var(--shadow); }
.calc-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ─── RESPONSIVE — Full Breakpoint System ───────────────────────────────── */

/* 1280px */
@media (max-width: 1280px) {
  .footer-grid { gap: 24px; }
}

/* 1100px */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 20px; }
}

/* 1024px — Hamburger activation */
@media (max-width: 1024px) {
  .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 0; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 834px */
@media (max-width: 834px) {
  .hero h1 { font-size: clamp(1.2rem, 3.5vw, 1.8rem); }
  .hero p { font-size: 0.9rem; }
  .info-section { padding: 20px; }
}

/* 768px */
@media (max-width: 768px) {
  .main-content { padding: 20px 16px 48px; }
  .calc-body { padding: 16px; }
  .calc-header { padding: 14px 16px; }
  .hero { padding: 24px 16px 20px; }
  .page-content { padding: 24px 16px 48px; }
  .page-hero { padding: 22px 0 18px; }
  .page-hero h1 { font-size: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .calc-form-section, .calc-results-section { padding: 24px 20px; }
  .period-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .page-body { padding: 36px 20px; }
  .container { padding: 0 16px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  /* Mobile result breakdown layout */
  .breakdown-row { flex-wrap: wrap; padding: 10px 12px; gap: 0; }
  .breakdown-label { font-size: 0.85rem; }
  .breakdown-value { font-size: 0.85rem; }
  .breakdown-sub { margin-top: 4px; }
  .breakdown-row.section-header { padding: 6px 12px; font-size: 0.7rem; }
}

/* 430px */
@media (max-width: 430px) {
  .form-grid { grid-template-columns: 1fr; }
  .period-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: unset; }
  .header-inner { padding: 0 14px; }
  .site-logo .logo-text { font-size: 0.85rem; }
  .calc-form-section, .calc-results-section { padding: 20px 16px; }
  .info-section { padding: 16px; }
  .info-box { padding: 18px 16px; }
  .related-card { padding: 14px 16px; }
  .breakdown-row { padding: 8px 10px; }
  .breakdown-label { font-size: 0.82rem; }
  .breakdown-value { font-size: 0.82rem; }
  .breakdown-sub { font-size: 0.72rem; }
}

/* 390px */
@media (max-width: 390px) {
  .hero h1 { font-size: 1.15rem; }
}

/* 375px */
@media (max-width: 375px) {
  .site-logo .logo-text { font-size: 0.8rem; }
}

/* 360px */
@media (max-width: 360px) {
  .header-inner { padding: 0 10px; }
  .hero { padding: 18px 12px 16px; }
  .calc-body { padding: 12px; }
  .calc-header { padding: 12px; }
}

/* 320px */
@media (max-width: 320px) {
  html { font-size: 14px; }
  .site-logo .logo-text { font-size: 0.75rem; }
  .mobile-nav { width: 100%; max-width: 100vw; }
}

/* ─── ADS PLACEHOLDER ────────────────────────────────────────────────────────── */
.ad-unit {
  text-align: center;
  margin: 32px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-unit.ad-inactive,
.ad-unit.ad-inactive ins,
.ad-unit.ad-inactive .adsbygoogle {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.label-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.hourly-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}
