/* Site footer: one navy field, every rule scoped under #site-footer.
   ONE grid for the whole footer: four equal columns with the same gap as the booking steps
   directly above it, so the footer's vertical edges continue the page's last grid.
     col 1    Healthy Homes logo | Super Handy lockup + copy | copyright
     col 2-3  closing headline   | two link columns          | sample-site note
     col 4    slanted CTA        | third link column         | back to top
   Every element starts exactly on its column's left edge; nothing is nudged off the grid. */
#site-footer{
  --sf-cols:repeat(4,minmax(0,1fr));
  --sf-gap:clamp(24px,3vw,44px);
  --sf-row:40px;
  --sf-top:90px;          /* height of the shared top row (plate lockup / column headings) */
  --sf-plate:72px;
  --sf-text:rgba(255,255,255,.94);   /* links and body: ~15:1 on navy */
  --sf-mute:rgba(255,255,255,.84);   /* secondary copy: ~11:1 on navy */
  --sf-rule:rgba(255,255,255,.22);
  --sf-water-lt:#7DB3FA;             /* water blue lifted for navy: ~8:1 */
  --sf-o:32px;                       /* horizontal run of the -12deg slant on the CTA */
  background:var(--navy);
  color:var(--white);
}
#site-footer :focus-visible{outline:3px solid var(--white);outline-offset:4px}
#site-footer p{margin:0}
#site-footer ul{list-style:none;margin:0;padding:0}

/* One text-link style: underline draws in from the left */
#site-footer .sf-link{
  display:inline-block;color:var(--sf-text);text-decoration:none;
  font-size:var(--fs-md);font-weight:400;line-height:1.35;padding-bottom:3px;
  background:linear-gradient(currentColor,currentColor) 0 100%/0 2px no-repeat;
  transition:color .2s var(--ease),background-size .25s var(--ease);
}
#site-footer .sf-link:hover{color:var(--white);background-size:100% 2px}
#site-footer .sf-link{position:relative}
#site-footer .sf-link::after{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:44px;transform:translateY(-50%)}
#site-footer .sf-link--water,
#site-footer .sf-link--gold{color:var(--white);font-weight:600;background-size:100% 2px}
#site-footer .sf-link--water{background-image:linear-gradient(var(--sf-water-lt),var(--sf-water-lt))}
#site-footer .sf-link--water:hover{color:var(--sf-water-lt)}
#site-footer .sf-link--gold{background-image:linear-gradient(var(--gold),var(--gold))}
#site-footer .sf-link--gold:hover{color:var(--gold)}

/* Shared grid */
#site-footer .sf-close,
#site-footer .sf-main,
#site-footer .sf-base{display:grid;grid-template-columns:var(--sf-cols);column-gap:var(--sf-gap)}

/* 1. Closing ask. A full-width hairline opens the footer where the booking band ends. */
#site-footer .sf-close{
  align-items:end;
  padding-block:clamp(52px,4.2vw,60px) clamp(44px,4vw,58px);
  border-top:1px solid var(--sf-rule);border-bottom:1px solid var(--sf-rule);
}
#site-footer .sf-hh{grid-column:1;display:block;width:min(100%,216px);line-height:0}
#site-footer .sf-hh img{display:block;width:100%;height:auto}
#site-footer .sf-close__copy{grid-column:2 / span 2}
#site-footer .sf-close__title{
  font-size:clamp(36px,3.4vw,50px);line-height:.96;letter-spacing:-.015em;color:var(--white);
}
#site-footer .sf-close__accent{display:block;color:var(--sf-water-lt)}
#site-footer .sf-close__lead{margin-top:20px;max-width:44ch;font-size:var(--fs-md);line-height:1.6;color:var(--sf-text);text-wrap:pretty}
#site-footer .sf-close__act{grid-column:4;display:flex;flex-direction:column;align-items:flex-start;gap:20px}

/* The logo's slanted band as the footer's one closing move. The parallelogram is cut to
   the column box, so its bottom-left corner sits exactly on the column edge, in line with
   the link beneath it and the column heading below. */
#site-footer .sf-tile{
  position:relative;isolation:isolate;align-self:stretch;
  display:flex;flex-direction:column;justify-content:space-between;gap:18px;
  min-height:clamp(132px,10.6vw,152px);
  padding:20px calc(var(--sf-o) + 4px) 18px calc(var(--sf-o) + 14px);
  color:var(--white);text-decoration:none;
}
#site-footer .sf-tile::before{
  content:"";position:absolute;inset:0;z-index:-1;background:var(--water);
  clip-path:polygon(var(--sf-o) 0,100% 0,calc(100% - var(--sf-o)) 100%,0 100%);
  transition:background .25s var(--ease);
}
#site-footer .sf-tile__label{font:900 italic clamp(18px,1.6vw,23px)/1.04 var(--display);text-transform:uppercase;max-width:9.5em}
#site-footer .sf-tile__arrow{align-self:flex-end;font:600 28px/1 var(--body);transition:transform .25s var(--ease)}
#site-footer .sf-tile:hover::before{background:var(--logo-blue)}
#site-footer .sf-tile:hover .sf-tile__arrow{transform:translateX(6px)}
#site-footer .sf-tile:focus-visible{outline-offset:6px}

/* 2. Master brand + three link columns. Each column opens with the same top row over one
   hairline: the Super Handy lockup in column 1, headings elsewhere, all on one baseline. */
#site-footer .sf-main{
  row-gap:48px;align-items:start;
  padding-block:clamp(32px,3vw,44px) clamp(44px,4vw,58px);
  border-bottom:1px solid var(--sf-rule);
}
#site-footer .sf-sh{grid-column:1;display:flex;flex-direction:column;align-items:flex-start}
#site-footer .sf-col:nth-of-type(1){grid-column:2}
#site-footer .sf-col:nth-of-type(2){grid-column:3}
#site-footer .sf-col:nth-of-type(3){grid-column:4}

#site-footer .sf-top-row{
  display:flex;align-items:flex-end;align-self:stretch;height:var(--sf-top);
  padding-bottom:16px;border-bottom:1px solid var(--sf-rule);margin-bottom:10px;
}
#site-footer .sf-col__title{
  margin:0;font:900 italic 17px/1 var(--display);letter-spacing:.02em;text-transform:uppercase;color:var(--white);
}

/* Lockup: the original white-backed mark on a white plate (never redrawn), with the
   company tagline stacked beside it like a sign-off, its last line on the heading baseline. */
#site-footer .sf-lockup{gap:16px}
#site-footer .sf-plate{
  flex:none;display:block;width:var(--sf-plate);height:var(--sf-plate);background:var(--white);
  line-height:0;transition:box-shadow .2s var(--ease);
}
#site-footer .sf-plate img{display:block;width:100%;height:100%;object-fit:contain}
#site-footer .sf-plate:hover{box-shadow:0 0 0 3px var(--gold)}
#site-footer .sf-tag{
  display:flex;flex-direction:column;
  font:900 italic 17px/1.12 var(--display);letter-spacing:.02em;text-transform:uppercase;color:var(--white);
}
#site-footer .sf-tag span:first-child{color:var(--gold)}
#site-footer .sf-sh__copy{
  margin-top:0;max-width:30ch;font-size:var(--fs-md);line-height:1.6;color:var(--sf-mute);text-wrap:pretty;
  padding-top:7px; /* first line sits on the same line as each column's first link */
}
#site-footer .sf-sh .sf-link--gold{margin-top:18px}

#site-footer .sf-col li{display:flex;align-items:center;min-height:var(--sf-row)}

/* 3. Legal bar on the same columns: copyright | sample-site note | back to top */
#site-footer .sf-base{
  align-items:baseline;row-gap:14px;
  padding-block:26px 34px;font-size:var(--fs-sm);line-height:1.55;color:var(--sf-mute);
}
#site-footer .sf-base__copy{grid-column:1;color:var(--sf-text)}
#site-footer .sf-base__note{grid-column:2 / span 2;display:flex;align-items:baseline;gap:14px}
#site-footer .sf-base__note-text{max-width:56ch}
#site-footer .sf-flag{
  flex:none;position:relative;isolation:isolate;padding:4px 11px 4px 10px;
  font:800 italic 11px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--white);white-space:nowrap;
}
#site-footer .sf-flag::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--navy-3);transform:skewX(var(--skew))}
#site-footer .sf-top{
  grid-column:4;justify-self:start;display:inline-flex;align-items:center;gap:10px;white-space:nowrap;
  color:var(--white);text-decoration:none;font:800 italic 13px/1 var(--display);letter-spacing:.1em;text-transform:uppercase;padding-block:6px;
  transition:color .2s var(--ease);
}
#site-footer .sf-top__arrow{font:600 16px/1 var(--body);transition:transform .2s var(--ease)}
#site-footer .sf-top:hover{color:var(--gold)}
#site-footer .sf-top:hover .sf-top__arrow{transform:translateY(-3px)}

/* Tablet (around 1006px) */
@media (max-width:1180px){
  #site-footer{--sf-top:80px;--sf-plate:62px;--sf-o:28px}
  #site-footer .sf-col .sf-link,#site-footer .sf-sh__copy,#site-footer .sf-close__lead{font-size:15px}
  #site-footer .sf-col__title,#site-footer .sf-tag{font-size:15px}
  #site-footer .sf-lockup{gap:12px}
  #site-footer .sf-hh{width:min(100%,184px)}
}
@media (max-width:900px){
  #site-footer{--sf-cols:repeat(2,minmax(0,1fr))}
  #site-footer .sf-close{row-gap:36px;align-items:start}
  #site-footer .sf-hh{grid-column:1 / -1;width:176px}
  #site-footer .sf-close__copy{grid-column:1 / -1}
  #site-footer .sf-close__act{grid-column:1 / -1;max-width:440px}
  #site-footer .sf-tile{min-height:0;flex-direction:row;align-items:center;gap:20px}
  #site-footer .sf-tile__label{max-width:none}
  #site-footer .sf-tile__arrow{align-self:center}
  #site-footer .sf-sh{grid-column:1 / -1}
  #site-footer .sf-sh__copy{max-width:40ch}
  #site-footer .sf-col:nth-of-type(1){grid-column:1}
  #site-footer .sf-col:nth-of-type(2){grid-column:2}
  #site-footer .sf-col:nth-of-type(3){grid-column:1 / -1}
  #site-footer .sf-col:nth-of-type(3) ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--sf-gap)}
  #site-footer .sf-base__note{flex-direction:column;align-items:flex-start;gap:10px}
  #site-footer .sf-base__copy,#site-footer .sf-base__note{grid-column:1 / -1}
  #site-footer .sf-top{grid-column:1}
}
/* Phone (390px) */
@media (max-width:640px){
  #site-footer{--sf-row:44px;--sf-gap:20px;--sf-o:24px;--sf-plate:64px}
  #site-footer .sf-close{padding-block:64px 52px;row-gap:30px}
  #site-footer .sf-hh{width:152px}
  #site-footer .sf-close__title{font-size:clamp(36px,10.6vw,46px)}
  #site-footer .sf-close__act{max-width:none;margin-top:80px}
  #site-footer .sf-tile{padding:20px calc(var(--sf-o) + 6px) 20px calc(var(--sf-o) + 12px)}
  #site-footer .sf-tile__label{font-size:clamp(18px,5.4vw,22px)}
  #site-footer .sf-main{padding-block:40px 72px;row-gap:40px}
  #site-footer .sf-col .sf-link,#site-footer .sf-sh__copy{font-size:var(--fs-md)}
  #site-footer .sf-col .sf-top-row{height:auto;padding-bottom:14px}
  #site-footer .sf-lockup{height:auto;gap:14px}
  #site-footer .sf-tag{font-size:16px}
  #site-footer .sf-col:nth-of-type(3) ul{display:block}
  #site-footer .sf-base{padding-block:26px 64px;row-gap:16px}
}
.page-schedule #site-footer .sf-close__act{display:none}
@media (prefers-reduced-motion:reduce){
  #site-footer .sf-link,#site-footer .sf-plate,#site-footer .sf-top,#site-footer .sf-top__arrow,
  #site-footer .sf-tile::before,#site-footer .sf-tile__arrow{transition:none}
}
