/* ============================================================
   K+R Property Management Services — krhomewatch.ca
   Colours and type match the winter signage.
   Edit the variables below to adjust the look.
   ============================================================ */

:root {
  --navy: #041e3c;
  --navy-deep: #002a52;
  --navy-mid: #094d90;
  --accent: #3a84c6;
  --border: #0f4989;
  --sky-top: #4e96d6;
  --sky-mid: #9ec8f0;
  --sky-low: #d7eafb;
  --sky-bottom: #f3f8fd;
  --snow: #f7fbfe;
  --white: #ffffff;
  --text: #041e3c;
  --muted: #3d5670;
  --error: #8b1e1e;
  --success: #14532d;
  --success-bg: #e8f6ec;
  --error-bg: #fdeeee;
  --serif: "Playfair Display", "Times New Roman", Times, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --content: 72rem;
  --space: 1.25rem;
  --radius: 0.85rem;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.25rem; /* generous body size */
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.4rem 0.4rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / logo ---------- */

.site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #6eace0 0%, #9ec8f0 40%, #d7eafb 75%, #f3f8fd 100%);
  padding: 0.35rem 1.25rem 0;
  text-align: center;
}

.logo-wrap {
  position: relative;
  z-index: 1;
  max-width: 41.25rem; /* 660px: half of the 1320px source, crisp on 2x */
  margin: 0 auto;
  padding: 0 0.5rem 0.15rem;
}

.logo-img {
  display: block;
  width: 100%;
  max-width: 41.25rem;
  height: auto;
  margin: 0 auto;
}

/* ---------- Services + house ---------- */

.services-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.25rem;
}

.services-heading {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--navy);
}

.hero-frame {
  order: -1; /* photo first on mobile */
  overflow: hidden;
  border-radius: 0.4rem 0.4rem 0;
  background: #d9e8f6;
  aspect-ratio: 4 / 3.15;
  position: relative;
}

.hero-media,
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 55% 45%;
  transform: scale(1);
  transform-origin: 55% 45%;
  animation: kenburns 28s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-2.4%, -1.6%);
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.checklist li:last-child {
  margin-bottom: 0;
}

.nobr {
  white-space: nowrap;
}

.check-icon {
  flex: 0 0 1.7rem;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.12rem;
}

/* ---------- Tagline, tailored, service area ---------- */

.tagline-box {
  max-width: var(--content);
  margin: 0.5rem auto 0;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 3px solid var(--border);
  border-radius: 1.35rem;
  background: var(--white);
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.tagline-box p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--navy);
  text-align: center;
}

.tailored {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--content);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy);
  text-align: center;
}

.tailored::before,
.tailored::after {
  content: "";
  flex: 1 1 2rem;
  height: 3px;
  background: var(--navy-deep);
  border-radius: 2px;
}

.tailored span {
  flex: 0 1 auto;
}

.service-area {
  display: block;
  width: fit-content;
  max-width: calc(100% - 2.5rem);
  margin: 1.25rem auto 0.5rem;
  padding: 0.55rem 1.6rem 0.65rem;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-align: center;
  border-radius: 999px;
  line-height: 1.3;
}


/* ---------- Who We Are ---------- */

.who-we-are {
  max-width: var(--content);
  margin: 2.25rem auto 0.25rem;
  padding: 0 1.25rem 0.5rem;
}

.who-we-are h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--navy);
  text-align: center;
}

.who-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.who-card {
  background: var(--snow);
  border: 2px solid #d4e4f2;
  border-radius: var(--radius);
  padding: 1.75rem 1.3rem 1.6rem;
  text-align: center;
}

.who-avatar {
  width: 6.75rem;
  height: 6.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--accent);
}

.who-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
}

.who-role {
  margin: 0 0 0.3rem;
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 1.2rem;
}

.who-since {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

/* ---------- Contact form ---------- */

.contact {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
}

.contact h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--navy);
  text-align: center;
}

.contact-direct {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.3rem;
}

.contact-direct a {
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.contact-direct .sep {
  margin: 0 0.4rem;
  color: var(--muted);
}

.form-banner {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.form-banner--success {
  background: var(--success-bg);
  color: var(--success);
  border: 2px solid #8fca9e;
}

.form-banner--error {
  background: var(--error-bg);
  color: var(--error);
  border: 2px solid #e0a0a0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.contact-form .req {
  color: var(--navy-mid);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.2rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid #9bb3c9;
  border-radius: 0.45rem;
  background: var(--white);
  color: var(--navy);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form button {
  appearance: none;
  border: 0;
  cursor: pointer;
  margin-top: 0.25rem;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 0.5rem;
}

.contact-form button:hover {
  background: var(--navy);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  margin-top: 0.5rem;
}

.footer-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 0.4rem;
}

.footer-house,
.footer-pines {
  width: 4.25rem;
  height: auto;
}

.footer-pines {
  width: 3.6rem;
  justify-self: end;
}

.footer-contact {
  text-align: center;
  min-width: 0;
}

.footer-kicker {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: #d6e6f6;
}

.footer-contact a {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  word-break: break-word;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-contact a.phone {
  margin-top: 0.15rem;
  font-size: 1.3rem;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 4.5rem;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-lake {
  background: #1a3348;
}

.footer-lake img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  object-position: center 40%;
}

/* ---------- Desktop ---------- */

@media (min-width: 800px) {
  body {
    font-size: 1.3rem;
  }

  .site-header {
    padding: 0.4rem 2rem 0;
  }

  .logo-wrap {
    padding: 0 0 0.2rem;
  }

  .services-hero {
    display: grid;
    grid-template-columns: minmax(20rem, 1.2fr) minmax(20rem, 1.1fr);
    grid-template-areas:
      "heading photo"
      "list photo";
    gap: 0.6rem 1.75rem;
    align-items: start;
    padding: 1.75rem 2rem 1.5rem;
  }

  .services-heading {
    grid-area: heading;
    font-size: 2.2rem;
    padding-top: 0.2rem;
  }

  .checklist {
    grid-area: list;
    padding-top: 0.15rem;
    align-self: start;
  }

  .checklist li {
    font-size: 1.55rem;
    margin-bottom: 1.05rem;
  }

  .check-icon {
    width: 1.85rem;
    height: 1.85rem;
    flex-basis: 1.85rem;
  }

  .hero-frame {
    grid-area: photo;
    order: 0;
    aspect-ratio: auto;
    min-height: 28rem;
    border-radius: 0.35rem;
  }

  .tagline-box {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 4rem);
    max-width: var(--content);
    padding: 1.6rem 2.5rem 1.5rem;
  }

  .tagline-box p {
    font-size: 1.85rem;
  }

  .tailored {
    font-size: 1.7rem;
    padding: 0 2rem;
    margin-top: 1.75rem;
  }

  .service-area {
    font-size: 1.75rem;
    padding: 0.65rem 2.4rem 0.75rem;
    margin-top: 1.4rem;
  }

  .who-we-are {
    margin-top: 2.75rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .who-we-are h2 {
    font-size: 2.2rem;
    margin-bottom: 1.75rem;
  }

  .who-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    max-width: 52rem;
    margin: 0 auto;
  }

  .who-card {
    padding: 2rem 1.5rem 1.85rem;
  }

  .who-avatar {
    width: 7.25rem;
    height: 7.25rem;
    font-size: 2.05rem;
  }

  .who-card h3 {
    font-size: 1.75rem;
  }

  .who-role {
    font-size: 1.3rem;
  }

  .who-since {
    font-size: 1.2rem;
  }

  .contact {
    padding: 2.5rem 2rem 2.75rem;
  }

  .contact h2 {
    font-size: 1.9rem;
  }

  .footer-band {
    padding: 1.6rem 2rem 0.5rem;
    gap: 1rem 1.5rem;
  }

  .footer-house {
    width: 6.5rem;
  }

  .footer-pines {
    width: 5.25rem;
  }

  .footer-kicker {
    font-size: 1.3rem;
  }

  .footer-contact a {
    font-size: 1.7rem;
  }

  .footer-contact a.phone {
    font-size: 1.5rem;
  }

  .footer-wave {
    height: 5.5rem;
  }

  .footer-lake img {
    height: 10.5rem;
  }
}

@media (min-width: 1100px) {
  .services-heading {
    font-size: 2.35rem;
  }

  .checklist li {
    font-size: 1.55rem;
  }

  .hero-frame {
    min-height: 34rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }
}

@media (max-width: 799px) {
  /* Client request: hide the house photo on the mobile breakpoint.
     Hide the whole frame so the reserved aspect-ratio box does not leave a gap. */
  .hero-frame {
    display: none;
  }

  .footer-band {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 1.5rem;
  }

  .footer-house,
  .footer-pines {
    width: 4.5rem;
  }

  .footer-pines {
    justify-self: center;
    order: 3;
  }
}
