/* Site footer, option B "Three facts" (Camille 22 Oct 2026: "redesign FOOTER", chose B from site/review/footer/). One shared
   footer on every page: the emblem and wordmark, then three answers on the 1120px rail (Enquiries, Developed by, Floreat) as
   gold serif heads, the pages as one serif line under the names the header uses, then the legal line. Darker olive ground.
   The old footer's grid, columns and reveal (styles.css .site-footer) are reset here; its link hover hairline is kept.
   Phone: the three facts stack, every link a full height tap row. */
html body footer.site-footer.sf {
  display:block; grid-template-columns:none; gap:0;
  padding:88px 0 40px; background:var(--sable-green,#3D3A28); color:var(--chalk,#F2EFE7);
  font:400 15px/1.55 var(--sans,"DM Sable",Arial,sans-serif); opacity:1; transform:none;
}
.site-footer.sf .sf-in { width:min(1120px, calc(100% - 2 * var(--page,40px))); margin:0 auto; }
.site-footer.sf a { color:inherit; text-decoration:none; }
.site-footer.sf .sf-brand { display:inline-flex; align-items:center; gap:14px; }
.site-footer.sf .sf-brand::after { content:none; display:none; }
.site-footer.sf .sf-emblem { width:40px; height:40px; flex:none; }
.site-footer.sf .sf-wordmark { width:150px; height:auto; filter:url("/assets/logos/sable-brand-opacity.svg#full-opacity"); }
/* No divider line between the wordmark and the three facts (Camille 22 Oct 2026: "no divider line"); space alone separates them. */
.site-footer.sf .sf-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px; margin-top:72px; }
.site-footer.sf h2 { margin:0 0 16px; font:350 26px/1.1 var(--serif,"Cormorant Sable",serif); letter-spacing:-.02em; color:var(--film-yellow,#E8D48A); }
.site-footer.sf .sf-grid p { margin:0 0 6px; }
.site-footer.sf .sf-pages { display:flex; flex-wrap:wrap; gap:10px 32px; margin-top:64px; font:400 21px/1.2 var(--serif,"Cormorant Sable",serif); letter-spacing:-.015em; }
.site-footer.sf :is(.sf-pages,.sf-legal) a[aria-current] { color:var(--film-yellow,#E8D48A); } /* the legal pair too (Codex PR02, 23 Oct 2026) */
.site-footer.sf .sf-legal { display:flex; flex-wrap:wrap; gap:8px 28px; margin-top:40px; font:400 12px/1.6 var(--sans,"DM Sable",Arial,sans-serif);
  color:color-mix(in srgb,var(--chalk,#F2EFE7) 72%,transparent); }
.site-footer.sf .sf-legal p { margin:0; }
/* Footer hover draws a 1px hairline under the chosen link. All links keep their full brightness, including neighbours.
   The old colour sweep and structure.css dim stay switched off. External websites retain their diagonal arrow. */
html body .site-footer.sf a { position:relative; display:inline-flex; align-items:center; gap:7px; opacity:1;
  transition:opacity var(--m-base,400ms) var(--m-curve,cubic-bezier(.45,0,.55,1)); }
/* Footer links use the frame button's CTA type; headings and information keep their existing typography. */
html body .site-footer.sf a:not(.sf-brand) {
  font-family:var(--sans,"DM Sable",Arial,sans-serif); font-size:9px; font-weight:1000;
  letter-spacing:.14em; text-transform:uppercase;
}
html body .site-footer.sf a:not([target="_blank"])::before { content:none !important; display:none !important; }
html body .site-footer.sf a[target="_blank"]::before { content:"" !important; display:block !important; position:static !important; inset:auto !important;
  order:2; width:9px; height:9px; flex:none; transform:none !important; transition:none !important; z-index:auto !important; background:currentColor !important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13L13 3M8 3h5v5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13L13 3M8 3h5v5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .site-footer.sf a::after { content:"" !important; display:block !important; position:absolute; left:0; right:0; bottom:-3px; height:1px; background:currentColor;
  opacity:1; transform:scaleX(0); transform-origin:right center; transition:transform var(--m-quick,180ms) var(--m-curve,cubic-bezier(.45,0,.55,1)); }
html body .site-footer.sf a[target="_blank"]::after { right:16px; }
html body .site-footer.sf .sf-brand::after { content:none !important; display:none !important; }
@media (hover:hover) {
  html body .site-footer.sf a:hover::after { transform:scaleX(1); transform-origin:left center; transition-duration:var(--m-hover,320ms); }
}
html body .site-footer.sf a:is(:hover,:focus-visible,:active) { color:inherit; opacity:1; }
html body .site-footer.sf :is(.sf-pages,.sf-legal) a[aria-current]:is(:hover,:focus-visible,:active) { color:var(--film-yellow,#E8D48A); }
html body .site-footer.sf a:focus-visible { outline-color:currentColor; }
html body .site-footer.sf a:focus-visible::after { transform:scaleX(1); transform-origin:left center; }
@media (prefers-reduced-motion:reduce) { html body .site-footer.sf a, html body .site-footer.sf a::after { transition:none; } }
@media (max-width:720px) {
  html body footer.site-footer.sf { padding:64px 0 32px; }
  .site-footer.sf .sf-in { width:calc(100% - 2 * var(--page,20px)); }
  .site-footer.sf .sf-grid {  gap:32px; margin-top:44px; }
  .site-footer.sf .sf-grid a, .site-footer.sf .sf-legal a { display:inline-flex; padding:10px 0; } /* inline-flex keeps the outbound arrow after its label (inline-block put it on a line of its own above) */
  .site-footer.sf .sf-grid p {  }
  .site-footer.sf .sf-pages {   margin-top:40px; }
  .site-footer.sf .sf-pages a { padding:9px 0; }
  html body .site-footer.sf a:not(.sf-brand) { min-height:44px; box-sizing:border-box; }
  .site-footer.sf .sf-legal {  margin-top:28px; }
}
/* Phone: the olive footer is exactly one screen (Camille 22 Oct 2026: "I think all olive footer should be one page - PHONE ONLY").
   It fills the screen with Safari's toolbar collapsed and snaps whole: the brand at the top, Enquiries across the width, Developed by and the site
   address side by side, the pages in two columns, then the legal line at the foot. Tap rows stay 40px. Desktop unchanged. */
@media (max-width:720px) {
  html body footer.site-footer.sf { display:flex; flex-direction:column;   box-sizing:border-box; padding:calc(var(--header-h,88px) + 8px) 0 20px;
     overflow:hidden; }
  .site-footer.sf .sf-in { flex:1 1 auto; display:flex; flex-direction:column; min-height:0; }
  .site-footer.sf .sf-emblem { width:32px; height:32px; }
  .site-footer.sf .sf-wordmark { width:118px; }
  /* Enquiries takes the full width (its phone number and Mouve stay on one line); Developed by and Site Address sit side by side. */
  .site-footer.sf .sf-grid { grid-template-columns:1fr 1fr; gap:20px 20px; margin-top:28px; }
  .site-footer.sf .sf-grid > :first-child { grid-column:1 / -1; }
  .site-footer.sf h2 { margin:0 0 6px; font-size:22px; }
  html body .site-footer.sf a:not(.sf-brand) { min-height:40px; padding:0; }
  .site-footer.sf .sf-grid p { line-height:1.45; }
  .site-footer.sf .sf-pages { display:grid; grid-template-columns:1fr 1fr;  margin-top:22px; }
  .site-footer.sf .sf-pages a { padding:0; }
  .site-footer.sf .sf-legal { margin-top:auto; padding-top:12px; gap:0 24px; align-items:center; }
}
/* Short phones (an iPhone SE, 667px tall): the same one screen footer, tighter, so nothing is cut off. */
@media (max-width:720px) and (max-height:740px) {
  html body footer.site-footer.sf { padding-top:calc(var(--header-h,88px) - 8px); padding-bottom:12px; }
  .site-footer.sf .sf-grid { margin-top:16px; gap:12px 20px; }
  .site-footer.sf h2 { font-size:19px; margin-bottom:2px; }
  html body .site-footer.sf a:not(.sf-brand) { min-height:34px; }
  .site-footer.sf .sf-grid p { line-height:1.35; }
  .site-footer.sf .sf-pages { margin-top:12px; }
}
/* Phone footer rhythm (Camille 22 Oct 2026: "it needs layout work - the spacing is off for the hierarchy - the underline should
   be actually close to the actual button"). Measured before: the underline sat 17 to 18px under each label (drawn at the foot
   of a 40px tap row), and the gap between groups (20px) was smaller than the gaps inside them (up to 28px), so the gold heads
   did not lead their groups. Now one rhythm: every item, link or plain line, is a 36px row with its label centred; the
   underline sits 3px under the label; a head sits 4px over its first item; groups are 36px apart (wider than any gap inside
   a group); the pages are the same 36px rows in two columns; the legal line holds the foot. Phone only. */
@media (max-width:720px) {
  .site-footer.sf .sf-grid { gap:36px 20px; margin-top:36px; }
  .site-footer.sf h2 { margin:0 0 4px; line-height:1.1; }
  .site-footer.sf .sf-grid p { margin:0; }
  html body .site-footer.sf .sf-grid a:not(.sf-brand),
  html body .site-footer.sf .sf-pages a,
  html body .site-footer.sf .sf-legal a { min-height:36px; height:36px; padding:0; align-items:center; }
  .site-footer.sf .sf-grid p:not(:has(a)) { min-height:36px; display:flex; flex-direction:column; justify-content:center; line-height:1.45; }
  html body .site-footer.sf a:not(.sf-brand)::after { top:calc(50% + .65em + 3px); bottom:auto; }
  .site-footer.sf .sf-pages { margin-top:36px; gap:0 20px; }
}
@media (max-width:720px) and (max-height:740px) {
  .site-footer.sf .sf-grid { gap:22px 20px; margin-top:20px; }
  html body .site-footer.sf .sf-grid a:not(.sf-brand), html body .site-footer.sf .sf-pages a, html body .site-footer.sf .sf-legal a { min-height:30px; height:30px; }
  .site-footer.sf .sf-grid p:not(:has(a)) { min-height:30px; }
  .site-footer.sf .sf-pages { margin-top:22px; }
}
/* Underline the width of the words (Camille 22 Oct 2026: "the underline should be actual text width"): the page links in the
   phone's two columns stretched to the column (160px), so their underline ran past the word; each link is now as wide as its
   label (an outbound link's underline still stops before its arrow). Phone only. */
@media (max-width:720px) { .site-footer.sf .sf-pages a { justify-self:start; width:max-content; } }
/* Phone: no emblem or wordmark in the footer (Camille 22 Oct 2026: "phone footer - i think we delete logo and text logo"); the
   phone bar's emblem already sits directly above it. Enquiries leads the footer. Desktop keeps its brand. */
@media (max-width:720px) {
  .site-footer.sf .sf-brand { display:none !important; }
  .site-footer.sf .sf-grid {  }
}
/* Phone footer in two columns (Camille 22 Oct 2026: "Have all enquires developed, site address on the left and all small
   buttons on the right", replacing a split of the page links alone): Enquiries, Developed by and Site Address stack down the
   left; the page buttons (Place to Instagram) run down the right in one column; the legal line spans the foot. Phone only. */
@media (max-width:720px) {
  .site-footer.sf .sf-in { display:grid; grid-template-columns:minmax(0,1fr) max-content; grid-template-rows:auto 1fr auto; column-gap:24px; }
  .site-footer.sf .sf-grid {  grid-row:1; grid-template-columns:1fr; margin-top:8px; }
  .site-footer.sf .sf-grid > :first-child { grid-column:auto; }
  .site-footer.sf .sf-pages {  grid-row:1; display:flex; flex-direction:column; align-items:flex-start; margin-top:8px; padding-top:28px; }
  .site-footer.sf .sf-legal { grid-column:1 / -1; grid-row:3; margin-top:0; }
}
/* Phone footer composed on one row grid (Camille 22 Oct 2026, agreeing my assessment: top heavy with a dead band above the
   legal line; the right column floating beside Sarah Beale; the two columns on different rows; the right column pushed to
   the edge). Every line in both columns sits on the same --sf-row rows: a gold head takes one row, an item one row (the two
   line address fits one row), groups are one empty row apart. The page buttons start level with Enquiries; the right column
   begins at a set 62% across; the two column block is centred between the bar and the legal line. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf { --sf-row:36px; }
  .site-footer.sf .sf-in { grid-template-columns:minmax(0,62fr) minmax(0,38fr); grid-template-rows:1fr auto 1fr auto; column-gap:0; }
  .site-footer.sf .sf-grid { grid-column:1; grid-row:2; margin:0; gap:var(--sf-row) 0; }
  .site-footer.sf .sf-pages { grid-column:2; grid-row:2; margin:0; padding:0; gap:0; }
  .site-footer.sf .sf-legal { grid-row:4; }
  .site-footer.sf h2 { height:var(--sf-row); margin:0; display:flex; align-items:center; line-height:1; }
  html body .site-footer.sf .sf-grid a:not(.sf-brand),
  html body .site-footer.sf .sf-pages a,
  html body .site-footer.sf .sf-legal a { height:var(--sf-row); min-height:var(--sf-row); }
  .site-footer.sf .sf-grid p:not(:has(a)) { height:var(--sf-row); min-height:var(--sf-row); line-height:18px; }
}
@media (max-width:720px) and (max-height:740px) {
  html body footer.site-footer.sf { --sf-row:30px; }
  .site-footer.sf .sf-grid p:not(:has(a)) { line-height:15px; font-size:13px; }
}
/* Phone footer settle (Camille 22 Oct 2026: "FOOTER glide settle doesn't work - it shifts"). Safari brings its toolbar back at
   the end of a page, so the visible screen there is the small one (100svh). The footer was sized to the large screen (100lvh)
   and snapped by its top, a point the page cannot rest at once the toolbar returns, so Safari nudged it to the true bottom.
   Now the footer is exactly the small screen and snaps by its foot, the page's true end: the snap point and the resting point
   are the same. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf {    }
}
/* Phone footer settle, corrected (Camille 22 Oct 2026: "NO now it doesn't glide to the full screen settle point smoothly").
   Sized to the small screen (100svh), the footer let a band of the closing show above it while Safari's toolbar was
   collapsed, then jumped when the toolbar returned. Now: the large screen (100lvh), so the footer fills the screen whether
   the toolbar shows or not, and it still snaps by its foot, the page's true end, the same point in both states. With the
   toolbar showing, only the empty olive above the footer's centred content is out of view. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf {    }
}
/* The footer is the end (Camille 22 Oct 2026: "we should lock the footer so that it cannot be scrolled past"). On phone the page
   no longer rubber bands past the footer (overscroll off on the pages built from plates). The olive page ground first tried
   here is removed: Safari tints its bars from it, which turned them olive over cream sections. Phone only. */
@media (max-width:720px) {
  /* overscroll-behavior none (tried for the lock) is removed: it stopped Safari settling the footer's end snap smoothly ("it is
     struggling to settle to end point"). The olive ground below the footer keeps any bounce the footer's own colour. */
  :root { background-color:var(--sable-green,#3D3A28); } /* olive ground behind the page, so Safari's bars read olive (Camille: "I like the olive") */
}
/* Phone footer: the visible screen at any moment (Camille 22 Oct 2026: "still struggling to settle", "Stops short"). At 100lvh
   the footer was taller than the screen whenever Safari's toolbar showed; a snap area taller than the screen scrolls freely,
   so the flick stopped wherever it ran out, with the closing still showing. 100dvh keeps the footer exactly the visible
   screen in both toolbar states, so its end snap always holds. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf {   }
}
/* The lock again (Camille 22 Oct 2026: "also add back the lock"): no rubber band past the footer on pages built from plates.
   Removed earlier when the footer struggled to settle; that struggle is now traced to the footer being taller than the
   visible screen (fixed with 100dvh above), so the two should hold together. If the settle struggles again, remove this first. */
/* Removed again (Camille: "NO still struggle short - and then it locks in - so it is not smooth"): with no bounce Safari has to
   finish the end snap after the flick has run out. The olive ground below the footer keeps any bounce on colour. */
/* Phone footer, final settle (Camille 22 Oct 2026: "the footer still stops short"). 100dvh resized the footer while the flick
   was moving (the toolbar sliding away), so the end point moved under the flick; 100lvh made it taller than the screen when
   the toolbar showed, so it scrolled freely. Now: the footer keeps the 100lvh size (fills the screen, never resizes) and its
   snap area is trimmed at the top to the small screen (negative scroll margin of the toolbar's height), still snapped by its
   foot, the page's true end. With the toolbar showing only empty olive above the centred content is out of view. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf {     }
}
/* Phone footer as an ordinary snap point (Camille 22 Oct 2026: "It still stops short", after size and snap area changes).
   The plates that settle smoothly all snap at points inside the page; the footer alone snapped at the page's very end, where
   Safari lets the flick die and then pulls the page into place ("stops short, then locks in"). Now the footer snaps by its
   top, as the plates do, and a band of olive follows it, so its snap point is inside the page; a flick past it into the
   olive snaps straight back, which also locks the footer as the end. Same 100lvh size as the plates. Phone only. */
@media (max-width:720px) {
  html body footer.site-footer.sf { height:100lvh; min-height:100lvh; scroll-snap-align:start !important; scroll-snap-stop:always; scroll-margin-top:0; }
  html:has(main[data-plates]) body::after { content:""; display:block; position:relative; z-index:1; height:40svh; background:var(--sable-green,#3D3A28); } /* PH-F01 (Codex, 23 Oct 2026): positioned above the held page beneath the footer, so past the footer only olive shows, never the closing image */
}
/* No elastic bounce (Camille 22 Oct 2026: "the footer should not allow elastic and bounce - I can still trigger it"). With the
   footer now an in-page snap point (the olive band after it), turning the page's overscroll off no longer fights the settle
   (it did when the footer snapped at the page's very end). Plate pages, phone only. */
@media (max-width:720px) {
  html:has(main[data-plates]) { overscroll-behavior-y:none; }
  html:has(main[data-plates]) body { overscroll-behavior-y:none; }
}
/* Rule 3 (DESIGN.md 3.7): nothing within 24px of the screen's foot; the legal line sat at 20px. Phone only. */
@media (max-width:720px) { html body footer.site-footer.sf { padding-bottom:28px; } }

/* Phone footer tap areas (CTA audit 23 Oct 2026, finding 9; DESIGN.md 3.7 rule 8: every control at least 40px tall in its
   tap area). The approved 36px row rhythm stays (rows 36px apart, labels centred, the underline 3px under the label): each
   link is a 44px tap row given back by 4px of negative margin above and below. On short phones (30px rows) the tap is 40px.
   Phone only. */
@media (max-width:720px) {
  html body .site-footer.sf .sf-grid a:not(.sf-brand),
  html body .site-footer.sf .sf-pages a,
  html body .site-footer.sf .sf-legal a { min-height:44px; height:44px; margin-block:-4px; }
}
@media (max-width:720px) and (max-height:740px) {
  html body .site-footer.sf .sf-grid a:not(.sf-brand), html body .site-footer.sf .sf-pages a, html body .site-footer.sf .sf-legal a { min-height:40px; height:40px; margin-block:-5px; }
}

/* PH-F01: Register does not snap on phone (it holds still for filling in), so it needs no olive band to give the footer an
   in-page snap point; without the band its olive footer is simply the page's last screen. */
@media (max-width:720px) { html:has(.register-page main[data-plates]) body::after { content:none; display:none; } }

/* Contact number remains information typography while offering the native phone action. */
html body .site-footer.sf a.sf-phone { font:inherit; letter-spacing:inherit; text-transform:none; }
@media(max-width:720px) { html body .site-footer.sf a.sf-phone { min-height:44px; } }
