/* Trudeau Tech Solutions — site styles */

/* Self-hosted fonts (SIL Open Font License, see fonts/OFL-*.txt): Latin characters,
   variable weight trimmed to the range the site uses */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist-latin-wght.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #12506d;
  --teal-hover: #197099;
  --teal-dark: #0d3a50;
  --mint: #79cfb4;
  --mint-hover: #9fdcc9;
  --on-mint: #0b2f40;
  --ink: #1c2a31;
  --muted: #3a4a52;
  --on-teal-muted: #d6e6ec;
  --line: #d4dee2;
  --mist: #f2f6f7;
  --black: #000000;

  --font-head: "Urbanist", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 88px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #ffffff; color: var(--teal); padding: 12px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.btn-mint { background: var(--mint); color: var(--on-mint); }
.btn-mint:hover { background: var(--mint-hover); color: var(--on-mint); }
.btn-lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn-xl { padding: 18px 32px; font-size: 1.125rem; }

/* Teal band: header + hero */
.band { background: var(--teal); color: #ffffff; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 20px;
}
.brand { display: flex; }
.brand img { width: 232px; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-nav a:not(.btn) {
  color: #ffffff; text-decoration: none; font-weight: 500;
  padding: 12px 14px; border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
.site-nav .nav-signin { display: none; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer;
  align-items: center; justify-content: center;
}

.hero { padding-top: 64px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-weight: 800; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1;
  letter-spacing: -0.02em; max-width: 14ch;
}
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lede { font-size: 1.125rem; color: var(--on-teal-muted); max-width: 36rem; }
.hero-img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: 20px 20px 0 0; margin-top: 24px;
}

/* Services */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; margin-bottom: 32px; }
.section-head h2 { font-weight: 700; font-size: 2.25rem; color: var(--teal); }
.section-head p { font-size: 1.0625rem; color: var(--muted); }

.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px;
}
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.tile svg, .social svg {
  width: 28px; height: 28px; flex: none;
  fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tile h3 { font-weight: 700; font-size: 1.1875rem; color: var(--teal-dark); margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }

.ask { margin-top: 32px; color: var(--muted); }
.ask a { font-weight: 600; }

.modes {
  margin-top: 56px; background: var(--mist); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.modes h2 { font-weight: 700; font-size: 1.75rem; color: var(--teal); }
.modes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.mode { border-top: 2px solid var(--mint); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.mode h3 { font-weight: 700; font-size: 1.25rem; color: var(--teal-dark); }
.mode p { color: var(--muted); line-height: 1.55; }

/* About */
.about { background: var(--mist); padding-block: 88px; }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 56px; align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.about h2 { font-weight: 700; font-size: 2.5rem; color: var(--teal-dark); }
.about-text p:last-child { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.about-img {
  width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover;
  border-radius: 20px; justify-self: center;
}

/* Closing call to action */
.cta {
  background: var(--teal); color: #ffffff; border-radius: 24px; padding: 64px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta > div { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.cta h2 { font-weight: 700; font-size: 2.25rem; }
.cta p { font-size: 1.0625rem; color: var(--on-teal-muted); }

/* Inner pages (privacy policy) */
.page-title { padding-block: 40px 56px; }
.page-title h1 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
.page-meta { margin-top: 8px; color: var(--on-teal-muted); }

.policy { max-width: calc(46rem + 2 * var(--gutter)); padding-block: 56px 88px; }
.policy section { padding-block: 28px; border-top: 1px solid var(--line); }
.policy section:first-child { border-top: 0; padding-top: 0; }
.policy h2 { font-weight: 700; font-size: 1.5rem; color: var(--teal-dark); margin-bottom: 12px; }
.policy h3 { font-weight: 700; font-size: 1.125rem; color: var(--teal); margin: 20px 0 8px; }
.policy p, .policy li { color: var(--muted); line-height: 1.7; }
.policy p + p, .policy ul + p { margin-top: 12px; }
.policy ul { margin: 12px 0 0; padding-left: 1.25rem; }
.policy li + li { margin-top: 4px; }
.policy li::marker { color: var(--mint); }
.policy strong { color: var(--ink); }

/* Footer */
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { background: var(--black); color: #ffffff; padding-block: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 166px; }
.footer-brand p { font-size: .9375rem; color: #c9d1d4; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-links a { color: #ffffff; text-decoration: none; padding: 12px; }
.footer-links a:hover { color: var(--mint); }
.footer-links .footer-signin { color: var(--mint); font-weight: 600; }
.footer-links .footer-signin:hover { color: var(--mint-hover); }
.footer-social { display: flex; gap: 8px; }
.social { width: 44px; height: 44px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.social svg { width: 20px; height: 20px; stroke: currentColor; }

/* Support dialog */
.support-dialog {
  width: min(640px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, .3);
}
.support-dialog[open] { display: flex; flex-direction: column; }
.support-dialog::backdrop { background: rgba(6, 25, 35, .6); }
.dialog-head {
  flex: none; background: var(--teal); color: #ffffff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dialog-head h2 { font-weight: 700; font-size: 1.5rem; }
.dialog-head p { font-size: .9375rem; color: var(--on-teal-muted); }
.dialog-close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dialog-close:hover { background: rgba(255, 255, 255, .22); }
.dialog-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dialog-body iframe { flex: 1; width: 100%; border: 0; background: #ffffff; }
.dialog-fallback { flex: none; padding: 10px 24px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }
body.dialog-open { overflow: hidden; }

/* Wide-only line break in the hero */
@media (max-width: 860px) { .wide-only { display: none; } }

/* Phones and small tablets */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding-block: 56px; }

  .site-header { padding-block: 16px; }
  .brand img { width: 166px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding-bottom: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 4px; border-radius: 0; font-size: 1.0625rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .site-nav a.nav-signin { display: block; color: var(--mint); font-weight: 600; border-bottom: 0; }
  .site-nav .btn { margin-top: 8px; padding-block: 14px; }

  .hero { padding-top: 40px; gap: 20px; }
  .hero h1 { font-size: 2.75rem; line-height: 1.02; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .lede { font-size: 1.0625rem; }
  .btn-lg, .btn-xl { width: 100%; white-space: normal; padding: 16px 24px; font-size: 1.0625rem; }
  .hero-img { height: 220px; border-radius: 16px 16px 0 0; margin-top: 12px; }

  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.875rem; }
  .section-head p { font-size: 1rem; }
  .tiles { gap: 12px; }
  .tile { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px; }
  .tile svg { width: 24px; height: 24px; margin-top: 2px; }
  .tile h3 { font-size: 1.125rem; margin-bottom: 4px; }
  .ask { margin-top: 24px; }

  .modes { margin-top: 32px; padding: 24px 20px; gap: 8px; border-radius: 16px; }
  .modes h2 { font-size: 1.5rem; }
  .modes-grid { gap: 0; }
  .mode { padding-block: 14px; gap: 4px; }
  .mode h3 { font-size: 1.125rem; }

  .about { padding-block: 56px; }
  .about-grid { gap: 20px; }
  .about-img { order: -1; max-width: none; border-radius: 16px; }
  .about h2 { font-size: 1.875rem; }
  .about-text p:last-child { font-size: 1rem; }

  .cta { padding: 32px 24px; border-radius: 20px; gap: 20px; }
  .cta h2 { font-size: 1.75rem; line-height: 1.2; }
  .cta p { font-size: 1rem; }

  .site-footer { padding-block: 32px; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand { display: contents; }
  .footer-brand p { order: 3; font-size: .875rem; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .footer-links a:not(.social) { padding: 12px 0; }
  .footer-social { margin-top: 8px; }
  .footer-social .social { border-radius: 50%; background: rgba(255, 255, 255, .1); }

  .support-dialog {
    width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
    margin: 0; border-radius: 0;
  }
  .dialog-head { padding: 16px 20px; }
  .dialog-head h2 { font-size: 1.375rem; }
  .dialog-head p { font-size: .875rem; }
}
