/* securetoronto.org — mini-mirror with Toronto Ferry branding */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
  --t-navy: #18549E;
  --t-navy-deep: #0F3D75;
  --t-navy-hover: #143F77;
  --t-bg: #ffffff;
  --t-text: #1a1a1a;
  --t-text-muted: #5a6470;
  --t-border: #cfd4da;
  --t-breadcrumb-bg: #ECECEC;
  --t-divider: #d8dde3;
  --t-pill-bg: #f4f6f8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--t-bg);
  color: var(--t-text);
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--t-navy); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.t-header { background: var(--t-navy); padding: 12px 0; flex-shrink: 0; }
.t-container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.t-logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  border: none;
}
.t-logo img { height: 44px; width: auto; display: block; }

/* ---------- Breadcrumbs ---------- */
.t-breadcrumb {
  background: var(--t-breadcrumb-bg);
  border-bottom: 1px solid var(--t-border);
  padding: 14px 0;
  font-size: 15px;
}
.t-breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.t-breadcrumb__list li { display: inline-flex; align-items: center; }
.t-breadcrumb__list li::after { content: '/'; margin: 0 10px; color: var(--t-text-muted); }
.t-breadcrumb__list li:last-child::after { content: ''; margin: 0; }
.t-breadcrumb__home-icon { width: 18px; height: 18px; margin-right: 6px; }
.t-breadcrumb__list .is-current { color: var(--t-text); font-weight: 400; }

/* ---------- Main ---------- */
.t-main { flex: 1 0 auto; padding: 40px 0 64px; }
.t-page-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.t-page-title-rule { border: none; border-top: 1px solid var(--t-divider); margin-bottom: 32px; }

.t-lead { font-size: 17px; color: var(--t-text-muted); margin-bottom: 30px; }

/* ---------- Intro / notice (yellow info) ---------- */
.t-notice {
  background: #f8f3df;
  border-left: 4px solid #c89c2a;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 15px;
}
.t-notice strong { font-weight: 700; }
.t-notice ul { margin: 10px 0 0 20px; }

/* ---------- Ticket selection grid ---------- */
.t-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .t-ticket-grid { grid-template-columns: 1fr; } }
.t-ticket {
  border: 1px solid var(--t-border);
  border-radius: 6px;
  padding: 22px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.t-ticket.is-selected,
.t-ticket:hover {
  border-color: var(--t-navy);
  box-shadow: 0 0 0 2px rgba(24, 84, 158, 0.15);
}
.t-ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.t-ticket__title { font-size: 18px; font-weight: 700; }
.t-ticket__price { font-size: 22px; font-weight: 700; color: var(--t-navy); }
.t-ticket__desc { font-size: 14px; color: var(--t-text-muted); margin-bottom: 14px; }
.t-ticket__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--t-divider);
  padding-top: 14px;
}
.t-ticket__qty span { font-size: 14px; color: var(--t-text-muted); }
.t-ticket__qty-input {
  width: 64px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--t-border);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
}
.t-ticket__qty-input:focus {
  outline: none;
  border-color: var(--t-navy);
  box-shadow: 0 0 0 3px rgba(24, 84, 158, 0.18);
}

/* ---------- Form ---------- */
.t-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .t-form-grid { grid-template-columns: 1fr; } }
.t-field { display: flex; flex-direction: column; }
.t-field--span2 { grid-column: span 2; }
@media (max-width: 720px) { .t-field--span2 { grid-column: span 1; } }
.t-label { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.t-input, .t-select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--t-border);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  background: #ffffff;
}
.t-input:focus, .t-select:focus {
  outline: none;
  border-color: var(--t-navy);
  box-shadow: 0 0 0 3px rgba(24, 84, 158, 0.18);
}

/* ---------- Summary / cart ---------- */
.t-summary {
  background: var(--t-pill-bg);
  border: 1px solid var(--t-border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 28px;
}
.t-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--t-divider);
}
.t-summary__row:last-of-type { border-bottom: none; }
.t-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 2px solid var(--t-navy);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Actions ---------- */
.t-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.t-btn {
  background: var(--t-navy);
  color: #ffffff;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 0 36px;
  height: 48px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}
.t-btn:hover { background: var(--t-navy-hover); }
.t-btn--ghost {
  background: transparent;
  color: var(--t-navy);
  border: 1px solid var(--t-navy);
}
.t-btn--ghost:hover { background: rgba(24, 84, 158, 0.06); }
.t-back-link { color: var(--t-navy); font-weight: 700; }

/* ---------- Footer ---------- */
.t-footer {
  background: var(--t-navy);
  color: #ffffff;
  padding: 18px 0;
  margin-top: 40px;
  flex-shrink: 0;
  font-size: 14px;
}
.t-footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.t-footer a { color: #ffffff; opacity: 0.9; }
.t-footer a:hover { opacity: 1; text-decoration: underline; }

/* Cookie banner */
.t-cookie {
  position: fixed;
  left: 24px; right: 24px;
  bottom: 24px;
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--t-text);
  border: 1px solid var(--t-border);
  border-top: 4px solid var(--t-navy);
  border-radius: 6px;
  padding: 18px 22px;
  box-shadow: 0 20px 50px -16px rgba(15, 30, 50, 0.2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  z-index: 100;
  font-size: 14px;
}
.t-cookie strong { display: block; font-weight: 700; color: var(--t-text); margin-bottom: 4px; }
.t-cookie__actions { display: flex; gap: 8px; }
.t-cookie__btn {
  background: var(--t-navy);
  color: #ffffff;
  border: 1px solid var(--t-navy);
  padding: 9px 16px;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.t-cookie__btn:hover { background: var(--t-navy-hover); }
.t-cookie__btn--ghost {
  background: transparent;
  color: var(--t-navy);
}
.t-cookie__btn--ghost:hover { background: rgba(24, 84, 158, 0.06); }
.t-cookie[hidden] { display: none; }
@media (max-width: 600px) {
  .t-cookie { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; }
}
