/*
 * Page furniture for flyaway.ca: the homepage and the contact page.
 *
 * WHY THIS IS A SEPARATE STYLESHEET AND NOT PART OF fw-components.css
 *
 * fw-components.css is the ARTICLE kit. It loads on every article, and a
 * homepage hero has no business in an article's critical path. This is the
 * layout of two specific pages, so it loads on those two and nowhere else.
 * fw-theme-blocksy.css already sets the precedent for a second sheet with a
 * different job.
 *
 * WHY IT IS IN THE PLUGIN AT ALL
 *
 * Because that is where styles live. The homepage furniture was inlined into
 * the page's own content for a while, which worked and was wrong: it put CSS
 * in the database, made a style change a content push, and meant the only copy
 * of the layout lived in a WordPress row rather than in the repo.
 *
 * EVERY RULE IS SCOPED to .fw-home or .fw-contact. Nothing here may reach the
 * theme, and the theme's own .hero or .band (Blocksy has opinions about both)
 * may not reach in.
 *
 * SOURCE OF TRUTH: design/fw-pages.css. build-kit.py copies it into the
 * plugin; editing the plugin copy is undone by the next build.
 */

/* ══ HOMEPAGE ═══════════════════════════════════════════════════════════ */

.fw-home{font-family:var(--fw-f-ui);color:var(--fw-ink)}
.fw-home *,.fw-home *::before,.fw-home *::after{box-sizing:border-box}
.fw-home .fwh-wide{max-width:1240px;margin-inline:auto;padding-inline:var(--fw-pad)}
.fw-home .fwh-sect{padding-block:clamp(2rem,5vw,3.25rem)}
.fw-home .fwh-hd{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.fw-home .fwh-hd a{font-size:.88rem;color:var(--fw-ocean-ink);text-decoration:none}
.fw-home .fwh-btns{display:flex;gap:.7rem;flex-wrap:wrap}

/* Hero: flat, no diagonal, no video. Text left, one photo right. */
.fw-home .fwh-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center;padding-block:clamp(2.5rem,6vw,4.5rem)}
.fw-home .fwh-hero h1{font-family:var(--fw-f-display);font-weight:800;font-size:clamp(2rem,4.4vw,3.15rem);line-height:1.08;letter-spacing:-.025em;margin:0 0 1rem}
.fw-home .fwh-hero p{font-family:var(--fw-f-body);font-size:1.08rem;line-height:1.55;color:var(--fw-ink-2);margin:0 0 1.5rem;max-width:42ch}
/* The second beat. UI face, not body, so it reads as a statement of the deal
   rather than the opening of the paragraph under it. */
.fw-home .fwh-hero .fwh-sub{font-family:var(--fw-f-ui);font-weight:700;font-size:1.05rem;color:var(--fw-ink);margin:0 0 .85rem;max-width:40ch}
.fw-home .fwh-heroimg{border-radius:var(--fw-r-lg);overflow:hidden;aspect-ratio:4/3;background:var(--fw-sand)}
.fw-home .fwh-heroimg img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:860px){.fw-home .fwh-hero{grid-template-columns:1fr}.fw-home .fwh-heroimg{order:-1;aspect-ratio:16/10}}

/* Trust strip: one quiet row, credentials only, no icons decorating. */
.fw-home .fwh-trust{border-block:1px solid var(--fw-rule);background:var(--fw-card)}
.fw-home .fwh-trust-in{display:flex;flex-wrap:wrap;gap:.6rem 2.2rem;padding-block:.9rem;font-size:.82rem;color:var(--fw-ink-2)}
.fw-home .fwh-trust b{color:var(--fw-ink);font-weight:650}
/* The one credential a reader can verify. Underlined on purpose: it should
   look like something you can click, because clicking it is the point. */
.fw-home .fwh-trust a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* The single saturated brand moment on the page. */
.fw-home .fwh-band{background:var(--fw-red);color:#fff;border-radius:var(--fw-r-lg);padding:clamp(1.75rem,4vw,2.75rem);margin-block:clamp(2rem,5vw,3.5rem);display:grid;grid-template-columns:1fr auto;gap:1.5rem 2.5rem;align-items:center}
.fw-home .fwh-band h2{font-family:var(--fw-f-display);font-weight:800;margin:0 0 .5rem;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.12;letter-spacing:-.02em;color:#fff}
.fw-home .fwh-band p{font-family:var(--fw-f-body);margin:0;opacity:.94;line-height:1.5;max-width:52ch;color:#fff}
.fw-home .fwh-band .fw-btn{background:#fff;color:var(--fw-red-ink);border-color:#fff}
@media (max-width:760px){.fw-home .fwh-band{grid-template-columns:1fr}}

/* Guide cards. Never an empty box: the plate is designed with or without art. */
.fw-home .fwh-guides{display:grid;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:1.1rem}
.fw-home .fwh-gcard{background:var(--fw-card);border:1px solid var(--fw-rule);border-radius:var(--fw-r-lg);overflow:hidden;display:flex;flex-direction:column}
.fw-home .fwh-gart{aspect-ratio:16/9;background:var(--fw-sand);overflow:hidden}
.fw-home .fwh-gart img{width:100%;height:100%;object-fit:cover;display:block}
.fw-home .fwh-gb{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.5rem}
/* Sentence case. The .fw-pill inside sets its own uppercase, which is the
   kit's idiom and is what every article already does; the reading time is
   plain UI text and the brief bans ALL-CAPS for exactly that. */
.fw-home .fwh-gmeta{display:flex;align-items:center;gap:.6rem;font-size:.75rem;letter-spacing:.01em;color:var(--fw-ink-3)}
.fw-home .fwh-gcard h3{font-family:var(--fw-f-display);font-size:1.06rem;line-height:1.25;margin:0;letter-spacing:-.01em}
.fw-home .fwh-gcard h3 a,.fw-home .fw-feature h3 a{color:inherit;text-decoration:none}
.fw-home .fw-feature h3 a:hover{text-decoration:underline}
/* The advisor cards are doors: the CTA sits inside the box, pinned to the
   bottom so three cards of unequal text still line their buttons up. */
.fw-home .fwh-door{align-items:stretch}
.fw-home .fwh-door > div{display:flex;flex-direction:column;gap:.45rem;height:100%}
/* The button sits in its own footer row rather than being a flex child with
   margin-top:auto directly on it. That is the only way to get BOTH behaviours:
   auto pushes the row to the bottom so buttons line up across cards of unequal
   text, and it also eats any margin-top set beside it, so the breathing space
   above the button has to come from the wrapper's padding.
   (No backticks in this comment: the whole stylesheet is a template literal
   and one of them ended the string mid-sentence.) */
.fw-home .fwh-doorfoot{margin-top:auto;padding-top:1.25rem;display:flex;justify-content:center}
/* The kit's trace button hardcodes --fw-red for its drawn outline and its
   hover text, which is right in an article and wrong here: every one of these
   cards already carries an accent, and red is meant to be the page's single
   brand moment. So the button borrows the card's accent instead - the same
   colour as the icon above it - and the ink variant for text, which is the
   readable one of the pair. */
.fw-home .fwh-door .fw-trace-fr .draw{stroke:var(--fw-accent)}
.fw-home .fwh-door .fw-btn.trace:hover{color:var(--fw-accent-ink)}
.fw-home .fwh-gcard h3 a:hover{text-decoration:underline}
.fw-home .fwh-gcard p{font-family:var(--fw-f-body);font-size:.92rem;line-height:1.5;color:var(--fw-ink-2);margin:0}

/* The ask. One open question, the Turnstile stays, the dropdown is gone. */
.fw-home .fwh-ask{background:var(--fw-card);border:1px solid var(--fw-rule);border-radius:var(--fw-r-lg);padding:clamp(1.5rem,4vw,2.25rem);max-width:var(--fw-maxw);margin-inline:auto}
/* Evidence, not centrepiece, but framed rather than dropped in: centred under
   the argument with a lead above it that says whose film this is. */
.fw-home .fwh-vid{margin:2.25rem auto 0;max-width:34rem;text-align:center}
.fw-home .fwh-vidlead{font-family:var(--fw-f-display);font-weight:800;font-size:1.05rem;letter-spacing:-.01em;color:var(--fw-ink);margin:0 0 .7rem}
.fw-home .fwh-vidframe{position:relative;aspect-ratio:16/9;border-radius:var(--fw-r);overflow:hidden;background:var(--fw-ink)}
.fw-home .fwh-vidframe iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.fw-home .fwh-vid figcaption{font-family:var(--fw-f-body);font-size:.86rem;line-height:1.5;color:var(--fw-ink-3);margin-top:.7rem;max-width:44ch;margin-inline:auto}
.fw-home .fwh-asklead{font-family:var(--fw-f-body);font-size:1.02rem;color:var(--fw-ink-2);margin:0 0 1.15rem}
.fw-home .fwh-ask .fwh-btns{gap:.6rem}

/* ══ CONTACT ════════════════════════════════════════════════════════════ */

/*
 * Three product sections, each explaining before it asks. The alternating
 * layout is the point: a page of three identical stacked blocks reads as a
 * form in disguise, and the whole intent here is that somebody can rule
 * themselves in or out of each one before committing to any of them.
 */
.fw-contact{font-family:var(--fw-f-ui);color:var(--fw-ink)}
.fw-contact *,.fw-contact *::before,.fw-contact *::after{box-sizing:border-box}
.fw-contact .fwc-wide{max-width:1180px;margin-inline:auto;padding-inline:var(--fw-pad)}

/* Hero. Narrower than the homepage's: this page is a decision, not a shop
   window, so the measure is short and there is no photo competing with it. */
.fw-contact .fwc-hero{max-width:44rem;margin-inline:auto;text-align:center;padding-block:clamp(2.25rem,5vw,3.5rem)}
.fw-contact .fwc-hero h1{font-family:var(--fw-f-display);font-weight:800;font-size:clamp(1.9rem,4vw,2.9rem);line-height:1.1;letter-spacing:-.025em;margin:0 0 .85rem}
.fw-contact .fwc-hero .fwc-sub{font-family:var(--fw-f-ui);font-weight:700;font-size:1.05rem;color:var(--fw-ink);margin:0 0 .8rem}
.fw-contact .fwc-hero p{font-family:var(--fw-f-body);font-size:1.05rem;line-height:1.55;color:var(--fw-ink-2);margin:0 auto;max-width:52ch}

/* One product. Image and prose side by side, alternating down the page. */
.fw-contact .fwc-sect{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;padding-block:clamp(2rem,4.5vw,3rem);border-top:1px solid var(--fw-rule)}
.fw-contact .fwc-sect:nth-of-type(even) .fwc-art{order:2}
.fw-contact .fwc-art{border-radius:var(--fw-r-lg);overflow:hidden;aspect-ratio:4/3;background:var(--fw-sand)}
.fw-contact .fwc-art img{width:100%;height:100%;object-fit:cover;display:block}
.fw-contact .fwc-body h2{font-family:var(--fw-f-display);font-weight:800;font-size:clamp(1.4rem,2.6vw,1.85rem);line-height:1.15;letter-spacing:-.02em;margin:.55rem 0 .7rem}
.fw-contact .fwc-body p{font-family:var(--fw-f-body);font-size:1.02rem;line-height:1.55;color:var(--fw-ink-2);margin:0 0 .8rem;max-width:48ch}
/* Who it suits, set apart from the description so it can be skimmed. Accent
   rule rather than a tinted box: three tinted boxes down a page is a lot. */
.fw-contact .fwc-suits{border-left:3px solid var(--fw-accent);padding-left:.9rem;color:var(--fw-ink-2);font-family:var(--fw-f-body);font-size:.98rem;line-height:1.5;margin:0 0 1.25rem;max-width:46ch}
.fw-contact .fwc-sect .fw-btn{margin-top:.25rem}
/* The button borrows the section's accent, same as the homepage cards, so red
   stays the brand moment rather than becoming the default button colour. */
.fw-contact .fwc-sect .fw-trace-fr .draw{stroke:var(--fw-accent)}
.fw-contact .fwc-sect .fw-btn.trace:hover{color:var(--fw-accent-ink)}
@media (max-width:820px){
  .fw-contact .fwc-sect{grid-template-columns:1fr;gap:1.25rem}
  .fw-contact .fwc-sect:nth-of-type(even) .fwc-art{order:0}
}

/* For somebody who is not sure which of the three they want, which is most
   people and is most of the job. */
.fw-contact .fwc-unsure{background:var(--fw-card);border:1px solid var(--fw-rule);border-radius:var(--fw-r-lg);padding:clamp(1.4rem,3.5vw,2rem);text-align:center;margin-block:clamp(1.75rem,4vw,2.5rem)}
.fw-contact .fwc-unsure h2{font-family:var(--fw-f-display);font-weight:800;font-size:1.25rem;margin:0 0 .55rem;letter-spacing:-.01em}
.fw-contact .fwc-unsure p{font-family:var(--fw-f-body);color:var(--fw-ink-2);line-height:1.55;margin:0 auto 1.1rem;max-width:50ch}

/* The registrations, at the point where somebody actually commits. */
.fw-contact .fwc-trust{border-top:1px solid var(--fw-rule);padding-block:1.5rem 2.5rem;text-align:center}
.fw-contact .fwc-trust b{display:block;font-family:var(--fw-f-ui);font-size:.78rem;letter-spacing:.04em;color:var(--fw-ink-3);margin-bottom:.45rem}
.fw-contact .fwc-trust p{font-family:var(--fw-f-body);font-size:.92rem;line-height:1.55;color:var(--fw-ink-2);margin:0 auto .7rem;max-width:58ch}
.fw-contact .fwc-trust a{color:var(--fw-ocean-ink);text-decoration:underline;text-underline-offset:3px;font-size:.92rem}


/* ══ PILLAR HUBS ════════════════════════════════════════════════════════ */

/*
 * One hub per product, replacing a Blocksy category archive. The listing is
 * rendered by the plugin's [fw_pillar_posts] shortcode at request time, so the
 * card rules below style markup this stylesheet's own repo does not emit -
 * the class names are the contract between the two, and both sides are tested
 * against it.
 */
.fw-pillar{font-family:var(--fw-f-ui);color:var(--fw-ink)}
.fw-pillar *,.fw-pillar *::before,.fw-pillar *::after{box-sizing:border-box}
.fw-pillar .fwp-wide{max-width:1180px;margin-inline:auto;padding-inline:var(--fw-pad)}

/* Hero: the photograph is the page's one big visual, so it is full width with
   the words over it rather than beside it. That is the difference a visitor
   sees first between this and the list it replaces. */
.fw-pillar .fwp-hero{position:relative;border-radius:var(--fw-r-lg);overflow:hidden;margin-block:clamp(1rem,3vw,1.75rem);min-height:clamp(20rem,42vw,27rem);display:flex;align-items:flex-end;background:var(--fw-ink)}
.fw-pillar .fwp-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Dark at the bottom, clear at the top, so the picture is still a picture and
   the words on it still pass contrast. A flat tint would dull both. */
.fw-pillar .fwp-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,16,15,.86) 0%,rgba(20,16,15,.55) 38%,rgba(20,16,15,.12) 72%,rgba(20,16,15,0) 100%)}
.fw-pillar .fwp-herotext{position:relative;z-index:1;padding:clamp(1.5rem,4vw,2.75rem);max-width:44rem}
.fw-pillar .fwp-hero h1{font-family:var(--fw-f-display);font-weight:800;font-size:clamp(1.9rem,4.2vw,3rem);line-height:1.08;letter-spacing:-.025em;margin:.6rem 0 .6rem;color:#fff}
.fw-pillar .fwp-hero .fwp-sub{font-family:var(--fw-f-ui);font-weight:700;font-size:1.02rem;color:#fff;opacity:.95;margin:0}

.fw-pillar .fwp-dek{font-family:var(--fw-f-body);font-size:1.08rem;line-height:1.6;color:var(--fw-ink-2);max-width:56ch;margin:0 auto clamp(1.75rem,4vw,2.5rem);text-align:center}

/* What decides a good week. Three, in the kit's feature cards. */
.fw-pillar .fwp-points{margin-block:clamp(1.5rem,4vw,2.25rem)}

/* The listing. Same card language as the homepage guides, different scope,
   because these come from the plugin rather than from the renderer. */
.fw-pillar .fwp-listhd{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:clamp(2rem,5vw,3rem) 0 1.25rem;border-top:1px solid var(--fw-rule);padding-top:clamp(1.5rem,4vw,2.25rem)}
.fw-pillar .fwp-listhd h2{font-family:var(--fw-f-display);font-weight:800;font-size:clamp(1.3rem,2.6vw,1.75rem);letter-spacing:-.02em;margin:0}
.fw-pillar .fwp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(17rem,1fr));gap:1.1rem}
.fw-pillar .fwp-card{background:var(--fw-card);border:1px solid var(--fw-rule);border-radius:var(--fw-r-lg);overflow:hidden;display:flex;flex-direction:column}
.fw-pillar .fwp-art{display:block;aspect-ratio:16/9;background:var(--fw-sand);overflow:hidden}
.fw-pillar .fwp-art-img{width:100%;height:100%;object-fit:cover;display:block}
.fw-pillar .fwp-cb{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.5rem}
.fw-pillar .fwp-meta{display:flex;align-items:center;gap:.6rem;font-size:.75rem;color:var(--fw-ink-3)}
.fw-pillar .fwp-card h3{font-family:var(--fw-f-display);font-size:1.06rem;line-height:1.25;margin:0;letter-spacing:-.01em}
.fw-pillar .fwp-card h3 a{color:inherit;text-decoration:none}
.fw-pillar .fwp-card h3 a:hover{text-decoration:underline}
.fw-pillar .fwp-card p{font-family:var(--fw-f-body);font-size:.92rem;line-height:1.5;color:var(--fw-ink-2);margin:0}
/* Nothing published yet in this pillar. Says so rather than showing a gap. */
.fw-pillar .fwp-empty{border:1px dashed var(--fw-rule);border-radius:var(--fw-r-lg);padding:2rem;text-align:center;color:var(--fw-ink-3);font-family:var(--fw-f-body)}

/* The ask, at the foot. */
.fw-pillar .fwp-cta{background:var(--fw-card);border:1px solid var(--fw-rule);border-radius:var(--fw-r-lg);padding:clamp(1.4rem,3.5vw,2rem);text-align:center;margin-block:clamp(2rem,4vw,2.75rem)}
.fw-pillar .fwp-cta h2{font-family:var(--fw-f-display);font-weight:800;font-size:1.3rem;margin:0 0 .6rem;letter-spacing:-.01em}
.fw-pillar .fwp-cta p{font-family:var(--fw-f-body);color:var(--fw-ink-2);line-height:1.55;margin:0 auto 1.1rem;max-width:48ch}
.fw-pillar .fwp-cta .fw-trace-fr .draw{stroke:var(--fw-accent)}
.fw-pillar .fwp-cta .fw-btn.trace:hover{color:var(--fw-accent-ink)}
