/* Cleaning Key West — styles
   Palette pulled from the logo: bubble blue, key lime, palm green, broom gold. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #10333a;
  --ink-soft: #46616a;
  --shell: #fafcf7;
  --white: #ffffff;
  --foam: #eaf7fd;
  --lime-wash: #f1f7e3;
  --line: #dbe6df;

  --blue: #33baec;
  --blue-deep: #0a6c93;
  --lime: #96bc32;
  --green: #31ab5f;
  --green-deep: #1e7a43;
  --gold: #febd0f;
  --sign: #006f3c;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --radius-lg: 28px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; font-stretch: 92%; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 700 1.0625rem/1 var(--body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-green { background: var(--green-deep); color: var(--white); }
.btn-green:hover { background: var(--ink); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 252, 247, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:not(.btn):hover { color: var(--green-deep); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .brand img { height: 40px; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--shell); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav .btn { margin-top: 16px; min-height: 52px; font-size: 1.0625rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--foam) 0%, transparent 70%),
    var(--shell);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6rem);
  font-weight: 800;
  font-stretch: 84%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.35em;
}
.lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.assurances { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 1rem; }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before {
  content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.hero-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--foam);
  border: 8px solid var(--white);
  box-shadow: 0 30px 60px -30px rgba(16, 51, 58, 0.45);
  transform: rotate(-1.5deg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .photo-frame { transform: none; } }
.hero-photo figcaption {
  position: relative; z-index: 2;
  margin: -26px auto 0; width: fit-content; max-width: 90%;
  background: var(--ink); color: var(--white);
  font-size: 0.95rem; font-weight: 600; padding: 10px 18px; border-radius: 999px; text-align: center;
}

/* Bubbles from the logo — the one orchestrated motion on the page */
.bubbles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 14%, transparent 15%), var(--blue);
  opacity: 0; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) forwards;
}
.bubbles span:nth-child(1) { width: 74px; height: 74px; left: -34px; bottom: 70px; animation-delay: .15s; }
.bubbles span:nth-child(2) { width: 46px; height: 46px; left: -52px; bottom: 160px; animation-delay: .3s; }
.bubbles span:nth-child(3) { width: 30px; height: 30px; left: -18px; bottom: 228px; animation-delay: .45s; }
.bubbles span:nth-child(4) { width: 20px; height: 20px; left: -40px; bottom: 286px; animation-delay: .6s; }
.bubbles span:nth-child(5) { width: 54px; height: 54px; right: -24px; top: 34px; animation-delay: .5s; background: radial-gradient(circle at 32% 30%, #fff 0 14%, transparent 15%), var(--lime); }
.bubbles span:nth-child(6) { width: 24px; height: 24px; right: 30px; top: -6px; animation-delay: .7s; background: radial-gradient(circle at 32% 30%, #fff 0 14%, transparent 15%), var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubbles span { animation: none; opacity: 1; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 440px; margin-top: 8px; }
  .bubbles span:nth-child(1) { left: -16px; width: 52px; height: 52px; bottom: 90px; }
  .bubbles span:nth-child(2) { left: -20px; }
  .bubbles span:nth-child(3) { left: 4px; }
  .bubbles span:nth-child(4) { left: -6px; }
  .bubbles span:nth-child(5) { right: -10px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--ink-soft); font-size: 1.2rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.service { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); position: relative; }
.service-home { background: var(--foam); }
.service-biz { background: var(--lime-wash); }
.service-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.service-home .service-icon { color: var(--blue-deep); }
.service-biz .service-icon { color: var(--green-deep); }
.service h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-stretch: 92%; }
.service > p { color: var(--ink-soft); max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { padding: 10px 0 10px 34px; border-top: 1px solid rgba(16, 51, 58, 0.12); position: relative; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.service-home .checks li::before { background-color: var(--blue-deep); }
.freq { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.freq span { background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; font-weight: 600; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Service area: Overseas Highway ---------- */
.area { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.area .section-head p { color: #b8cfd3; }
.area a { color: var(--white); }

.highway {
  --span: 31;
  list-style: none; margin: 0; padding: 0;
  position: relative; height: 312px;
}
/* water on both sides of the road */
.highway::before {
  content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 128px; height: 44px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 50px) center / 100% 3px no-repeat,
    #2a4b52;
  border-top: 3px solid #e7efe9; border-bottom: 3px solid #e7efe9;
}
.highway li {
  position: absolute; left: calc(var(--mm) / var(--span) * (100% - 60px));
  width: 60px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.highway li:nth-child(1) { --mm: 0; }
.highway li:nth-child(2) { --mm: 5; }
.highway li:nth-child(3) { --mm: 10; }
.highway li:nth-child(4) { --mm: 17; }
.highway li:nth-child(5) { --mm: 22; }
.highway li:nth-child(6) { --mm: 25; }
.highway li:nth-child(7) { --mm: 27; }
.highway li:nth-child(8) { --mm: 31; }
.highway li:nth-child(odd) { bottom: 184px; }
.highway li:nth-child(even) { top: 178px; flex-direction: column-reverse; }

.sign {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 66px; border-radius: 6px;
  background: var(--sign); color: var(--white);
  border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--sign);
  font: 800 1.6rem/1 var(--display); font-stretch: 80%;
}
.sign small { font: 700 0.62rem/1 var(--body); letter-spacing: 0.08em; margin-bottom: 4px; }
.highway li::after {
  content: ""; width: 3px; height: 24px; background: #9fb4b8; order: 1;
}
.highway li:nth-child(even)::after { order: 1; }
.town {
  white-space: nowrap; font-weight: 700; font-size: 1.05rem; order: -1; margin-bottom: 10px;
}
.highway li:nth-child(even) .town { order: -1; margin: 10px 0 0; }

@media (max-width: 860px) {
  .highway { height: auto; padding-left: 8px; }
  .highway::before {
    left: 34px; right: auto; top: 0; bottom: 0; height: auto; width: 22px;
    background: repeating-linear-gradient(180deg, var(--gold) 0 18px, transparent 18px 34px) center / 3px 100% no-repeat, #2a4b52;
    border: 0; border-left: 3px solid #e7efe9; border-right: 3px solid #e7efe9;
  }
  .highway li, .highway li:nth-child(odd), .highway li:nth-child(even) {
    position: relative; left: auto; top: auto; bottom: auto; width: auto;
    flex-direction: row; align-items: center; gap: 0; padding: 10px 0;
  }
  .highway li::after { display: none; }
  .sign { width: 48px; height: 58px; font-size: 1.4rem; position: relative; z-index: 1; margin-left: 8px; }
  .town, .highway li:nth-child(even) .town { order: 2; margin: 0 0 0 22px; font-size: 1.15rem; }
}

/* ---------- Eco ---------- */
.eco { background: var(--lime-wash); }
.eco-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.eco-grid > div > p { color: var(--ink-soft); font-size: 1.2rem; max-width: 30em; }
.eco-points { margin: 0; display: grid; gap: 0; }
.eco-points > div { padding: 22px 0; border-top: 2px solid var(--lime); }
.eco-points > div:last-child { border-bottom: 2px solid var(--lime); }
.eco-points dt { font: 700 1.3rem/1.2 var(--display); margin-bottom: 6px; }
.eco-points dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .eco-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--ink);
  font: 800 1.5rem/1 var(--display);
}
.steps li:nth-child(2)::before { background: var(--lime); }
.steps li:nth-child(3)::before { background: var(--gold); }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 4px 0 0 76px; min-height: 60px; }
}

/* ---------- Story ---------- */
.story { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.story-grid h2 { position: sticky; top: 110px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-stretch: 86%; }
.story-copy { max-width: 36em; font-size: 1.2rem; }
.signature { font: 700 1.4rem/1.2 var(--display); color: var(--green-deep); margin-top: 1.6em; }
.signature::before { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin-bottom: 14px; border-radius: 2px; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-grid h2 { position: static; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--foam); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.review { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px 28px; display: flex; flex-direction: column; }
.review::before { content: "\201C"; font: 800 4.5rem/0.6 var(--display); color: var(--lime); height: 34px; }
.review blockquote { margin: 0 0 20px; font-size: 1.1rem; flex: 1; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-info > p { color: #b8cfd3; font-size: 1.2rem; max-width: 26em; }
.contact-phone {
  display: inline-block; margin: 12px 0 6px;
  font: 800 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); font-stretch: 86%;
  color: var(--white); text-decoration: none; letter-spacing: -0.01em;
}
.contact-phone:hover { color: var(--lime); }
.contact-email { display: inline-block; color: var(--blue); font-weight: 600; font-size: 1.15rem; }
.contact-email:hover { color: var(--white); }
.hours { margin: 0; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: #b8cfd3; }

.contact-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 28px;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card .hours { max-width: none; }
.contact-card .hours div { border-top-color: var(--line); }
.contact-card .hours dd { color: var(--ink-soft); }
.contact-card .checks { margin: 0; }
.contact-card .checks li { border-top-color: var(--line); }
.contact-block + .contact-block { padding-top: 28px; border-top: 2px solid var(--lime); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b262b; color: #b8cfd3; padding: 56px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 56px; height: 56px; background: var(--white); border-radius: 14px; padding: 6px; }
.footer-brand p { margin: 0; }
.footer-name { font: 700 1.25rem/1.2 var(--display); color: var(--white); }
.site-footer nav, .footer-contact { display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-base { padding-top: 22px; font-size: 0.9rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 252, 247, 0.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: 76px; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.nf-logo { width: 280px; margin: 0 auto 40px; }
.nf-title { font-size: clamp(2.4rem, 6vw, 4rem); font-stretch: 86%; }
.notfound p { color: var(--ink-soft); max-width: 30em; margin: 0 auto 28px; }
