/* Bubbles On Wheels — static site styles
   Design: square corners throughout (the "we don't cut corners" pun). Raise --r and --r-sm below to round things off. */

:root {
  --ink: #3d2c66;        /* text and outlines (soft plum) */
  --ink-2: #5a3f98;      /* links */
  --purple: #6f48b3;     /* large purple blocks: dark sections, footer, selected tab */
  --pink: #f08bc0;       /* accent: underlines, hero shadow, bubbles */
  --pink-soft: #ffe3f0;  /* blush background */
  --blue-soft: #dcefff;  /* light blue background */
  --lilac: #efe6fb;      /* pale purple background */
  --foam: #f5faff;       /* page background (very light blue) */
  --white: #ffffff;
  --lemon: #ffd23f;
  --slate: #5d5878;
  --line: #e3d6f0;

  --r: 0;         /* corner radius (square corners) */
  --r-sm: 0;      /* small corner radius (square corners) */
  --wrap: 1120px;

  --font-display: "Plus Jakarta Sans", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--ink-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--lemon); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6.6vw, 4.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--lemon); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 700; border-radius: 0 var(--r-sm) 0 0;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px;
}
.brand-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pink);
  background: var(--pink-soft); flex: none;
}
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 14px; text-decoration: none; color: var(--ink);
  font-weight: 500; border-bottom: 3px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--pink); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.nav-toggle {
  display: none; background: var(--purple); color: var(--white); border: 0; padding: 10px 16px;
  font: 600 1rem var(--font-body); border-radius: 0 var(--r-sm) 0 0; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; font: 700 1rem var(--font-body); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 0 var(--r-sm) 0 0; cursor: pointer; line-height: 1.2;
  background: var(--lemon); color: var(--ink);
}
.btn:hover { background: var(--purple); color: var(--white); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--purple); color: var(--white); }
.on-ink .btn { border-color: var(--lemon); }
.on-ink .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.on-ink .btn--ghost { color: var(--white); border-color: var(--white); background: transparent; }
.on-ink .btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--white { background: var(--white); }
.section--soft { background: var(--pink-soft); }
.section--blue { background: var(--blue-soft); }
.section--ink { background: var(--purple); color: var(--white); }
.section--ink a { color: var(--lemon); }
.section--ink p { color: #f3ebff; }
.lede { font-size: 1.2rem; color: var(--slate); }
.section--ink .lede { color: #f3ebff; }

/* ---------- Corner motif ---------- */
.frame { overflow: hidden; border-radius: 0 var(--r) 0 0; background: var(--blue-soft); }
.frame--sm { border-radius: 0 var(--r-sm) 0 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-soft); padding-block: clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .35em; }
.hero p.lede { max-width: 46ch; margin-bottom: 1.6em; }
.hero .frame { aspect-ratio: 1 / 1.05; box-shadow: 14px 14px 0 var(--pink); }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bubbles span {
  position: absolute; border-radius: 50%; border: 3px solid var(--pink); opacity: 0;
  animation: rise 9s ease-out 1 forwards;
}
.bubbles span:nth-child(1) { width: 90px; height: 90px; left: 4%; bottom: -100px; animation-delay: .2s; }
.bubbles span:nth-child(2) { width: 46px; height: 46px; left: 38%; bottom: -60px; animation-delay: 1.4s; }
.bubbles span:nth-child(3) { width: 130px; height: 130px; left: 55%; bottom: -140px; animation-delay: .7s; }
.bubbles span:nth-child(4) { width: 30px; height: 30px; left: 90%; bottom: -40px; animation-delay: 2.2s; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .55; }
  100% { transform: translateY(-110vh); opacity: 0; }
}

/* ---------- Page heading (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); background: var(--lilac); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); margin-bottom: .2em; }
.page-head p { color: var(--slate); font-size: 1.2rem; margin: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }

/* ---------- Service cards (home) ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 0 var(--r-sm) 0 0; overflow: hidden; display: flex; flex-direction: column; }
.card .frame { border-radius: 0; aspect-ratio: 4 / 3; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { color: var(--slate); margin: 0; font-size: 1rem; }

/* ---------- Service rows (services page) ---------- */
.service-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(28px, 5vw, 52px); border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.service-row:nth-child(even) .frame { order: 2; }
.service-row .frame { aspect-ratio: 4 / 3; }
.service-row p { color: var(--slate); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: 0 var(--r-sm) 0 0; overflow: hidden; margin: 0; }
.quote .frame { border-radius: 0; aspect-ratio: 3 / 2; }
.quote figcaption, .quote blockquote { padding: 0 24px; }
.quote h3 { padding: 22px 24px 0; margin: 0 0 .3em; }
.quote blockquote { margin: 0; padding-bottom: 26px; color: var(--slate); }
.quote blockquote p { margin: 0; }
.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; font-weight: 500; max-width: 28ch; margin: 0 0 .6em; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 20px; }
.gallery .frame { break-inside: avoid; margin: 0 0 20px; border-radius: 0 var(--r-sm) 0 0; }
.gallery img { height: auto; }

/* ---------- Owner ---------- */
.owner-sign { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin: .2em 0 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.phone-link { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 600; text-decoration: none; color: var(--ink); }
.phone-link:hover { text-decoration: underline; }
.form { display: grid; gap: 18px; background: var(--white); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 0 var(--r) 0 0; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 0; background: var(--foam); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.socials a { display: inline-block; padding: 8px 16px; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 0 var(--r-sm) 0 0; }
.socials a:hover { background: var(--purple); color: var(--white); }

/* ---------- Quote page tabs ---------- */
.tabs { display: flex; gap: 0; margin-bottom: 0; }
.tab {
  font: 700 1.05rem var(--font-body); padding: 14px 28px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer;
}
.tab + .tab { border-left: 0; }
.tab[aria-selected="true"] { background: var(--purple); color: var(--white); }
.tab:first-child { border-radius: 0; }
.tab:last-child { border-radius: 0 var(--r-sm) 0 0; }
.tab-panel { border: 2px solid var(--ink); background: var(--white); padding: clamp(16px, 3vw, 32px); border-radius: 0 var(--r) 0 0; margin-top: -2px; }
.tab-panel[hidden] { display: none; }
.tab-panel .intro { color: var(--slate); }
/* Jobber embed sizing (from the original site) */
.jobber-wrap [id^="94557717"], .jobber-wrap iframe { min-height: 1000px; }
@media (max-width: 768px) { .jobber-wrap [id^="94557717"], .jobber-wrap iframe { min-height: 1200px; } }

/* ---------- Careers ---------- */
.embed-frame { border: 2px solid var(--ink); border-radius: 0 var(--r) 0 0; overflow: hidden; background: var(--white); }
.embed-frame iframe { width: 100%; min-height: 900px; border: 0; display: block; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal-toc { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: #f3ebff; padding-block: 56px 28px; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-size: 1.3rem; color: var(--white); margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer p { color: #f3ebff; margin-bottom: .4em; }
.legal-line { border-top: 1px solid rgba(255,255,255,.3); margin-top: 40px; padding-top: 20px; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split, .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .frame { order: 0; }
  .hero .frame { max-width: 460px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--white); border-bottom: 1px solid var(--line); z-index: 20; }
  .site-nav.is-open { display: block; }
  .site-header { position: relative; }
  .nav-list { flex-direction: column; padding: 12px 20px 20px; gap: 0; }
  .nav-list a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}

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

/* Nav "Get a quote" button (kept after .nav-list a so the button look wins) */
.nav-list a.btn { padding: 10px 20px; border: 2px solid var(--ink); margin-left: 8px; font-weight: 700; }
.nav-list a.btn:hover { background: var(--purple); color: var(--white); border-color: var(--purple); }
@media (max-width: 860px) { .nav-list a.btn { margin: 14px 0 0; text-align: center; } }

/* Buttons inside dark sections: beat the generic ".section--ink a" link color */
.section--ink a.btn { color: var(--ink); }
.section--ink a.btn:hover { color: var(--ink); }
.section--ink a.btn--ghost { color: var(--white); }
.section--ink a.btn--ghost:hover { color: var(--ink); }

/* Hero artwork: transparent logo, no frame, no shadow */
.hero-art { justify-self: center; width: 100%; max-width: 520px; }
.hero-art img { width: 100%; height: auto; display: block; }

/* Modern type tuning for Plus Jakarta Sans */
h2, h3, h4 { letter-spacing: -0.02em; }
.page-head h1 { letter-spacing: -0.035em; }
.brand { font-weight: 800; letter-spacing: -0.02em; }

/* =====================================================================
   WordPress additions: menu, block-editor content, admin bar
   ===================================================================== */

/* ---- Menu (WordPress output) ---- */
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: var(--ink); font-weight: 700; }
.site-nav .nav-cta { margin-left: 8px; padding: 10px 20px; white-space: nowrap; }
@media (min-width: 861px) {
  .site-nav { display: flex; align-items: center; gap: 4px; }
}
@media (max-width: 860px) {
  .site-nav .nav-cta { display: block; margin: 0 20px 20px; text-align: center; }
}

/* ---- Block content: reset WordPress defaults that fight the design ---- */
.entry-content > * { margin-block: 0; }
.entry-content .wp-block-group,
.entry-content .wp-block-columns,
.entry-content .wp-block-column { margin: 0; padding: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; }
.entry-content .wp-block-group.section { padding-block: clamp(56px, 9vw, 104px); }
.entry-content .wp-block-group.hero { padding-block: clamp(48px, 8vw, 96px); }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 0; }
.entry-content .wrap > :last-child { margin-bottom: 0; }

/* Layout helpers applied through the block "Additional CSS class" field */
.wp-block-columns.split,
.wp-block-columns.hero-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px) !important;
  align-items: center;
}
.wp-block-columns.hero-grid { grid-template-columns: 1.15fr .85fr; }
.wp-block-columns.split.split--top { align-items: start; }
.wp-block-columns.split > .wp-block-column,
.wp-block-columns.hero-grid > .wp-block-column { flex-basis: auto !important; min-width: 0; }

.wp-block-group.grid,
.wp-block-group.quotes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.wp-block-group.card,
.wp-block-group.quote { display: flex; flex-direction: column; }
.wp-block-group.card-body { padding: 22px 24px 26px; }
.wp-block-group.card-body h3 { margin-bottom: .3em; }
.wp-block-group.card-body p { color: var(--slate); margin: 0; font-size: 1rem; }
.wp-block-group.quote > h3 { padding: 22px 24px 0; margin: 0 0 .3em; }
.wp-block-group.quote > p { padding: 0 24px 26px; margin: 0; color: var(--slate); }

/* Services page rows (a Columns block with class "service-row") */
.wp-block-columns.service-row {
  display: grid !important;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 5vw, 64px) !important;
  align-items: center;
  padding-block: clamp(28px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.wp-block-columns.service-row:last-child { border-bottom: 0; }
.wp-block-columns.service-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
.wp-block-columns.service-row:nth-child(even) > .wp-block-column:first-child { order: 2; }
.wp-block-columns.service-row > .wp-block-column { flex-basis: auto !important; min-width: 0; }
.service-row p { color: var(--slate); }
.service-row .frame { aspect-ratio: 4 / 3; }

/* Hero */
.hero-art { justify-self: center; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-art img { width: 100%; height: auto; display: block; }
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 3px solid var(--pink); opacity: 0; pointer-events: none;
  animation: rise 9s ease-out 1 forwards;
}
.hero::before { width: 90px; height: 90px; left: 4%; bottom: -100px; animation-delay: .2s; }
.hero::after { width: 130px; height: 130px; left: 55%; bottom: -140px; animation-delay: .8s; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wp-block-columns.hero-grid { display: grid !important; }

/* Gallery (a Group with class "gallery" holding Image blocks) */
.wp-block-group.gallery { columns: 3 260px; column-gap: 20px; }
.wp-block-group.gallery .wp-block-image { break-inside: avoid; margin: 0 0 20px; }
.wp-block-group.gallery img { height: auto; width: 100%; }

/* Legal text (Privacy page) */
.wp-block-group.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.wp-block-group.legal h3 { font-size: 1.2rem; margin-top: 1.4em; }
.wp-block-group.legal ul { padding-left: 1.2em; }
.wp-block-group.legal li { margin-bottom: .5em; }
.wp-block-group.legal { max-width: 760px; }

/* Big pull quote and owner signature */
p.big-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.25; font-weight: 600; max-width: 28ch; margin: 0 0 .6em; }
p.owner-sign { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: .2em 0 0; }

/* ---- Buttons (the Buttons block) ---- */
.wp-block-buttons.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.wp-block-button .wp-block-button__link {
  display: inline-block; padding: 14px 26px; font: 700 1rem var(--font-body); text-decoration: none; line-height: 1.2;
  border: 2px solid var(--ink); border-radius: 0; background: var(--lemon); color: var(--ink);
}
.wp-block-button .wp-block-button__link:hover { background: var(--purple); color: var(--white); border-color: var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--purple); color: var(--white); }
.section--ink .wp-block-button .wp-block-button__link { color: var(--ink); border-color: var(--lemon); background: var(--lemon); }
.section--ink .wp-block-button .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.section--ink .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--white); border-color: var(--white); }
.section--ink .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--white); color: var(--ink); }

/* ---- Contact page extras ---- */
.contact-extra { margin-top: 2em; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .wp-block-columns.split,
  .wp-block-columns.hero-grid,
  .wp-block-columns.service-row,
  .wp-block-columns.service-row:nth-child(even) { grid-template-columns: 1fr !important; }
  .wp-block-columns.service-row:nth-child(even) > .wp-block-column:first-child { order: 0; }
}

/* Keep the sticky-free header from sitting under the WordPress admin bar */
.admin-bar .site-nav { top: 108px; }
@media (min-width: 861px) { .admin-bar .site-nav { top: auto; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { display: none; } }

/* The hero wrapper now holds one Columns block, so it must not be a grid itself */
.hero .wrap { display: block; }

/* Re-center the content wrapper (the reset above zeroes group margins) */
.entry-content .wp-block-group.wrap { margin-inline: auto; width: min(100% - 40px, var(--wrap)); }

@media (max-width: 480px) { .brand { font-size: 1.2rem; } }

/* Header logo mark: three outlined bubbles */
.brand-mark { flex: none; width: 44px; height: auto; color: var(--ink); }
@media (max-width: 480px) { .brand-mark { width: 36px; } }
