/* Twice As Nice Window Cleaners: holding page
   Mobile first. Breakpoints: tablet 600px, desktop 1024px.
   The photo overlap values (.photo margin-top) come from build-report.json:
   roof line as a percentage of each crop's width, minus a 16px gap,
   so all text always sits above the roof whatever the viewport. */

:root {
  --sky: #b9c3ca;
  --ink: #111820;
  --blue: #0aa0ea;
  --blue-hover: #3db4ef;
  --link: #064a85;
  --strip: #111820;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Hero: contact stack on top, photo underneath, pulled up so the
   real sky sits behind the stack and the roof stays clear of text. */
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 0;
}

.logo {
  display: block;
  width: 260px;
  height: auto;
}

h1 {
  margin: 20px 0 0;
  max-width: 340px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  text-wrap: balance;
}

.prompt {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 24px;
}

.call {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  min-height: 60px;
  padding: 0 24px;
  background: var(--blue);
  color: var(--ink);
  border-radius: 4px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.call:hover {
  background: var(--blue-hover);
}

.call svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.fb {
  margin-top: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  font-size: 16px;
  font-weight: 700;
}

.fb:hover {
  color: var(--ink);
}

.fb svg {
  width: 14px;
  height: 14px;
  flex: none;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.spacer {
  flex: 1 0 0;
}

.photo {
  position: relative;
  display: block;
  margin-top: calc(-50.36% + 16px);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
}

.reasons {
  margin: 0;
  padding: 12px 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  background: var(--strip);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
}

.reasons li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reasons svg {
  width: 11px;
  height: 11px;
  flex: none;
}

/* 404 page extras */
.notfound h1 {
  font-size: 26px;
  line-height: 32px;
}

.home-link {
  margin-top: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--link);
  font-weight: 700;
}

/* Tablet */
@media (min-width: 600px) {
  .stack {
    padding: 40px 32px 0;
  }

  .logo {
    width: 300px;
  }

  h1 {
    max-width: 560px;
    font-size: 24px;
    line-height: 30px;
  }

  .call {
    width: auto;
    min-width: 300px;
  }

  .photo {
    margin-top: calc(-49.76% + 16px);
  }

  .reasons {
    padding: 14px 24px;
    gap: 6px 24px;
    font-size: 15px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .stack {
    padding: 28px 48px 0;
  }

  .logo {
    width: clamp(300px, 21vw, 420px);
  }

  h1 {
    max-width: none;
    font-size: clamp(24px, 1.1rem + 0.5vw, 30px);
    line-height: 1.25;
  }

  .call {
    min-width: 280px;
    min-height: 56px;
    font-size: 28px;
  }

  .photo {
    margin-top: calc(-27.5% + 16px);
  }

  .reasons {
    padding: 16px 48px;
    gap: 8px 36px;
    font-size: 16px;
  }
}
