/* srnotary.ca — hand-written stylesheet reproducing the live Divi look
   (no Divi code). Values come from the Divi customizer CSS captured
   2026-10-19: brand red #871919, body #666, Open Sans 15px, h1 26 / h2 22 /
   h3 18 / h4 15, header 80px, container 80% / max 1080px, sections 54px. */

:root {
  --red: #871919;
  --red-dark: #6e1414;
  --text: #666;
  --ink: #333;
  --black: #000;
  --link: #2ea3f2;
  --card: rgba(239, 239, 239, .86);
  --line: #ccc;
  --header-h: 80px;
  --font: "Open Sans", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Extra offset so #contact-form lands with its "Send us a message" heading visible. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 15px/1.7 var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 {
  color: var(--red);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  padding-bottom: 10px;
}
h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
ul { list-style: disc; }
ol { list-style: decimal; }
li ol { padding-top: 4px; padding-bottom: 0; }
.clear { clear: both; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #fff; color: var(--red); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.section { padding: 54px 0; }
.section--intro { padding-top: 32px; padding-bottom: 0; }
.section--cards { padding-top: 54px; padding-bottom: 0; }
.section--center { text-align: center; }
.narrow { max-width: 640px; }
.cols { display: flex; gap: 5.5%; align-items: flex-start; }
.col-main { flex: 0 0 64.833%; min-width: 0; }
.col-side { flex: 1 1 auto; min-width: 0; }
.col-main::after { content: ""; display: table; clear: both; }

/* Floated portrait (WordPress .alignleft) */
.portrait { float: left; margin: 0 15px 15px 0; width: 233px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--red);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; line-height: 0; }
.logo img { height: 43px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; line-height: 1; }
.nav a {
  color: #fff; font-size: 17px; font-weight: 700;
  display: block; padding: 6px 0;
}
.nav a:hover { opacity: .7; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--link); }
.nav a[aria-current="page"]:hover { opacity: 1; }
.menu-toggle { display: none; }

/* ---------- Sidebar ---------- */
.callbox {
  display: block;
  background: var(--red) url(/assets/img/back2a.jpg) center / cover repeat;
  padding: 15px 10px 10px;
  margin-bottom: 50px;
  text-align: center;
}
.callbox h2 { color: #fff; font-size: 22px; padding-bottom: 6px; }
.callbox:hover { text-decoration: none; filter: brightness(1.1); }
.office p { font-size: 14px; }
.office a { color: inherit; }

/* ---------- Home ---------- */
.h-section { font-size: 22px; }
.map-row { padding-top: 54px; }
.map {
  display: block; width: 100%; height: 400px; border: 0;
  background: #e5e3df;
}
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; }
.card {
  background: var(--card);
  padding: 10px 10px 20px;
  text-align: center;
}
.card__img { display: block; line-height: 0; margin-bottom: 30px; }
.card__img img { width: 100%; }
.card__title { font-size: 15px; padding-bottom: 6px; }
.card__title a { color: var(--red); }
.card p { font-size: 14px; }
.services-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; padding-top: 20px; }
.services-cols ul { font-size: 14px; padding-bottom: 0; }

/* ---------- Inner pages ---------- */
.service-list { padding-left: 1.4em; line-height: 1.7; }
.service-list li { padding-bottom: 1em; }
.pdf-link a { display: inline-flex; align-items: center; gap: 10px; }
.pdf-link img { flex: 0 0 auto; }
.col-main h3 { padding-top: 10px; }
.col-main h1 + h3, .col-main .portrait + p { padding-top: 0; }
.resource-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5%; padding-top: 20px; }
.resource-cols h3 { padding-top: 0; }
.resource-cols ul { padding-bottom: 32px; }
.link-list { list-style: none; padding: 10px 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 18px/1.4 var(--font);
  padding: 10px 28px;
  border: 0; border-radius: 3px;
  cursor: pointer;
  text-align: center;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); text-decoration: none; }

/* ---------- Contact form ---------- */
.form-block { clear: both; padding: 20px 0 54px; }
.form { max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%;
  font: 500 16px/1.5 var(--font);
  color: var(--black);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
}
.field input:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid rgba(135, 25, 25, .2); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.formerror {
  background: #fdecea; border-left: 4px solid var(--red); color: var(--red-dark);
  padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
}
.formerror[hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: 54px 0; }
.cta-band h2 { color: #fff; font-size: 30px; padding-bottom: 10px; }
.cta-band__phone { font-size: 26px; line-height: 1.15; padding: 0; }
.cta-band__phone a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--black); font-size: 14px; }
.footer-widgets {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5.5%;
  padding: 50px 0 40px;
}
.footer-widgets p { padding-bottom: 0; }
.footer-social { padding-top: 22px !important; }
.footer-social a { display: inline-flex; align-items: center; gap: 4px; }
.footer-social svg { width: 12px; height: 12px; fill: currentColor; }
.members { grid-column: 3; }
.members img { display: block; margin: 6px 0 4px; }
.footer-bottom { background: var(--red); color: #fff; padding: 15px 0 12px; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom p { padding: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; line-height: 0; }
.social a { color: #fff; opacity: .6; display: block; }
.social a:hover { opacity: 1; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Tablet & mobile (Divi breakpoint 980px) ---------- */
@media (max-width: 980px) {
  .site-header { position: relative; }
  .site-header .container { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
  .logo { height: var(--header-h); display: flex; align-items: center; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; border: 0; color: #fff; cursor: pointer;
  }
  .menu-toggle svg { width: 28px; height: 28px; fill: currentColor; }
  .nav { flex-basis: 100%; }
  .nav ul { flex-direction: column; gap: 0; background: #000; border-top: 3px solid var(--link); margin: 0 -12.5% 0; padding: 5% 12.5%; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav a { padding: 10px 5%; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 16px; }
  .nav li:last-child a { border-bottom: 0; }
  .cols { flex-direction: column; gap: 30px; }
  .col-main, .col-side { flex: 1 1 auto; width: 100%; }
  .section--intro { padding-top: 40px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .members { grid-column: 2; }
}
@media (max-width: 767px) {
  .container { width: 90%; }
  .cards, .services-cols, .resource-cols { grid-template-columns: 1fr; gap: 30px; }
  .services-cols { gap: 0; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
  .members { grid-column: 1; }
  .footer-bottom .container { flex-direction: column-reverse; align-items: flex-start; }
  .map { height: 320px; }
  .cta-band h2 { font-size: 24px; }
  .cta-band__phone { font-size: 22px; }
  .nav ul { margin: 0 -5.6%; padding: 4% 5.6%; }
}
@media (max-width: 479px) {
  .portrait { float: none; display: block; margin: 0 0 15px; }
}
