/* =========================================================
   MintBrim (mintbrim.com) - Fibank Budgeting & TFN Styles
   ========================================================= */
:root {
  --pg-teal: #104042;
  --pg-teal-dark: #0a2c2e;
  --pg-mint: #e2f5f5;
  --pg-lime: #aeff1c;
  --pg-lime-hover: #97e60e;
  --pg-ink: #122628;
  --pg-muted: #4b6163;
  --pg-border: rgba(16, 64, 66, 0.14);
}

body {
  font-family: "Satoshi-Regular", "Radio Canada Big", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pg-ink);
  background: #ffffff;
}

/* Header & Navigation */
.pg-topbar {
  background: var(--pg-teal-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  padding: 9px 0;
}

.pg-topbar a {
  color: var(--pg-lime);
  text-decoration: none;
  font-weight: 600;
}

.pg-topbar a:hover { color: #ffffff; }

.pg-header {
  background: #ffffff;
  border-bottom: 1px solid var(--pg-border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.pg-header .navbar-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.pg-header .nav-link {
  color: var(--pg-ink) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px !important;
  transition: color 0.2s ease;
}

.pg-header .nav-link:hover,
.pg-header .nav-link.active {
  color: var(--pg-teal) !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Proportional, High-Contrast Buttons (Zero Hover Bugs) */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}

.pg-btn-primary {
  background: var(--pg-teal);
  border-color: var(--pg-teal);
  color: #ffffff !important;
}

.pg-btn-primary:hover,
.pg-btn-primary:focus {
  background: var(--pg-teal-dark);
  border-color: var(--pg-teal-dark);
  color: #ffffff !important;
}

.pg-btn-lime {
  background: var(--pg-lime);
  border-color: var(--pg-lime);
  color: var(--pg-teal-dark) !important;
}

.pg-btn-lime:hover,
.pg-btn-lime:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--pg-teal-dark) !important;
}

.pg-btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: #ffffff !important;
}

.pg-btn-outline-light:hover,
.pg-btn-outline-light:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--pg-teal-dark) !important;
}

.pg-btn-outline-dark {
  background: transparent;
  border-color: var(--pg-teal);
  color: var(--pg-teal) !important;
}

.pg-btn-outline-dark:hover,
.pg-btn-outline-dark:focus {
  background: var(--pg-teal);
  border-color: var(--pg-teal);
  color: #ffffff !important;
}

/* Hero Section */
.pg-hero {
  background: linear-gradient(120deg, var(--pg-teal-dark) 0%, var(--pg-teal) 100%);
  color: #ffffff;
  padding: 78px 0 82px;
}

.pg-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-teal-dark);
  background: var(--pg-lime);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pg-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 18px;
}

.pg-hero p.lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17.5px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.pg-hero-img {
  border-radius: 16px;
  width: 100%;
  height: 390px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

/* Inner Page Banner */
.pg-page-banner {
  background: linear-gradient(120deg, var(--pg-teal-dark) 0%, var(--pg-teal) 100%);
  color: #ffffff;
  padding: 56px 0;
}

.pg-page-banner h1 {
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.pg-breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.pg-breadcrumb a { color: var(--pg-lime); text-decoration: none; }

/* Cards & Sections */
.pg-section { padding: 78px 0; }
.pg-section-mint { background: var(--pg-mint); padding: 78px 0; }
.pg-section-dark { background: var(--pg-teal); color: #ffffff; padding: 78px 0; }

.pg-card {
  background: #ffffff;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 64, 66, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 64, 66, 0.1);
}

.pg-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--pg-mint);
  color: var(--pg-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* Interactive Monthly Budget Estimator */
.pg-calc-card {
  background: #ffffff;
  color: var(--pg-ink);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.pg-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-radius: 10px;
  background: #f4f9f9;
  border: 1px solid var(--pg-border);
  margin-bottom: 10px;
}

.pg-calc-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--pg-teal);
}

/* Blog / Insight Cards */
.pg-blog-card {
  background: #ffffff;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(16, 64, 66, 0.05);
  transition: transform 0.22s ease;
}

.pg-blog-card:hover { transform: translateY(-4px); }

.pg-blog-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.pg-blog-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pg-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pg-teal);
  background: var(--pg-mint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Interactive FAQ Accordion */
.pg-faq-item {
  background: #ffffff;
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.pg-faq-btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 24px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--pg-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.pg-faq-plus {
  color: var(--pg-teal);
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.pg-faq-item.open .pg-faq-plus { transform: rotate(45deg); }

.pg-faq-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--pg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.pg-faq-item.open .pg-faq-body { display: block; }

/* TFN Form & Preference Cards */
.pg-form-panel {
  background: #ffffff;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(16, 64, 66, 0.06);
}

.pg-pref-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-teal);
  margin-bottom: 8px;
}

.pg-pref-card {
  background: #f5fafa;
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.pg-consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pg-consent-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 3px;
  accent-color: var(--pg-teal);
  cursor: pointer;
}

.pg-consent-item label {
  font-size: 13.5px;
  line-height: 1.55;
  color: #344a4c;
  margin-bottom: 0;
  cursor: pointer;
}

/* Bilingual Legal Tabs */
.pg-legal-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #f4f9f9;
  border: 1px solid var(--pg-border);
  border-radius: 10px;
  max-width: 300px;
  margin-bottom: 24px;
}

.pg-legal-tab {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: transparent;
  color: var(--pg-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.pg-legal-tab.active,
.pg-legal-tab:hover {
  background: var(--pg-teal);
  color: #ffffff;
}

.pg-legal-panel { display: none; color: #344a4c; line-height: 1.75; }
.pg-legal-panel.active { display: block; }
.pg-legal-panel h2, .pg-legal-panel h4 { color: var(--pg-teal-dark); font-weight: 700; margin-top: 22px; }
.pg-legal-panel a { color: var(--pg-teal); font-weight: 600; text-decoration: underline; }

.pg-highlight {
  margin: 18px 0 22px;
  padding: 16px 20px;
  background: var(--pg-mint);
  border-left: 4px solid var(--pg-teal);
  border-radius: 8px;
  color: var(--pg-teal-dark);
  font-weight: 600;
}

/* Footer (Zero Forms, High Contrast) */
.pg-footer {
  background: var(--pg-teal-dark);
  color: rgba(255, 255, 255, 0.84);
  padding: 68px 0 0;
}

.pg-footer h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 18px;
}

.pg-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pg-footer ul li { margin-bottom: 10px; font-size: 14.5px; }

.pg-footer ul li a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.pg-footer ul li a:hover { color: var(--pg-lime); }

.pg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 48px;
  padding: 20px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}

.pg-footer-bottom a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  margin-left: 16px;
}

.pg-footer-bottom a:hover { color: var(--pg-lime); }

/* MintBrim Logo Sizing & Footer Email Polish */
.pg-header .navbar-brand img {
  height: 44px;
  width: auto;
  max-width: none;
  display: block;
}
.pg-footer .footer-email-link {
  white-space: nowrap;
}
