@charset "UTF-8";
/* ==========================================================================
   UFCW Trusteed Dental Plan — Ontario
   Single stylesheet. Replaces the legacy style3.css theme + css/style.css.

   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Topbar
   7.  Header & navigation
   8.  Banner & hero
   9.  Section headings
   10. Download cards (Forms)
   11. Accordions (News / Eligibility / FAQs)
   12. Footer & privacy policy
   13. Back to top
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Brand */
  --brand: #c02440;
  --brand-dark: #97182f;
  --brand-tint: #fdf2f4;
  --accent: #0a7ea4;
  --accent-dark: #085f7d;
  --accent-tint: #eef8fb;

  /* Neutrals */
  --ink: #16202b;
  --ink-2: #47596b;
  --ink-3: #6b7c8d;
  --line: #dfe5ec;
  --line-strong: #c6d0da;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --surface-dark: #1f2a35;

  /* Type */
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --step--1: clamp(0.8125rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.28rem + 0.45vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Shape & depth */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 43, 0.06),
    0 1px 3px rgba(22, 32, 43, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(22, 32, 43, 0.08),
    0 10px 20px -4px rgba(22, 32, 43, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(22, 32, 43, 0.1),
    0 20px 40px -8px rgba(22, 32, 43, 0.14);

  --container: 1120px;
  --header-offset: 200px;
}

/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inline icons. An <svg> with no intrinsic size falls back to 300x150, so give
   every icon a sane default; components below override where they need to. */
svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

/* The icon sprite's outer <svg hidden> must stay hidden — the rule above
   would otherwise win over the browser's default [hidden] styling. */
svg[hidden] {
  display: none;
}

ul,
ol {
  padding-left: 1.25rem;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
}
h2 {
  font-size: var(--step-2);
}
h3 {
  font-size: var(--step-1);
}
h4 {
  font-size: var(--step-0);
}

p {
  text-wrap: pretty;
}

p + p,
p + ul,
p + ol,
ul + p,
ol + p,
p + strong,
strong + p,
em + p,
p + em {
  margin-top: var(--space-4);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

/* 4. Layout primitives
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-7);
  scroll-margin-top: var(--header-offset);
}

.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

/* 5. Buttons & links
   ========================================================================== */
a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--brand);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}
.button:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.button:active {
  transform: translateY(0);
}

.button svg {
  width: 16px;
  height: 16px;
}

/* 6. Topbar
   ========================================================================== */
.topbar {
  background: var(--surface-dark);
  color: #cfd8e0;
  font-size: var(--step--1);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-2);
}

.topbar ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  padding: 0;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #cfd8e0;
  text-decoration: none;
}
.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.65;
}

/* 7. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.site-header.is-stuck {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-4);
}

.site-logo {
  flex: none;
  line-height: 0;
}
.site-logo img {
  height: 68px;
  width: auto;
  transition: height 0.2s ease;
}
.site-header.is-stuck .site-logo img {
  height: 52px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a,
.main-nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--step-0);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 6px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover {
  background: var(--surface-alt);
  color: var(--brand);
}

.main-nav > ul > li > a:hover::after {
  transform: scaleX(1);
}

.main-nav svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Contact dropdown panel */
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--space-2));
  z-index: 20;
  width: min(34rem, calc(100vw - 2rem));
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.main-nav li:hover > .nav-panel,
.main-nav li:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-panel h3 {
  margin-bottom: var(--space-4);
  font-size: var(--step-0);
}

.contact-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  font-size: var(--step--1);
}

.contact-grid h4 {
  margin-bottom: var(--space-2);
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.contact-grid a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.contact-grid a:hover {
  text-decoration: underline;
}

.contact-grid svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: var(--space-3);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li > a,
  .main-nav > ul > li > button {
    width: 100%;
    padding: var(--space-4);
    border-radius: var(--radius-sm);
  }
  .main-nav > ul > li > a::after {
    display: none;
  }

  /* Dropdown becomes inline content on small screens */
  .nav-panel {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: var(--space-4);
    margin-top: var(--space-2);
    border-top-width: 1px;
    box-shadow: none;
  }
}

/* 8. Banner & hero
   ========================================================================== */
.portal-banner {
  padding-block: var(--space-5);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.portal-banner a {
  display: block;
  max-width: 1000px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}
.portal-banner a:hover {
  transform: translateY(-2px);
}

.portal-banner img {
  width: 100%;
}

.hero {
  min-height: clamp(280px, 38vw, 460px);
  background-image: url(../images/banners/ontario_dental_plan_hero.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--surface-alt);
}

/* 9. Section headings
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 2px solid var(--line);
}

.section-head h2 {
  color: var(--brand);
  letter-spacing: -0.01em;
}

.section-head svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--brand);
  opacity: 0.85;
}

.section-intro {
  margin-bottom: var(--space-5);
  font-size: var(--step-1);
  color: var(--ink-2);
}

/* 10. Download cards (Forms)
   ========================================================================== */
.download-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  list-style: none;
  padding: 0;
}

.download-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.download-card:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.download-card svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brand);
}

.download-card .file-type {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 400;
}

/* 11. Accordions (News / Eligibility / FAQs)
   ========================================================================== */
.accordion {
  display: grid;
  gap: var(--space-3);
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.accordion-item:hover {
  border-color: var(--line-strong);
}

.accordion-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.accordion-item > summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Suppress the native disclosure marker */
.accordion-item > summary::-webkit-details-marker {
  display: none;
}
.accordion-item > summary::marker {
  content: "";
}

.accordion-item > summary:hover {
  background: var(--surface-alt);
}

.accordion-item[open] > summary {
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-bottom: 1px solid var(--line);
}

.accordion-item > summary .chevron {
  width: 20px;
  height: 20px;
  flex: none;
  margin-left: auto;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.2s ease;
}

.accordion-item[open] > summary .chevron {
  color: var(--accent-dark);
  transform: rotate(180deg);
}

.accordion-body {
  padding: var(--space-5);
  animation: reveal 0.22s ease;
}

.accordion-body > * + * {
  margin-top: var(--space-4);
}

.accordion-body .date {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
}

.accordion-body ul {
  display: grid;
  gap: var(--space-2);
}

.accordion-body em {
  display: block;
  padding: var(--space-4);
  background: var(--surface-alt);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.admin-contact {
  padding: var(--space-5);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-style: normal;
}

.admin-contact h4 {
  margin-bottom: var(--space-2);
  color: var(--ink-3);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Key/value list for the Carrier ID answer */
.data-list {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: max-content 1fr;
  padding: var(--space-4);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.data-list dt {
  color: var(--ink-3);
  font-weight: 500;
}
.data-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 12. Footer & privacy policy
   ========================================================================== */
.site-footer {
  margin-top: var(--space-7);
  padding-block: var(--space-6);
  background: var(--surface-dark);
  color: #aab6c2;
  font-size: var(--step--1);
}

.footer-top {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top h2 {
  margin-bottom: var(--space-3);
  color: #fff;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #cfd8e0;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.privacy-policy > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #cfd8e0;
  cursor: pointer;
  list-style: none;
}
.privacy-policy > summary::-webkit-details-marker {
  display: none;
}
.privacy-policy > summary::marker {
  content: "";
}
.privacy-policy > summary:hover {
  color: #fff;
  text-decoration: underline;
}

.privacy-policy .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.privacy-policy[open] .chevron {
  transform: rotate(180deg);
}

.privacy-body {
  max-width: 68ch;
  margin-top: var(--space-5);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  animation: reveal 0.22s ease;
}

.privacy-body > * + * {
  margin-top: var(--space-4);
}

.privacy-body h2,
.privacy-body h3 {
  margin-top: var(--space-6);
  color: #fff;
  font-size: var(--step-0);
}

.privacy-body > :first-child {
  margin-top: 0;
}

.privacy-body ul,
.privacy-body ol {
  display: grid;
  gap: var(--space-3);
  padding-left: 1.25rem;
}

/* 13. Back to top
   ========================================================================== */
.to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface-dark);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s,
    background 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

@media print {
  .topbar,
  .site-header,
  .portal-banner,
  .hero,
  .to-top,
  .skip-link {
    display: none !important;
  }
  .accordion-body {
    display: block !important;
  }
}
