/*
 * Fiscala sections built after the 2026-10-06 design audit (canvas
 * LgDnhK5LjZTiRDer3DXxBJ, approved by Nash). style.css is a static Tailwind
 * build that only has the theme's utilities, so the new sections carry their
 * own small stylesheet instead of classes that may not exist in it.
 * Colours are the theme's: s1 #005151, p1 #1A938A, s2 #FFBF3F, bodyText #3B4A46.
 */
:root {
    --fx-ink: #005151;
    --fx-accent: #1A938A;
    --fx-yellow: #FFBF3F;
    --fx-body: #3B4A46;
    --fx-line: #DCE3E1;
    --fx-soft: #F7F7F7;
}

/* Sections use the theme's .container, so they line up with the header and the rest. */
.fx-nowrap { white-space: nowrap; }

/* Hero */
.fx-hero { background: linear-gradient(180deg, #EEF6F5 0%, #FFFFFF 100%); padding: 150px 0 72px; } /* the header sits over the hero */
.fx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.fx-hero__eyebrow { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--fx-accent); letter-spacing: .02em; }
.fx-hero__title { margin: 0; color: var(--fx-ink); font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.fx-hero__title span { color: var(--fx-accent); }
.fx-hero__lead { margin: 22px 0 0; font-size: 20px; line-height: 1.55; color: var(--fx-body); max-width: 520px; }
.fx-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-top: 32px; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--fx-yellow); color: #060B1E; font-weight: 500; font-size: 17px; padding: 14px 28px; border-radius: 999px; transition: background-color .2s, transform .1s; }
.fx-btn:hover { background: #F5B12A; }
.fx-btn:active { transform: translateY(1px); }
.fx-link { color: var(--fx-ink); font-weight: 500; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.fx-link:hover { color: var(--fx-accent); }
.fx-go { border-top: 2px solid var(--fx-ink); }
.fx-go a { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--fx-line); color: var(--fx-ink); transition: color .2s; }
.fx-go a:hover { color: var(--fx-accent); }
.fx-go__name { font-size: 20px; font-weight: 500; }
.fx-go__meta { font-size: 16px; color: var(--fx-body); font-variant-numeric: tabular-nums; text-align: right; }
.fx-go__arrow { color: var(--fx-accent); font-size: 20px; }
.fx-hero__where { margin: 18px 0 0; font-size: 15px; color: var(--fx-body); }

/* Client logos */
.fx-clients { padding: 36px 0; border-bottom: 1px solid var(--fx-line); }
.fx-clients__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: center; }
.fx-clients__label { margin: 0; font-size: 20px; color: var(--fx-body); }
.fx-clients__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px 32px; }
.fx-clients__row img { height: 40px; width: auto; max-width: 170px; object-fit: contain; }

/* Facts band */
.fx-facts { background: var(--fx-ink); padding: 64px 0; }
.fx-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-fact { display: flex; flex-direction: column; gap: 10px; padding: 0 32px; border-left: 1px solid rgba(255, 255, 255, .22); }
.fx-fact__value { font-size: 56px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-fact__label { font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 240px; }

/* Why Fiscala */
.fx-why { padding: 96px 0 72px; }
.fx-why__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 96px; }
.fx-h2 { margin: 0; color: #060B1E; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.fx-why__lead { margin: 18px 0 0; font-weight: 400; font-size: 19px; line-height: 1.55; color: var(--fx-body); max-width: 380px; }
.fx-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.fx-why__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid var(--fx-line); font-size: 19px; line-height: 1.45; color: var(--fx-ink); }
.fx-why__list svg { width: 28px; height: 28px; stroke: var(--fx-accent); }

/* Testimonials */
.fx-quotes { padding: 72px 0 96px; }
.fx-quotes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; align-items: start; padding-top: 28px; }
.fx-quotes__col + .fx-quotes__col { padding-top: 72px; }
.fx-quote { margin: 0; padding: 32px 0 28px; border-top: 1px solid var(--fx-line); display: flex; flex-direction: column; gap: 22px; }
.fx-quote blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--fx-body); text-wrap: pretty; }
.fx-quote figcaption { display: flex; align-items: center; gap: 14px; }
.fx-quote img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fx-quote__name { display: block; font-weight: 600; color: var(--fx-ink); font-size: 16px; }
.fx-quote__role { display: block; font-size: 14px; color: var(--fx-body); }

/* Plain page sections (services, about) */
.fx-section { padding: 80px 0; }
.fx-section--soft { background: var(--fx-soft); }
.fx-lead { margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--fx-body); max-width: 640px; }
.fx-rows { margin: 32px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--fx-ink); }
.fx-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--fx-line); align-items: baseline; }
.fx-rows__name { font-size: 20px; font-weight: 500; color: var(--fx-ink); }
.fx-rows__text { font-size: 17px; line-height: 1.5; color: var(--fx-body); }
.fx-rows a.fx-rows__name:hover { color: var(--fx-accent); text-decoration: underline; text-underline-offset: 4px; }

/* Phone tables: a table marked .fx-stack becomes one card per row under 768px.
   Each cell's data-label is shown as its caption. */
@media (max-width: 767px) {
    .fx-stack thead { display: none; }
    .fx-stack, .fx-stack tbody, .fx-stack tr, .fx-stack td, .fx-stack th[scope="row"] { display: block; width: 100%; }
    .fx-stack tr { border: 1px solid var(--fx-line); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
    .fx-stack td, .fx-stack th[scope="row"] { border: 0 !important; padding: 6px 0 !important; text-align: left !important; }
    .fx-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--fx-body); font-weight: 400; }
}

@media (max-width: 1023px) {
    .fx-hero__grid, .fx-why__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .fx-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .fx-quotes__grid { grid-template-columns: minmax(0, 1fr); }
    .fx-quotes__col + .fx-quotes__col { padding-top: 0; }
    .fx-clients__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .fx-clients__row { justify-content: flex-start; }
}

@media (max-width: 639px) {
    .fx-hero { padding: 112px 0 48px; }
    .fx-hero__lead { font-size: 18px; }
    .fx-go__name { font-size: 18px; }
    .fx-go a { grid-template-columns: minmax(0, 1fr) 20px; }
    .fx-go__meta { grid-column: 1; grid-row: 2; text-align: left; font-size: 15px; }
    .fx-go__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .fx-facts { padding: 48px 0; }
    .fx-facts__grid { grid-template-columns: minmax(0, 1fr); }
    .fx-fact { padding: 0 0 0 20px; }
    .fx-fact__value { font-size: 44px; }
    .fx-why { padding: 64px 0 40px; }
    .fx-why__list { grid-template-columns: minmax(0, 1fr); }
    .fx-why__list li { font-size: 17px; }
    .fx-quotes { padding: 48px 0 64px; }
    .fx-quote blockquote { font-size: 17px; }
    .fx-clients__row img { height: 32px; max-width: 130px; }
    .fx-section { padding: 56px 0; }
    .fx-rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Utilities the theme build lacks. */
@media (min-width: 992px) {
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* FAQ: questions and answers as one open list. */
.fx-faq { margin-top: 32px; border-top: 2px solid var(--fx-ink); max-width: 900px; }
.fx-faq__item { padding: 24px 0; border-bottom: 1px solid var(--fx-line); }
.fx-faq__q { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 600; color: #060B1E; }
.fx-faq__a { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--fx-body); }
