@font-face { font-family: "Sancreek"; src: url(fonts/sancreek.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Unbounded"; src: url(fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Michroma"; src: url(fonts/michroma.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Questrial"; src: url(fonts/questrial.woff2) format("woff2"); font-display: swap; }

/* Colours sampled from the fridge magnet. */
:root {
  --red: #d3121f;
  --red-deep: #a80c18;
  --blush: #f8dcd9;
  --blue: #2b3a9c;
  --ink: #1a1d3d;
  --muted: #565a78;
  --white: #fff;
  --chrome-edge: #b0101c;

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Questrial", "Century Gothic", "Avenir", sans-serif;
  --digits: "Michroma", "Eurostile", sans-serif;

  --gutter: 16px;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.magnet :focus-visible, .call-bar:focus-visible { outline-color: var(--white); }

h2, h3 { font-family: var(--display); color: var(--blue); line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 600; }

.concept {
  margin: 0;
  padding: 6px var(--gutter);
  background: var(--ink);
  color: #d6d8e8;
  font-size: .8125rem;
  text-align: center;
}

/* ---- The magnet: the hero is the fridge magnet, rebuilt. ---- */

.magnet {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 96px) var(--gutter) clamp(64px, 10vw, 104px);
  background: linear-gradient(180deg, var(--red) 0%, var(--red) 48%, #e04a4e 70%, var(--blush) 90%, var(--white) 100%);
  text-align: center;
}

.web { position: absolute; top: 0; width: clamp(130px, 24vw, 300px); pointer-events: none; }
.web-left { left: 0; }
.web-right { right: 0; transform: scaleX(-1); }

/* The redback drops in on its silk once, on load. */
.spider {
  position: absolute;
  top: 0;
  left: clamp(18px, 7vw, 120px);
  width: clamp(38px, 7vw, 64px);
  height: clamp(64px, 14vw, 190px);
  z-index: 1;
  animation: drop 1.4s cubic-bezier(.3, 1.4, .5, 1) .3s both;
  transform-origin: top center;
}
.spider::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 60%;
  height: 400px;
  border-left: 1px solid rgba(255, 255, 255, .85);
}
.spider img {
  position: absolute;
  bottom: 0;
  width: 100%;
  filter: drop-shadow(0 0 5px rgba(255, 90, 90, .9));
}
@keyframes drop { from { transform: translateY(-110%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .spider { animation: none; } }

.logo { position: relative; margin: 0 auto; max-width: 720px; font-size: 1rem; }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo-word text { font: 150px "Sancreek", serif; text-anchor: middle; }
.logo-shadow { fill: var(--blue); stroke: var(--white); stroke-width: 2; paint-order: stroke; }
.logo-chrome { fill: url(#chrome); stroke: var(--chrome-edge); stroke-width: 2.5; paint-order: stroke; }
.logo-sub {
  font: 900 58px var(--display);
  text-anchor: middle;
  fill: var(--blue);
  stroke: #e9ebf0;
  stroke-width: 6;
  stroke-linejoin: round;
  paint-order: stroke;
}

.pitch {
  position: relative;
  max-width: 30rem;
  margin: 28px auto 0;
  color: var(--white);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.45;
}

.magnet .phone {
  position: relative;
  display: inline-block;
  margin-top: 28px;
  font: clamp(1.7rem, 7.4vw, 3.4rem)/1.1 var(--digits);
  color: var(--blue);
  text-decoration: none;
  -webkit-text-stroke: .5px var(--white);
  text-shadow: 0 0 1px var(--white), 0 0 4px rgba(255, 255, 255, .7);
  letter-spacing: .02em;
}
.magnet .phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.button {
  position: relative;
  display: table;
  margin: 22px auto 0;
  padding: 14px 26px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font: 600 1rem var(--display);
  text-decoration: none;
}
.button:hover { background: var(--blue); color: var(--white); }

.perks { position: relative; margin: 16px auto 0; color: var(--ink); font-size: .95rem; }

/* ---- Content ---- */

main { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 96px) 0 0; }

.pests h2 { margin-bottom: 28px; }

.termites {
  padding: 28px 24px 30px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
}
.termites h3 { color: var(--white); font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 900; }
.termites ul { list-style: none; margin: 8px 0 24px; padding: 0; }
.termites li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.termites h4 { margin: 0; font: 600 1.05rem/1.3 var(--display); }
.termites p { max-width: var(--measure); margin: 6px 0 0; }
.termites a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.termites a:focus-visible { outline-color: var(--white); }

.others { list-style: none; margin: 8px 0 0; padding: 0; }
.others li { padding: 20px 0; border-bottom: 1px solid #ecd1cf; }
.others li:last-child { border-bottom: 0; }
.others p { margin: 4px 0 0; color: var(--muted); max-width: var(--measure); }

@media (min-width: 760px) {
  .pests { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 48px; align-items: start; }
  .pests h2 { grid-column: 1 / -1; }
  .termites { padding: 40px 36px; }
  .others { margin: 0; }
  .others li:first-child { padding-top: 0; }
}

.about { display: grid; gap: 20px; }
.about-text p { max-width: var(--measure); margin: 0 0 14px; font-size: 1.125rem; }
.about-side { display: grid; gap: 24px; align-content: start; }
.fleet { display: block; width: 100%; height: auto; border-radius: 6px; }
.licences { margin: 0; display: grid; gap: 14px; align-content: start; }
.licences div { border-left: 3px solid var(--red); padding-left: 14px; }
.licences dt { color: var(--muted); font-size: .9rem; }
.licences dd { margin: 0; font: 1.05rem var(--digits); color: var(--ink); }

@media (min-width: 760px) {
  .about { grid-template-columns: 1.1fr 1fr; gap: 20px 48px; }
  .about h2 { grid-column: 1 / -1; }
}

/* ---- Quote form ---- */

.quote { max-width: 40rem; padding-bottom: clamp(56px, 9vw, 96px); }
.quote-intro { margin: 12px 0 0; }
#quote-form { margin-top: 28px; }

form { display: grid; gap: 18px; }
form > label, fieldset { display: grid; gap: 6px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }

input:not([type="checkbox"]), textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #b9bcd0;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: 1rem/1.4 var(--body);
}
input:not([type="checkbox"]):focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
textarea { resize: vertical; }
::placeholder { color: #8b8ea6; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }

button {
  justify-self: start;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font: 600 1rem var(--display);
  cursor: pointer;
}
button:hover { background: var(--red-deep); }
button:disabled { opacity: .6; cursor: wait; }

.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1d6b34; }
.form-status.error { color: var(--red-deep); }

/* ---- Footer: the bottom of the magnet ---- */

.small-print {
  padding: 48px var(--gutter) 40px;
  background: linear-gradient(180deg, var(--white), var(--blush));
  text-align: center;
  font-size: .95rem;
}
.small-print p { margin: 2px 0; }
.small-print a { color: var(--ink); }
.small-print .phone {
  display: inline-block;
  margin-bottom: 12px;
  font: 1.6rem var(--digits);
  color: var(--blue);
  text-decoration: none;
}

/* ---- Phones: a call button that's always in reach ---- */

.call-bar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 64px; }
  .call-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
    background: var(--red);
    color: var(--white);
    font: 600 1.05rem var(--display);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 -2px 12px rgba(26, 29, 61, .25);
  }
}
