/* This site's styles. The shared layout (header, buttons, hero, sections, cards, footer…) is
   sbs-pkg's base.css, which every page loads first; add what this site does differently below.
   Colors and fonts are theme variables: the owner changes them in the CMS ("Look & feel", which
   writes theme.css); these are the defaults. */
:root {
  --abyss: #1c1917;
  --deep: #292524;
  --sea: #44403c;
  --teal: #b91c1c;
  --teal-ink: #b91c1c;
  --glow: #fca5a5;
  --sand: #fafaf9;
  --paper: #ffffff;
  --ink: #292524;
  --muted: #57534e;
  --line: #e7e5e4;
  --orange: #b91c1c;
  --radius: 8px;
  --shadow: none;
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-tracking: -0.025em;
}

/* This site's own styles go here. */

/* Move Pets: movepets.com's look — white header with the full logo, photo hero with a dark left fade */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .nav a:not(.btn) { color: #222; }
.brand-mark { width: auto; height: 56px; }
.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero {
  background: linear-gradient(109deg, rgba(0, 0, 0, .85) 0%, rgba(0, 20, 18, .15) 75%),
    url("assets/img/hero.jpg") center 35% / cover no-repeat;
  color: #fff;
}
.hero .eyebrow { color: #9fe3f7; }
.nav-toggle { color: #222; border-color: #222; }
@media (max-width: 760px) { .site-header .nav { background: #fff; } }
/* the Tally quote form on /quote/; shortcut: fixed height, Tally scrolls inside on a longer page (page text
   can't load tally.so/widgets/embed.js, which sizes it to fit; that needs a content/_layout.html) */
.quote-form { display: block; width: 100%; height: 1300px; max-height: calc(100vh - 120px); min-height: 560px; border: 0; }

/* Photos behind text, where movepets.com has them: white text over a dark overlay (--shade) on a photo (--photo) */
html { overflow-x: clip; } /* the full-width layers below reach past the text column */
#services .card { background: var(--shade, linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55))), var(--photo) center / cover; border: 0; }
#services .card:nth-child(1) { --photo: url("assets/img/family.jpg"); }
#services .card:nth-child(2) { --photo: url("assets/img/posts/dog-car.jpg"); }
#services .card:nth-child(3) { --photo: url("assets/img/domestic-dogs.jpg"); }
#approach { background: linear-gradient(92deg, rgba(0, 0, 0, .8) 38%, rgba(0, 0, 0, .1) 78%), url("assets/img/autumn-dog.jpg") center / cover; }
#contact { background: linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .78)), url("assets/img/posts/pets.jpg") center / cover; }
:is(#services .card, #approach, #contact, .band) :is(h1, h2, h3, p, li, .eyebrow, .lede, a:not(.btn)) { color: #fff; }

/* full width: the photo spans the window while the text stays in its column. Pages have no class of
   their own, so the header photo is chosen by the page's canonical address. */
.band { position: relative; isolation: isolate; padding-block: 48px; }
.band { margin-block: 40px; }
.band::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: var(--shade, linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7))), var(--photo) center / cover;
}
.band-departing { --photo: url("assets/img/bg/departing.jpg"); }
.band-questions { --photo: url("assets/img/bg/questions.jpg"); }
.band-quote, .band-domestic-quote { --shade: linear-gradient(90deg, rgba(4, 7, 43, .8), rgba(3, 5, 29, .4)); }
.band-quote { --photo: url("assets/img/bg/quote-band.jpg"); }
.band-domestic-quote { --photo: url("assets/img/bg/domestic.jpg"); }
html:has(link[rel=canonical]:is([href$="/about-us/"], [href$="/international/"], [href$="/domestic/"])) .article-head { position: relative; isolation: isolate; padding-block: 56px; margin-top: calc(-1 * clamp(32px, 6vw, 64px)); } /* flush under the menu: cancels .article's top padding */
html:has(link[rel=canonical]:is([href$="/about-us/"], [href$="/international/"], [href$="/domestic/"])) .article-head :is(h1, p) { color: #fff; }
html:has(link[rel=canonical]:is([href$="/about-us/"], [href$="/international/"], [href$="/domestic/"])) .article-head::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: var(--shade, linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6))), var(--photo) center / cover;
}
html:has(link[rel=canonical][href$="/about-us/"]) .article-head { --photo: url("assets/img/bg/about.jpg"); }
html:has(link[rel=canonical][href$="/international/"]) .article-head { --photo: url("assets/img/bg/international.jpg"); }
html:has(link[rel=canonical][href$="/domestic/"]) .article-head { --photo: url("assets/img/bg/domestic.jpg"); --shade: linear-gradient(rgba(40, 76, 170, .78), rgba(3, 5, 29, .7)); }
/* a tall photo (the corgi) shouldn't fill the screen */
.article-hero img { max-height: 520px; object-fit: cover; }
/* phones: the text spans the photo, so darken all of it instead of fading from the left */
@media (max-width: 760px) {
  .hero { background: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), url("assets/img/hero.jpg") 70% center / cover no-repeat; }
  #approach { background: linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .68)), url("assets/img/autumn-dog.jpg") 65% center / cover; }
}
