/* ------------------------------------------------------------ */
/*  The Kitchen - styles.css                                     */
/*  The landing page, from direction A: The interface            */
/*  Websolutions.ca                                              */
/* ------------------------------------------------------------ */

:root {
    /* ----- brand colours: Websolutions.ca's own, named as the direction brief names them ----- */
    --ink: #212529;
    --blue: #214FB1;
    --deep-blue: #13317C;
    --light-blue: #87CDE3;

    /* ----- fixed utility tokens (always present, always these names) ----- */
    --white: #ffffff;
    --txt-color: #525252;
    --light-grey: #F8F9FA;
    --border: #D9D9D9;
    --border-light: #e9eaeb;

    /* ----- fonts: Adobe Fonts kit wjm1ghu (Nobel 700 Bold, 800 Black; Lato 400, 400 italic, 700), DM Mono 400 ----- */
    --heading-font: "nobel", sans-serif;
    --body-font: "lato", sans-serif;
    --mono-font: "DM Mono", monospace;
}

/* ----- base ----- */
/* Bootstrap's reboot makes every scroll smooth; here scrolls are instant, and navScroll.js glides a
   clicked in-page link (unless reduced motion is asked for) */
:root {
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    color: var(--txt-color);
    background-color: var(--light-grey);
}

.main {
    flex: 1;
}

/* Nobel is for headings only, Bold (700) or Black (800), never under 20px: its Bold "i" merges into the stem below that */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

b,
strong {
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

/* in-page links land below the fixed header; the dark band lands right under it */
section[id],
.tk-notice {
    scroll-margin-top: 104px;
}

section.tk-dark[id] {
    scroll-margin-top: 60px;
}

/* ----- max-width helpers ----- */
.mw-280 { max-width: 280px; }
.mw-480 { max-width: 480px; }
.mw-576 { max-width: 576px; }
.mw-768 { max-width: 768px; }
.mw-991 { width: 100%; max-width: 991px; }
.mw-1024 { width: 100%; max-width: 1024px; }

/* mobile-full, capped at laptop */
.mw-lg-576 { width: 100%; }
@media (min-width: 992px) {
    .mw-lg-576 { max-width: 576px; }
}

/* section-level vertical gap: between a section's title column and its content column when they stack */
.row-gap-64 { row-gap: 64px; }

/* ----- background tints: one per palette variable a band uses ----- */
.bg-light-grey { background-color: var(--light-grey); }

/* ----- section layout ----- */
.section-p {
    padding-top: 64px;
    padding-bottom: 64px;
}

.single-p {
    padding-bottom: 64px;
}

.section-divider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-divider div {
    height: 1px;
    width: 100%;
    max-width: 1300px;
    padding: 0 32px;
    align-self: center;
    background-color: var(--border);
}

/* ----- section title ----- */
.section-title h2 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section-title h2:last-child {
    margin-bottom: 0;
}

.section-title h3 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
}

.section-title p,
.section-title ul {
    font-size: 18px;
    line-height: 30px;
}

.section-title p:last-child {
    margin-bottom: 0;
}

/* ----- rich text (CMS and article bodies, always in .mw-768.mx-auto) ----- */
.rich-text-section h2 {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 16px;
}

.rich-text-section h3 {
    font-size: 22px;
    line-height: 30px;
    margin-bottom: 12px;
}

.rich-text-section p,
.rich-text-section ul,
.rich-text-section ol {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 16px;
}

.rich-text-section a {
    color: var(--blue);
}

.rich-text-section a:is(:hover, :focus-visible) {
    color: var(--deep-blue);
}

.rich-text-section ol {
    list-style-type: decimal;
}

.rich-text-section ol ol {
    list-style-type: lower-alpha;
}

.rich-text-section ol ol ol {
    list-style-type: lower-roman;
}

/* ----- buttons: blue only where you can act; hover is a colour change, never a shadow or a lift ----- */
.btn-tk-primary,
.btn-tk-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    /* Bootstrap's own focus ring and disabled state read these, and .btn leaves them unset */
    --bs-btn-focus-shadow-rgb: 33, 79, 177;
    --bs-btn-disabled-border-color: var(--blue);
}

.btn-tk-primary {
    background-color: var(--blue);
    color: var(--white);
    --bs-btn-disabled-bg: var(--blue);
    --bs-btn-disabled-color: var(--white);
}

/* .btn.btn-tk-* outranks Bootstrap's .btn:first-child:active, which would paint a pressed button transparent */
.btn.btn-tk-primary:is(:hover, :focus-visible, :active) {
    background-color: var(--deep-blue);
    border-color: var(--deep-blue);
    color: var(--white);
}

.btn-tk-secondary {
    background-color: var(--white);
    color: var(--blue);
    --bs-btn-disabled-bg: var(--white);
    --bs-btn-disabled-color: var(--blue);
}

.btn.btn-tk-secondary:is(:hover, :focus-visible, :active) {
    background-color: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* on the dark section: clear, with a white border and words; hover, focus and active fill white with deep-blue words,
   as websolutions.ca's own button does on its blue band. The focus ring is the light blue at full strength */
.btn-tk-secondary.btn-tk-secondary--on-dark {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem var(--light-blue);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--white);
    --bs-btn-disabled-color: var(--white);
}

.btn.btn-tk-secondary.btn-tk-secondary--on-dark:is(:hover, :focus-visible, :active) {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--deep-blue);
}

/* ----- nav: one row on the light ground, shrinks on scroll ----- */
.tk-nav {
    background-color: var(--light-grey);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.tk-nav--scrolled {
    background-color: var(--white);
    border-bottom-color: var(--border-light);
}

.tk-nav .navbar {
    padding-top: 12px;
    padding-bottom: 12px;
    transition: padding 0.25s ease;
}

.tk-nav--scrolled .navbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

.tk-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
    padding: 0;
    color: var(--ink);
    text-decoration: none;
}

.tk-brand__mark {
    width: auto;
    height: 36px;
    transition: height 0.25s ease;
}

.tk-nav--scrolled .tk-brand__mark {
    height: 30px;
}

.tk-brand__text {
    display: flex;
    flex-direction: column;
}

.tk-brand__name {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    line-height: 22px;
    color: var(--ink);
}

.tk-brand__by {
    font-size: 16px;
    line-height: 20px;
    color: var(--txt-color);
}

.tk-nav .navbar-nav {
    gap: 8px;
}

.tk-nav .nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 20px;
    line-height: 28px;
    color: var(--ink);
    transition: color 0.2s ease;
}

.tk-nav .nav-link:is(:hover, :focus-visible) {
    color: var(--blue);
}

.tk-nav .nav-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(33, 79, 177, 0.35);
}

.tk-nav__toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

.tk-nav__toggler:focus {
    box-shadow: none;
}

.tk-nav__toggler:focus-visible {
    box-shadow: 0 0 0 3px rgba(33, 79, 177, 0.35);
}

.tk-nav__panel {
    background-color: var(--light-grey);
}

.tk-nav__panel .offcanvas-header {
    padding: 20px 24px;
}

.tk-nav__panel .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 8px 24px 32px;
}

.tk-nav .offcanvas-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--txt-color);
    margin: 0;
}

/* in the offcanvas the words sit on the panel's edge; the side padding, pulled back by the margin, keeps the focus ring off the letters */
.tk-nav__menu .nav-link,
.tk-nav__door .nav-link {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.tk-nav__menu .nav-link {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
}

.tk-nav__cta {
    display: flex;
    flex-direction: column;
}

/* ----- hero: the headline, the intro and the two buttons as one group ----- */
/* padding-top = nav height (69px) + the visible gap */
.tk-hero {
    padding-top: 116px;
    padding-bottom: 64px;
}

/* the homepage's: the product screen under the group bleeds off the right edge, so the hero clips it */
.tk-hero--home {
    overflow-x: clip;
}

.tk-hero__heading {
    margin-bottom: 24px;
    font-size: 44px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: -0.01em;
}

.tk-hero__lead {
    margin-bottom: 32px;
    font-size: 20px;
    line-height: 32px;
}

/* ----- footer: everything at body size ----- */
.tk-footer {
    padding-top: 64px;
    padding-bottom: 32px;
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
}

.tk-footer a {
    color: var(--txt-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tk-footer a:is(:hover, :focus-visible) {
    color: var(--blue);
}

.footer-col-title {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--ink);
}

/* flex-start: on phones websolutions.ca keeps to its words, so its link and focus ring don't run the row's width */
.tk-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* ----- skip link ----- */
.skip-to-main-content {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    background-color: var(--ink);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-main-content:focus {
    top: 0;
}

/* ----- components (appended below as pages get built) ----- */

/* ----- links: one style per role ----- */
/* in text: blue, underlined; hover deepens the colour and the underline, never the size */
.tk-link {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.tk-link:is(:hover, :focus-visible) {
    color: var(--deep-blue);
    text-decoration-thickness: 2px;
}

/* an icon link underlines its words only */
.tk-link--icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tk-link--icon .tk-link__text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.tk-link--icon:is(:hover, :focus-visible) .tk-link__text {
    text-decoration-thickness: 2px;
}

/* ----- the drawn line: one light-blue hand-drawn stroke under a heading's last words, once per page ----- */
/* a stacking context, so the line sits behind the letters */
.tk-mark {
    position: relative;
    z-index: 0;
    white-space: nowrap;
}

.tk-mark svg {
    position: absolute;
    left: -2%;
    bottom: -0.16em;
    z-index: -1;
    width: 104%;
    height: 0.36em;
    overflow: visible;
    fill: none;
    stroke: var(--light-blue);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tk-mark path {
    vector-effect: non-scaling-stroke;
}

/* ----- the product screen: one real admin screen on a white mat, 16:10, inside its column ----- */
.tk-screen {
    margin: 0;
    padding: 8px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

.tk-screen__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: left top;
    border-radius: 8px;
}

/* breaking the grid: runs off the right edge (4:3 on phones, so the admin's menu and publish controls show) */
.tk-screen--bleed {
    width: calc(100% + 36px);
}

.tk-screen--bleed .tk-screen__img {
    aspect-ratio: 4 / 3;
}

/* ----- the notice: a run-in and its one action, a plain line with no box (the preview notice and the phone) ----- */
.tk-notice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tk-notice p {
    margin-bottom: 0;
}

.tk-notice strong {
    color: var(--ink);
}

.tk-notice .tk-link--icon {
    flex-shrink: 0;
    font-weight: 700;
}

/* ----- the page tree: a light-blue line down the left of the content, a mono node per section (992px and up) ----- */
.tk-tree {
    position: relative;
}

/* a name too long for its col-lg-2 (the French "Qu’est-ce que c’est") wraps at a space, the tick on its first line */
.tk-tree__node {
    position: relative;
    display: block;
    padding-left: 24px;
    font-family: var(--mono-font);
    font-size: 14px;
    line-height: 20px;
    color: var(--txt-color);
}

.tk-tree__node::before {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1px;
    background-color: var(--light-blue);
}

/* ----- a feature: its icon beside (phones) or above (768px up) a run-in, the bold sentence running into its explanation ----- */
.tk-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tk-feature__icon {
    --fa-primary-color: var(--ink);
    --fa-secondary-color: var(--light-blue);
    --fa-secondary-opacity: 1;
    flex-shrink: 0;
    width: 32px;
    padding-top: 2px;
    font-size: 28px;
    line-height: 1;
}

.tk-runin {
    margin-bottom: 0;
    color: var(--txt-color);
}

.tk-runin strong {
    color: var(--ink);
}

/* ----- the list panel: white, on the light ground ----- */
.tk-panel {
    padding: 32px 24px;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
}

/* ----- the one dark section: deep blue, with the page tree's own lines and nodes as its texture ----- */
.tk-dark {
    position: relative;
    isolation: isolate;
    background-color: var(--deep-blue);
    color: rgba(255, 255, 255, 0.84);
}

.tk-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../images/tk-page-tree-texture.svg");
    background-position: right top;
    background-size: 720px 720px;
    opacity: 0.18;
    mask-image: linear-gradient(to right, transparent 15%, black 75%);
    pointer-events: none;
}

.tk-dark .section-title h2 {
    color: var(--white);
}

.tk-dark .tk-tree__node {
    color: var(--light-blue);
}

/* ----- a real site: a straight shot of its first screen and its name, the link to the live site ----- */
.tk-site {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.tk-site__frame {
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(135, 205, 227, 0.35);
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tk-site__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.tk-site__name {
    margin-bottom: 0;
    font-size: 22px;
    line-height: 30px;
}

/* inline, so the arrow follows the name's last word when it wraps */
.tk-site__link {
    color: var(--white);
    text-decoration: none;
}

.tk-site__link i {
    margin-left: 8px;
    font-size: 18px;
    color: var(--light-blue);
}

.tk-site__label {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}

.tk-site:hover .tk-site__label,
.tk-site__link:focus-visible .tk-site__label {
    text-decoration-color: var(--light-blue);
}

.tk-site:hover .tk-site__frame {
    border-color: var(--light-blue);
    background-color: rgba(135, 205, 227, 0.16);
}

.tk-site__link:focus-visible {
    outline: 0;
}

.tk-site__link:focus-visible::after {
    outline: 2px solid var(--light-blue);
    outline-offset: 8px;
    border-radius: 14px;
}

/* ----- footer pieces ----- */
.tk-footer__list li + li {
    margin-top: 8px;
}

.tk-footer__phone,
.tk-footer__ws {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* every footer link: blue and underlined on hover; an icon link underlines its words only */
.tk-footer__list a:is(:hover, :focus-visible),
.tk-footer a:is(:hover, :focus-visible) span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ----- the burst: websolutions.ca's own CTA hover, on the two big "Talk to us" buttons only (Juan, 2026-10-28) ----- */
/* the brand's lift and light-blue offset shadow, over our deep-blue hover fill, and six doodles flying out of the sides */
.btn-tk-primary--burst {
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.btn-tk-primary--burst:is(:hover, :focus-visible) {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--light-blue);
}

/* keyboard focus keeps Bootstrap's ring as well */
.btn.btn-tk-primary--burst:focus-visible {
    box-shadow: 4px 4px 0 0 var(--light-blue), var(--bs-btn-focus-box-shadow);
}

/* no doodles while the button is full width (below 768px): the screen's edge would cut them in half.
   The colour, the lift and the shadow stay */
.tk-burst {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* the doodles start 25px out and fly 10 to 15px further, as on websolutions.ca */
.tk-burst__doodle {
    --burst-side: 25px;
    --burst-out: 12px;
    --burst-dir: 1;
    --burst-y: 0px;
    position: absolute;
    width: 15px;
    height: 15px;
    opacity: 0;
    background-color: var(--blue);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.tk-burst__doodle--x {
    top: 10%;
    --burst-y: -8px;
    mask-image: url("../images/ws-doodle-x.svg");
}

.tk-burst__doodle--circle {
    top: calc(50% - 7.5px);
    --burst-out: 15px;
    background-color: var(--light-blue);
    mask-image: url("../images/ws-doodle-circle.svg");
}

.tk-burst__doodle--donut {
    top: calc(90% - 15px);
    --burst-out: 10px;
    --burst-y: 8px;
    mask-image: url("../images/ws-doodle-donut.svg");
}

.tk-burst__doodle:nth-child(-n + 3) {
    left: calc(var(--burst-side) * -1);
    --burst-dir: -1;
}

.tk-burst__doodle:nth-child(n + 4) {
    right: calc(var(--burst-side) * -1);
}

.btn-tk-primary--burst:is(:hover, :focus-visible) .tk-burst__doodle {
    animation: tk-burst 0.9s ease-out;
}

@keyframes tk-burst {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(calc(var(--burst-dir) * var(--burst-out)), var(--burst-y)) scale(0.6);
    }
}

/* no lift and no burst: the colour change and the shadow only */
@media (prefers-reduced-motion: reduce) {
    .btn.btn-tk-primary--burst:is(:hover, :focus-visible) {
        transform: none;
    }

    .btn-tk-primary--burst .tk-burst {
        display: none;
    }
}