/* Caregivers With Hearts - plain CSS
   Colours and sizes taken from the live site's stylesheet */
:root {
  --green: #8dc63f;
  --green-dark: #7ab32f;
  --blue: #28a7fb;
  --teal: rgba(23, 148, 178, .55);
  --text: #333333;
  --grey: #9a9a9a;
  --border: #e5e7eb;
  --max: 72rem; /* 1152px */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background: #fff;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.filled { fill: currentColor; stroke-width: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--border); background: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; }
.topbar-mail { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: #6b7280; }
.topbar-mail:hover { color: #374151; }
.topbar-mail svg { width: 14px; height: 14px; }
.social { display: flex; gap: .5rem; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #d1d5db; color: #fff; transition: background .2s;
}
.social a:hover { background: var(--green); }
.social svg { width: 14px; height: 14px; }

/* ---------- Logo + phone ---------- */
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.logo { height: 4rem; width: auto; }
.brand-contact { text-align: right; display: none; }
.brand-phone { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; font-size: 1.25rem; font-weight: 600; color: #1f2937; }
.brand-phone svg { width: 24px; height: 24px; color: #374151; stroke-width: 1.8; }
.brand-appt { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; margin-top: .25rem; font-size: .75rem; color: #9ca3af; text-decoration: underline; }
.brand-appt:hover { color: var(--green); }
.brand-appt svg { width: 12px; height: 12px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle:focus-visible ~ .nav-mobilebar .nav-btn { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-mobilebar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.nav-mobilebar span { font-size: .875rem; font-weight: 600; color: #1f2937; }
.nav-btn {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  width: 40px; height: 40px; border: 1px solid #d1d5db; border-radius: 4px; color: #374151;
}
.nav-btn svg { width: 20px; height: 20px; }

.nav-list { display: none; flex-direction: column; padding-bottom: .5rem; }
.nav-toggle:checked ~ .nav-list { display: flex; }
.nav-list > li { border-top: 1px solid var(--border); }
.nav-list > li > a { display: flex; align-items: center; gap: .25rem; padding: .85rem .25rem; font-size: 15px; font-weight: 600; color: #1f2937; }
.nav-list > li > a:hover { color: var(--green); }
.nav-list > li.active > a { color: var(--green); }
.nav-list svg { width: 14px; height: 14px; }
.sub { padding: 0 0 .5rem 1rem; }
.sub a { display: block; padding: .6rem .5rem; font-size: .875rem; color: #374151; }
.sub a:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 2.5rem; height: 100%; padding-top: 4rem; padding-bottom: 4rem;
}
.hero-text { max-width: 24rem; padding-top: 1rem; }
.hero-title { font-size: 2.25rem; line-height: 1.25; }
.hero-title strong { font-weight: 700; color: var(--text); }
.hero-title span { color: var(--blue); }
.hero-sub { margin-top: 1.5rem; font-size: 1.25rem; font-style: italic; line-height: 1.625; color: var(--text); }

.hours { width: 100%; max-width: 28rem; padding: 2.5rem 2rem; color: #fff; background: var(--teal); }
.hours h2 { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: .025em; }
.hours-rule { height: 6px; width: 100%; margin: 1.5rem 0; background: #fff; }
.hours dl > div { display: flex; justify-content: space-between; font-size: 1.25rem; }
.hours dl > div + div { margin-top: 1rem; }
.emergency { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.emergency svg { width: 48px; height: 48px; stroke-width: 1.5; transform: rotate(-137deg); }
.emergency p { text-align: center; font-size: 1.25rem; line-height: 1.375; }
.emergency a:hover { text-decoration: underline; }

/* ---------- Shared section bits ---------- */
.intro { max-width: 56rem; margin: 0 auto; padding: 0 1rem; text-align: center; }
.intro h1, .intro h2 { font-weight: 700; color: #111827; }
.intro p { max-width: 48rem; margin: 1.25rem auto 0; font-size: 1rem; line-height: 1.625; color: var(--grey); }

.btn-row { margin-top: 3.5rem; text-align: center; }
.btn {
  display: inline-block; padding: .875rem 2rem; border-radius: 6px;
  background: var(--green); color: #fff; font-size: 1.125rem; transition: background .2s;
}
.btn:hover { background: var(--green-dark); }

/* ---------- About ---------- */
.about { padding: 5rem 0; background: #fff; }
.about .intro h1 { font-size: 1.5rem; }
.boxes { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3.5rem; }
.box { display: flex; flex-direction: column; align-items: center; padding: 3rem 2rem; text-align: center; color: #fff; }
.box.green { background: rgb(141, 198, 63); }
.box.blue { background: rgb(40, 167, 251); }
.box .icon { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; }
.box .icon svg { width: 32px; height: 32px; color: rgb(40, 167, 251); stroke-width: 1.8; }
.box h3 { margin-top: 1.75rem; font-size: 1.25rem; font-weight: 700; }
.box p { margin-top: .75rem; font-size: .875rem; line-height: 1.75; }
.divider { margin: 4rem 0 0; border: 0; border-top: 1px solid var(--border); }

/* ---------- Services ---------- */
.services { padding: 1.5rem 0 6rem; background: #fff; }
.services .intro h2 { font-size: 1.25rem; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 4rem; }
.service img { width: 100%; aspect-ratio: 500 / 334; object-fit: cover; }
.service h3 { margin-top: 1.5rem; text-align: center; font-size: 1.25rem; font-weight: 700; color: #111827; }
.service hr { width: 66.666%; margin: .75rem auto 0; border: 0; border-top: 1px solid var(--border); }
.service ul { max-width: 20rem; margin: 1.5rem auto 0; padding-left: 1.25rem; list-style: disc; text-align: left; font-size: 15px; line-height: 1.625; color: #6b7280; }
.service li + li { margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative; padding: 6rem 0;
  background: #475569 url("images/contact1.jpg") center / cover no-repeat;
}
.contact-shade { position: absolute; inset: 0; background: rgba(15, 23, 42, .6); }
.contact-inner { position: relative; max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.contact h2 { text-align: center; font-size: 1.5rem; font-weight: 700; color: #fff; }
.contact hr { width: 66.666%; margin: 1rem auto 0; border: 0; border-top: 1px solid #fff; }
.contact-lead { margin-top: 2rem; text-align: center; font-size: 1.125rem; font-weight: 700; color: #fff; }
.contact form { margin-top: 2.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact input, .contact textarea {
  width: 100%; padding: .875rem 1rem; border: 1px solid var(--border); border-radius: 0;
  background: #fff; font: inherit; font-size: .875rem; letter-spacing: .025em;
  text-transform: uppercase; color: #374151; outline: none;
}
.contact textarea { display: block; margin-top: 1.5rem; resize: vertical; text-transform: none; }
.contact input::placeholder, .contact textarea::placeholder { color: #9ca3af; }
.contact input:focus, .contact textarea:focus { border-color: var(--green); }
.contact button {
  margin-top: 1.5rem; padding: .875rem 2rem; border: 0; border-radius: 0; cursor: pointer;
  background: var(--green); color: #fff; font: inherit; font-size: .875rem; font-weight: 700;
  letter-spacing: .025em; text-transform: uppercase; transition: background .2s;
}
.contact button:hover { background: var(--green-dark); }

/* ---------- Services page ---------- */
.svc-intro, .svc-how { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding-top: 3rem; }
.svc-how { padding-top: 3.5rem; }
.svc-intro-text h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.33; color: #111827; }
.svc-intro-text h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.42; color: #111827; }
.svc-intro-text hr { width: 70%; margin: 1rem 0; border: 0; border-top: 2px solid var(--border); }
.svc-intro-text p { font-size: 1rem; line-height: 1.7; color: #6b7280; }
.svc-intro-text h2 + p { margin-top: 1rem; }
.svc-intro-img img { width: 100%; height: auto; border: 1px solid var(--border); padding: 4px; background: #fff; }

.svc-lists { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
.svc-head { display: flex; align-items: center; gap: 1rem; }
.svc-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff;
}
.svc-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.svc-icon svg.filled-icon { fill: currentColor; }
.svc-head h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: #111827; }
.svc-col ul { margin-top: 1.5rem; padding-left: 1.25rem; list-style: disc; font-size: 15px; line-height: 1.7; color: #6b7280; }
.svc-col li + li { margin-top: .4rem; }

.svc-cta { max-width: 52rem; margin: 0 auto; padding: 3rem 1rem 6rem; text-align: center; }
.svc-cta h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.42; color: #111827; }
.svc-cta p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; color: #6b7280; }
.svc-cta .btn-row { margin-top: 2.25rem; }

/* ---------- Caregivers team (About) page ---------- */
.team { padding: 4rem 0 5rem; background: #fff; }
.team .intro h1 { font-size: 1.5rem; text-transform: uppercase; }
.intro-rule { width: 70%; max-width: 40rem; margin: 1rem auto 0; border: 0; border-top: 2px solid var(--border); }
.accordion { max-width: 56rem; margin: 3rem auto 0; padding: 0 1rem; }
.accordion details { border: 1px solid var(--border); background: #fff; }
.accordion details + details { margin-top: -1px; }
.accordion details:first-child { border-radius: 6px 6px 0 0; }
.accordion details:last-child { border-radius: 0 0 6px 6px; }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  background: #f5f6f7; font-size: 1.0625rem; font-weight: 600; color: #1f2937; transition: background .2s, color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.accordion summary:hover { color: var(--green); }
.accordion details[open] > summary { background: var(--green); color: #fff; }
.accordion details[open] > summary::after { transform: rotate(-135deg); }
.acc-body { padding: 1.5rem 1.25rem; font-size: 1rem; line-height: 1.7; color: #6b7280; }
.acc-body p + p { margin-top: 1rem; }

/* ---------- Footer ---------- */
.footer { background: #222222; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer p { text-align: center; font-size: .875rem; color: #d1d5db; }

.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: rgba(156, 163, 175, .8); color: #fff; transition: background .2s;
}
.to-top:hover { background: var(--green); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Small tablets and up (640px) ---------- */
@media (min-width: 640px) {
  .svc-lists { grid-template-columns: 1fr 1fr; }
  .brand-contact { display: block; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop (768px) ---------- */
@media (min-width: 768px) {
  .logo { height: 5rem; }

  .nav-mobilebar, .nav-toggle { display: none; }
  .nav-list { display: flex; flex-direction: row; justify-content: center; padding: 0; }
  .nav-list > li { position: relative; border-top: 0; border-left: 1px solid var(--border); }
  .nav-list > li.last { border-right: 1px solid var(--border); }
  .nav-list > li > a { padding: 1rem 2.5rem; border-top: 2px solid transparent; }
  .nav-list > li.active > a { border-top-color: var(--green); }
  .sub {
    position: absolute; left: 0; top: 100%; z-index: 50; width: 18rem; padding: 0;
    background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 15px rgba(0,0,0,.1);
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { visibility: visible; opacity: 1; }
  .sub li + li { border-top: 1px solid #f3f4f6; }
  .sub a { padding: .75rem 1.25rem; color: #374151; }
  .sub a:hover { background: #f9fafb; }

  .hero { height: 85vh; }
  .hero-inner { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
  .hero-text { padding-top: 0; }
  .hero-title { font-size: 51px; }
  .hero-sub { font-size: 28px; line-height: 2; }
  .hours { padding: 2.5rem; }
  .hours h2 { font-size: 1.875rem; }
  .hours dl > div { font-size: 1.5rem; }
  .emergency p { font-size: 1.5rem; }

  .intro p { font-size: 1.125rem; }
  .about .intro h1, .team .intro h1 { font-size: 1.875rem; }
  .services .intro h2 { font-size: 1.5rem; }
  .contact h2 { font-size: 1.875rem; }
  .contact-lead { font-size: 1.25rem; }
  .boxes, .service-grid { grid-template-columns: repeat(3, 1fr); }

  .svc-intro, .svc-how { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .svc-intro-text h1 { font-size: 1.875rem; }
  .svc-intro-text h2, .svc-cta h2 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .svc-lists { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* =========================================================
   Resources & contact pages  (added block - paste at the
   bottom of style.css if you already have your own copy)
   ========================================================= */
.page-hero {
  padding: 3.5rem 0; text-align: center;
  background: #eef6e0;
  border-bottom: 4px solid var(--green);
}
.page-hero h1 { max-width: 48rem; margin: 0 auto; font-size: 1.625rem; font-weight: 700; line-height: 1.3; color: #1f2937; }
.page-hero p { max-width: 44rem; margin: 1rem auto 0; font-size: 1.0625rem; color: #4b5563; }
.page-hero .btn { background: #6a9a22; border-color: #6a9a22; }
.page-hero .btn:hover { background: #587f1b; border-color: #587f1b; }
.btn-row.tight { margin-top: 1.75rem; }

.res-section { padding: 3.5rem 0; background: #fff; }
.res-section.alt { background: #f7f9fa; }
.res-h { text-align: center; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: #111827; }
.res-sub { margin-top: 2.5rem; text-align: center; font-size: 1.125rem; font-weight: 700; color: #111827; }
.res-text { max-width: 48rem; margin: 1.25rem auto 0; text-align: center; font-size: 1rem; line-height: 1.7; color: #6b7280; }
.res-note { font-weight: 400; color: #6b7280; }
.res-more { margin-top: 2rem; text-align: center; color: #6b7280; }
.res-more a:not(.btn), .res-text a { color: var(--blue); text-decoration: underline; }
.res-more .btn { text-decoration: none; }
.res-section .boxes { margin-top: 2rem; }
.res-section .svc-lists { padding-top: 2.5rem; }
.svc-lists.cols-3 { grid-template-columns: 1fr; }

.res-list { max-width: 40rem; margin: 2rem auto 0; padding-left: 1.25rem; list-style: disc; line-height: 1.7; color: #6b7280; }
.res-list li + li { margin-top: .4rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.info-grid.single { grid-template-columns: minmax(0, 36rem); justify-content: center; }
.info-card { padding: 1.5rem; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 6px; }
.alt .info-card { background: #fff; }
.info-card h3 { margin-bottom: .75rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: #111827; }
.info-card p { font-size: .9375rem; line-height: 1.65; color: #6b7280; overflow-wrap: anywhere; }
.info-card p + p { margin-top: .75rem; }
.info-card strong { color: #374151; }
.info-card a { color: var(--blue); }
.info-card a:hover { text-decoration: underline; }

.enquiry { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.enquiry-card { padding: 2rem 1.5rem; text-align: center; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--green); border-radius: 6px; }
.enquiry-card h2 { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 700; color: #111827; }
.enquiry-card .big { font-size: 1.25rem; line-height: 1.6; overflow-wrap: anywhere; }
.enquiry-card .big a { color: var(--blue); }
.enquiry-card .big a:hover { text-decoration: underline; }
.hours-table { width: 100%; max-width: 20rem; margin: 0 auto; border-collapse: collapse; font-size: 1.125rem; }
.hours-table th, .hours-table td { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { text-align: left; font-weight: 600; color: #374151; }
.hours-table td { text-align: right; color: #6b7280; }

@media (min-width: 768px) {
  .page-hero { padding: 4.5rem 0; }
  .page-hero h1 { font-size: 2.125rem; }
  .res-section { padding: 4.5rem 0; }
  .res-h { font-size: 1.625rem; }
  .svc-lists.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .enquiry { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   Menu + footer to match test1.ontarioroofers.net
   (added block - paste at the bottom of style.css if you
   already have your own copy)
   Menu:   Montserrat, 16px, bold (700), #252525
           hover / current page: #96c346
   Sub-menu: Open Sans, 14px, semi-bold (600)
   Footer: dark #282a2b bar, one line on desktop
   ========================================================= */
.nav-list > li > a {
  font-family: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #252525;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { color: #96c346; }

.sub a {
  font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #252525;
}
.sub a:hover,
.sub li.active > a { color: #96c346; background: rgba(150, 195, 70, .07); }

@media (min-width: 768px) {
  .nav-list > li.active > a { border-top-color: #96c346; }
  .sub { width: 260px; }
  .sub a { padding: 9px 10px; }
  .sub a:hover { background: rgba(150, 195, 70, .07); }
}

/* Footer: dark bar #282a2b, white 13px text.
   Wide screens (1000px+): logo on the left, copyright on the right, ONE line.
   Narrower screens: logo above the copyright, centred (same as the original site). */
.footer { background: #282a2b; padding: 10px 0; }
.footer-inner { max-width: none; padding: 0 20px; gap: 10px; }
.footer .logo img { height: 3.25rem; width: auto; }
.footer p { margin: 0; color: #fff; font-size: 13px; line-height: 26px; text-align: center; }

@media (min-width: 1000px) {
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 0 50px; gap: 20px; }
  .footer p { text-align: right; }
}


/* =========================================================
   PHP contact form  (added block - paste at the bottom of
   style.css if you already have your own copy)
   ========================================================= */
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 4px; font-size: .9375rem; line-height: 1.6; }
.form-msg.success { background: #eef6e0; color: #1f3a0a; border-left: 4px solid #8dc63f; }
.form-msg.error   { background: #fdecec; color: #7a1f1f; border-left: 4px solid #d64545; }
.form-msg ul { margin: 0; padding-left: 1.25rem; }
.form-msg a { color: inherit; text-decoration: underline; }
.form-msg + .form-msg, .form-msg + form { margin-top: 1.5rem; }
