/* Maverick Exterminator Pro
   Recreates the original Squarespace 7.1 / Fluid Engine styling:
   type scale, 24-column grid (8 on mobile), header, accordion, forms, footer. */

:root {
  --gray: #dcdcdc;
  --black: #000;
  --white: #fff;
  --offwhite: #fafafa;
  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Squarespace fluid type unit: 1.2vw on desktop, 1.2vh (capped) on mobile */
  --u: 1.2vw;
  --header-h: calc(61px + 6.4vw);
  --ease-sq: cubic-bezier(.4, 0, .2, 1);
}
@media (max-width: 767px) {
  :root { --u: min(1.2vh, 10.8px); --header-h: 82px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--body); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Type ---------- */
/* Margins are bottom-only so stacked text inside flex blocks spaces like Squarespace's collapsed margins */
h1, h2, h3 { font-family: var(--head); font-weight: 500; letter-spacing: -.02em; margin: 0 0 2rem; }
h1 { font-size: calc(3 * var(--u) + 1rem); line-height: 1.056; }
h2 { font-size: calc(1.8 * var(--u) + 1rem); line-height: 1.1136; }
h3 { font-size: calc(1.2 * var(--u) + 1rem); line-height: 1.1424; }
p { margin: 0 0 1rem; }
.large { font-size: calc(.4 * var(--u) + 1rem); line-height: 1.5; }
.tc { text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--black); color: var(--offwhite);
  font-family: var(--body); font-size: 16px; font-weight: 400; line-height: normal;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 1.2em 2em; border: 0; border-radius: 300px; cursor: pointer;
  transition: opacity .1s linear;
}
.btn:hover { opacity: .8; }
.btn:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.btn.fill { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; width: 100%; padding: 0 1em; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%); transition: transform .2s var(--ease-sq); }
.skip:focus { transform: none; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.header-dropshadow { position: absolute; inset: 0; box-shadow: 0 12px 12px var(--black); opacity: .15; pointer-events: none; transition: opacity .4s var(--ease-sq); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 3.2vw 4vw; }
.logo { display: block; flex: none; }
.logo img { height: 61px; width: auto; }
.nav { display: flex; align-items: center; gap: 2vw; }
.nav a:not(.btn) { font-size: 16px; line-height: 1.5; text-decoration: none; padding-bottom: .1em; }
.nav a[aria-current="page"] { background: linear-gradient(currentColor, currentColor) 0 calc(100% - .1em) / 100% 1px no-repeat; }
.burger { display: none; position: relative; width: 47px; height: 37px; margin-right: -6px; padding: 0; background: none; border: 0; cursor: pointer; }
.bun { position: absolute; left: 6px; top: 18px; width: 35px; height: 1px; background: var(--black); transition: transform .25s cubic-bezier(.2, .6, .3, 1); }
.bun.top { transform: translateY(-5.5px); }
.bun.bottom { transform: translateY(5.5px); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 9; background: var(--gray);
  display: none; flex-direction: column; align-items: center;
  padding: var(--header-h) 6vw 8vw; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: visibility .6s var(--ease-sq), opacity .4s var(--ease-sq);
}
.menu-nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7em; font-size: 8.5vw; padding: 4vw 0; }
.menu-nav a { text-decoration: none; line-height: 1; }
.menu-nav a[aria-current="page"] { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: .08em; }
.menu-cta { font-size: 1.2rem; min-width: 210px; padding: 1.2em 2em; }

@media (max-width: 767px) {
  .header-inner { padding: 26px 6vw; }
  .logo img { height: 30px; }
  .nav { display: none; }
  .burger { display: block; }
  .menu { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { position: fixed; }
  body.menu-open .header-dropshadow { opacity: 0; }
  body.menu-open .menu { opacity: 1; visibility: visible; }
  body.menu-open .bun.top { transform: rotate(45deg); }
  body.menu-open .bun.bottom { transform: rotate(-45deg); }
}

/* ---------- Sections + Fluid Engine grid ---------- */
.sec { position: relative; background: var(--white); }
.sec.gray { background: var(--gray); }
.sec.first { padding-top: var(--header-h); }
.sec.pad { padding: 3.3vmax 0; }

.fe {
  --cw: min(92vw, 1500px);
  position: relative; display: grid; gap: 11px;
  grid-template-columns: minmax(calc(4vw - 11px), 1fr) repeat(24, minmax(0, calc((1500px - 253px) / 24))) minmax(calc(4vw - 11px), 1fr);
  grid-template-rows: repeat(var(--rows), minmax(calc(var(--cw) * .0215), auto));
}
.blk { grid-area: var(--a); position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: var(--v, flex-start); }
.blk > :first-child { margin-top: 0; }
.blk > :last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .fe {
    --cw: 88vw;
    grid-template-columns: minmax(calc(6vw - 11px), 1fr) repeat(8, minmax(0, calc((1500px - 77px) / 8))) minmax(calc(6vw - 11px), 1fr);
    grid-template-rows: repeat(var(--mrows), minmax(24px, auto));
  }
  .blk { grid-area: var(--m); justify-content: var(--mv, flex-start); }
}

/* Image blocks fill their grid area, like Squarespace image blocks */
.blk.media { overflow: hidden; }
.blk.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
html.js img.fade { opacity: 0; transition: opacity .6s var(--ease-sq); }
html.js img.fade.loaded { opacity: 1; }

/* ---------- Accordion ---------- */
.acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.acc-item { border-bottom: 1px solid var(--black); }
.acc-h { margin: 0; font-size: calc(1.2 * var(--u) + 1rem); line-height: 1.1424; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: inherit; color: inherit;
}
.acc-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.plus { position: relative; flex: none; width: 24px; height: 24px; }
.ph, .pv { position: absolute; left: 0; top: 50%; width: 24px; height: 3px; margin-top: -1.5px; background: var(--black); transition: transform .25s; }
.pv { transform: rotate(90deg); }
.acc-item.open .pv { transform: rotate(0deg); }
.acc-dd { overflow: hidden; }
.acc-dd p { margin: 0; padding: 0 0 30px; max-width: 300px; font-size: .9rem; line-height: 1.5; }

/* ---------- Forms ---------- */
.sq-form { font-size: 16px; }
.sq-form fieldset { border: 0; padding: 0; min-width: 0; }
.f-field { display: block; margin: 0 0 20px; }
.f-title { display: block; padding: 0 0 4px; font-size: 16px; line-height: 24px; }
.f-cap { display: block; padding: 4px 0 0; font-size: .9rem; line-height: 24px; }
.req { font-size: .9rem; opacity: .7; }
.f-row { display: flex; gap: 10px; }
.f-row > label { flex: 1; min-width: 0; display: block; }
.sq-form input[type=text], .sq-form input[type=email], .sq-form input[type=date], .sq-form input[type=time], .sq-form textarea {
  display: block; width: 100%; margin: 0; padding: 8px 15px;
  font: inherit; font-size: 16px; line-height: 24px; color: var(--black);
  background: transparent; border: 1px solid var(--black); border-radius: 300px;
  -webkit-appearance: none; appearance: none;
  transition: background-color .15s cubic-bezier(.33, 1, .68, 1), box-shadow .15s cubic-bezier(.33, 1, .68, 1);
}
.sq-form input.short { width: 200px; max-width: 100%; height: 44px; }
.sq-form textarea { min-height: 100px; resize: vertical; border-radius: 24px; }
.sq-form input:hover, .sq-form textarea:hover, .sq-form input:focus, .sq-form textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--black); }
.f-row label + label { margin-top: 0; }
.f-row .f-cap + input { margin-top: 0; }
.f-check { display: flex; align-items: center; gap: 15px; margin: -14px 0 25px; font-size: .9rem; line-height: 20px; text-transform: uppercase; cursor: pointer; }
.f-check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--black); border-radius: 4px; background: transparent center / 12px no-repeat; cursor: pointer; transition: background-color .15s; }
.f-check input:checked { background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E"); }
.f-check input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.f-hint { display: block; margin-top: 4px; padding-bottom: 4px; font-size: .9rem; line-height: 27px; }
.f-btn { text-align: left; }
.f-btn.center { text-align: center; }
.f-note { margin: 12px 0 0; font-size: .9rem; min-height: 0; }
.f-note:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--gray); padding: 3.3vmax 0; overflow: hidden; }
.site-footer .ft-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.site-footer .fe { z-index: 1; --rows: 11; }
.ft-name { margin: 0; font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.ft-mail { margin: 0; text-align: right; font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.ft-mail a { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.ft-phone { margin: 0; }
.ft-phone a { text-decoration: none; }
.nl { text-align: center; }
.nl-h { margin: 0 0 16px; font-size: calc(1.2 * var(--u) + 1rem); line-height: 1.1424; }
.nl > p { margin: 0 0 40px; }
.nl-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 10px; }
.nl input[type=email] {
  display: block; width: 280px; max-width: 100%; margin: 0;
  padding: 1.4em 2em; font: inherit; font-size: 16px; line-height: normal; color: var(--black);
  background: var(--white); border: 1px solid rgba(0, 0, 0, .12); border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .15s;
}
.nl input[type=email]:focus { outline: none; border-color: var(--black); }
.nl .btn { padding: 1.4em 2em; }
.nl .nl-foot { margin: 40px 0 0; font-size: .9rem; }
.nl .f-note { margin-top: 12px; }
@media (max-width: 767px) {
  .site-footer .fe { --mrows: 21; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (max-width: 767px) {
  /* keep the footer arches gentle on narrow screens instead of stretching them */
  .site-footer .ft-bg { width: 320%; left: -110%; }
}
