/* DisabilityTaxRefund.ca - one small stylesheet (replaces WordPress + Blocksy + Elementor).
   Colours taken from the WordPress site: navy headings, a deep blue band, a light grey header. */
:root {
  --navy: #364a78;
  --navy-dark: #26355a;
  --blue: #134b94;
  --blue-btn: #0b5ea8;
  --ink: #1f2430;
  --muted: #5d6675;
  --line: #d9dee5;
  --header: #e5e9ec;
  --band: #edf0f1;
  --white: #fff;
  --radius: 8px;
  --wrap: 1140px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--blue-btn); }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.2; margin: 1.4em 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
h5 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .55em .7em; text-align: left; vertical-align: top; }
th { background: var(--band); color: var(--navy-dark); }
.table-scroll { overflow-x: auto; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; text-transform: uppercase;
       letter-spacing: .08em; font-weight: 700; font-size: .85rem; padding: 14px 22px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--band); color: var(--blue); }
.btn-big { display: block; background: var(--blue-btn); color: #fff; text-decoration: none; text-align: center; font-weight: 700;
           font-size: 1.2rem; line-height: 1.4; padding: 18px 24px; border-radius: 10px; box-shadow: 0 10px 25px rgba(11, 94, 168, .25); }
.btn-big:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header { background: var(--header); }
.call { display: inline-block; font-size: clamp(1.1rem, 2.6vw, 1.75rem); font-weight: 700; color: #003366; text-decoration: none;
        background: rgba(255, 255, 255, .9); border: 3px solid #ccc; border-radius: 8px; padding: 6px 18px; }
.call-icon { display: none; }
/* Computer: Call on its own line (order -2, then a full-width break), then heart + menu. */
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-top: 10px; padding-bottom: 6px; }
.header-bar .call { order: -2; }
.header-break { order: -1; flex-basis: 100%; height: 0; }
.brand img { display: block; width: 46px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li + li { border-left: 1px solid #b9c1ca; }
.site-nav a { display: block; padding: 4px 9px; color: #111; text-decoration: none; text-transform: uppercase; font-size: .9rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-btn); }
.menu-toggle { display: none; margin-left: auto; background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; font: inherit; }

/* Page bands */
.band { padding: 56px 0; }
.band-grey { background: var(--band); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue h2, .band-blue h3, .band-blue h5 { color: #fff; }
.band-dark { background: #3f4c5e; color: #fff; }
.band-dark h2, .band-dark h3, .band-dark h5, .band-dark a { color: #fff; }
.band-guide { background: var(--band); padding: 48px 0; }
.band-guide h3 a { color: var(--navy); text-decoration: none; }
.hero { text-align: center; padding: 70px 0 40px; }
.hero h1 { margin-top: 0; }
.lead { font-size: 1.05rem; }
.eyebrow { margin-top: 0; }
.rule { width: 70px; border: 0; border-top: 2px solid var(--line); margin: 18px 0 22px; }
.rule.center-rule { margin-left: auto; margin-right: auto; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); padding: 34px 26px; text-align: center; }
.card-blue { background: var(--blue); color: #fff; }
.card-blue h3 { color: #fff; }
.card h3 { text-transform: uppercase; margin-top: 0; }
.photo { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }

.stats .stat { font-size: 2.6rem; font-weight: 700; margin: 0; line-height: 1.1; }
.stats p { margin: 0; }

/* Testimonials */
.quote { color: var(--muted); }
.quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.quote .who { color: var(--navy); font-size: 1.15rem; margin: .6em 0 0; }
.quote .where { color: var(--ink); margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 50px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 50px 20px 28px; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; position: absolute; right: 26px; top: 14px; font-size: 1.2rem; }
.faq details[open] summary::after { content: "⌃"; top: 22px; }
.faq details > p { padding: 0 28px 18px; margin: 0; }

/* Lists of points (DTC page) */
.points { padding-left: 1.2em; }
.points li { margin: .35em 0; }

/* Long guide */
.article { max-width: 860px; margin: 0 auto; padding: 50px 16px 30px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 0; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); scroll-margin-top: 20px; }
.article section { margin-bottom: 1.5em; }
.article p, .article li { overflow-wrap: anywhere; }   /* long government web addresses wrap on a phone */

/* Guide chapters as accordions (JD 2026-10-06: "should have accordions so it is easier to read").
   <details> keeps every word in the page, so search engines and AI assistants still read it all. */
.chapter { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; background: #fff; }
.chapter > summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; }
.chapter > summary::-webkit-details-marker { display: none; }
.chapter > summary h2 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.chapter > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
                            font-size: 1.7rem; line-height: 1; color: var(--navy); }
.chapter[open] > summary::after { content: "\2212"; }
.chapter > summary:hover { background: var(--band); border-radius: var(--radius); }
.chapter-body { padding: 0 20px 12px; }
.chapter-body h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.guide-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.guide-tools button { font: inherit; font-size: .9rem; background: #fff; color: var(--navy); border: 1px solid var(--navy);
                      border-radius: 20px; padding: 6px 14px; cursor: pointer; }
.guide-tools button:hover { background: var(--band); }

/* "Book..." / "Request..." buttons that lead to the contact form: warm and inviting, so they stand out from the navy
   (JD 2026-10-06: the blue "Book A..." buttons were "not so inviting to get them to click"). */
a.btn[href^="/contact-us"], .btn-cta, .form button.btn {
  background: #c65000; color: #fff; border-radius: 30px; padding: 15px 28px;
  box-shadow: 0 6px 16px rgba(198, 80, 0, .28); transition: transform .12s ease, background .12s ease;
}
a.btn[href^="/contact-us"]:hover, .btn-cta:hover, .form button.btn:hover { background: #a84300; color: #fff; transform: translateY(-1px); }
.btn-light[href^="/contact-us"] { background: #c65000; color: #fff; }
.article img { display: block; margin: 1em auto; border-radius: 6px; }
.article .btn { margin: .4em 0 1.2em; }
.article ul ul, .article ol ol { margin-top: .3em; }

/* Contact form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-weight: 700; margin: 0 0 6px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b8c0cb; border-radius: 6px; margin-bottom: 18px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .count { font-size: .85rem; color: var(--muted); margin: -12px 0 16px; text-align: right; }
.form .hp { position: absolute; left: -5000px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; background: var(--band); border-radius: 6px; padding: 12px 14px; margin: 0 0 18px; }
.form .consent input { width: auto; margin: 5px 0 0; flex: none; }
.form .consent label { font-weight: 400; font-size: .92rem; margin: 0; }
.notice { border-radius: 6px; padding: 14px 18px; margin: 0 0 20px; }
.notice-ok { background: #e6f4ea; border: 1px solid #9fd3ad; }
.notice-err { background: #fdecea; border: 1px solid #f1a9a0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #dfe4ee; padding: 28px 0; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: .4em 0; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-block; flex: none; padding: 9px 12px; }
  /* Phone: heart | Call | Menu on ONE line; the menu opens full width underneath. */
  .header-bar { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .header-break { display: none; }
  .brand { order: 0; flex: none; }
  .brand img { width: 34px; }
  .header-bar .call { order: 1; flex: 1 1 auto; text-align: center; font-size: 1rem; padding: 8px 10px;
                      border-width: 2px; border-radius: 30px; white-space: nowrap; }
  .call-word { display: none; }
  .call-icon { display: inline; }
  .menu-toggle { order: 2; margin-left: 0; }
  .site-nav { order: 3; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 10px; }
  .site-nav li + li { border-left: 0; border-top: 1px solid #cfd5dc; }
  .site-nav a { padding: 10px 4px; }
  .grid-2, .grid-3, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .band { padding: 40px 0; }
  .hero { padding: 44px 0 24px; }
}
