/* The public pre-reservations portal, in the look of fvcgroup.pt: white page, black text, the FVC Group logo and menu,
   the current tab over a large serif title, the site's image as a full-width banner, square black buttons and
   underlined form fields. */

/* The fonts of fvcgroup.pt, served by the portal itself (no Google requests: CSP and RGPD). Latin subset (covers
   Portuguese). Open Font License: wwwroot/fonts/OFL-*.txt. */
@font-face {
    font-family: "Encode Sans";
    font-style: normal;
    /* The site loads 100–700 only, so its 800 (e.g. «PROJETOS») shows as 700: capped here the same way. */
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/encode-sans-latin-300-800.woff2") format("woff2");
}

@font-face {
    font-family: "PT Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/pt-serif-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "PT Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/pt-serif-latin-400-italic.woff2") format("woff2");
}

@font-face {
    font-family: "PT Serif";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/pt-serif-latin-700.woff2") format("woff2");
}

:root {
    --text: #111111;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --req: #c50f1f;
    --ok-bg: #dff6dd;
    --ok-text: #0e700e;
    --wait-bg: #fff4ce;
    --wait-text: #8a5a00;
    --res-bg: #ca5010;
    --sold-bg: #a4262c;
    /* The site's fonts (Encode Sans and PT Serif), then the closest system ones. */
    --fvc-serif: "PT Serif", Georgia, Cambria, "Times New Roman", serif;
    --fvc-sans: "Encode Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    /* The site's tables. */
    --fvc-cell: #212529;
    --fvc-rule: #dee2e6;
    color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

/* The page starts under the fixed header (--fvc-header-h, measured by site.js) and fills the window, so the footer is
   at the bottom even on short pages. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #fff;
    color: #000;
    font: 16px/1.5 var(--fvc-sans);
    padding: var(--fvc-header-h, 151px) 0 0;
}

.fvc-page { flex: 1 0 auto; padding-bottom: 72px; }

a { color: inherit; }

.muted { color: var(--muted); font-weight: 400; }
.req { color: var(--req); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* As the site's fluid grid (col-10 offset-1): the header and the title keep 1/12 of the width + 12px on each side, so
   they spread out on large screens instead of staying in a centred box. */
.fvc-wrap {
    padding: 0 calc(100% / 12 + 12px);
}

/* =====================================================================================================================
   Header
   As the site's navbar (.menuTopContainer): fixed at the top, no line under it; the logo 34px from the top (ending at
   151px), the icons and «PT EN» row at the top right and the menu under it, the active line at 121px. site.js (as the
   site's script): scrolling down past 50px it slides up out of view (0.3s) and from then on is 90% white; scrolling up
   it comes back compact (logo 100px, 15px less on top, 0.5s); near the top, full size.
   ===================================================================================================================== */
.fvc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    transition: transform .3s, background-color .3s;
}

.fvc-header.is-solid { background: rgba(255, 255, 255, .9); }
.fvc-header.is-hidden { transform: translateY(-100%); }

/* Measured on fvcgroup.pt: the row of icons and «PT EN» 20px from the top, 34px tall, 7px in from the right, overlapping
   the bar by 25px; the bar (logo and menu, centred on each other) starts at 29px. The logo is the site's SVG (176×117)
   at 150×117, 10px to the left, 5px down, so the header is 29 + 122 = 151px. Compact: the row 5px from the top
   (overlap 20px), the logo 100×80, so 19 + 85 = 104px. */
.fvc-util {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    height: 34px;
    margin: 20px 7px -25px 0;
    font-size: 11px;
    line-height: 22px;
    letter-spacing: .22px;
    transition: margin .5s;
}

.fvc-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* The site's menu: on the right of the logo from 992px; under it, folded behind the hamburger. */
.fvc-collapse { display: flex; margin-left: auto; }
.fvc-toggler { display: none; }
.fvc-menu-account { display: none; }

/* The dark layer behind the open menu (as the site's .submenu-shadow: 50% black over a 20% black image). */
.fvc-shadow {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .6);
}

.fvc-shadow[hidden] { display: none; }

.fvc-header.is-compact .fvc-util { margin-top: 5px; margin-bottom: -20px; }
.fvc-header.is-compact .fvc-logo-svg { width: 100px; height: 80px; }

@media (prefers-reduced-motion: reduce) {
    .fvc-header, .fvc-util, .fvc-logo-svg { transition: none; }
}

.fvc-logo {
    flex: none;
    padding-top: 5px;
    color: #000;
    text-decoration: none;
    line-height: 0;
}

.fvc-logo-svg {
    display: block;
    width: 150px;
    height: 117px;
    margin-left: -10px;
    transition: width .5s, height .5s;
}

/* The social networks as on the site: 15px icons drawn in 1px black lines, 4px around each (23px apart). */
.fvc-social {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fvc-social a {
    display: block;
    padding: 6px 4px 4px;
    color: #000;
    line-height: 0;
}

.fvc-social svg { display: block; width: 15px; height: 24px; }
.fvc-social path { stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fvc-social a:hover { opacity: .6; }

/* «PT EN»: 11px, the current one bold, the other light; 10px either side of «PT». */
.fvc-lang { display: flex; margin-left: -18px; }
.fvc-lang-item { padding: 0; color: #000; font-weight: 300; letter-spacing: .02em; text-decoration: none; }
.fvc-lang-item:hover { text-decoration: underline; }
.fvc-lang-item:first-child { padding: 0 10px; }
.fvc-lang-item.selected { font-weight: 700; }

/* The account (name and «Sair», «Entrar», or the debug badge) on the left of the icons. */
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.account-name { color: #000; font-weight: 700; }

.inline-form { display: inline; margin: 0; max-width: none; }

.link-button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 300;
    color: #000;
    cursor: pointer;
}

.link-button:hover { text-decoration: underline; }

.fvc-util .btn-sm { background: none; color: #000; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .22px; text-transform: none; }
.fvc-util .btn-sm:hover { background: none; text-decoration: underline; }

/* PublicSite:DebugNoLogin (Development only) */
.debug-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #fde7e9;
    color: var(--req);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.fvc-util .debug-badge { font-size: 10px; padding: 0 6px; line-height: 18px; }

/* The menu as the site's: 16px / 600, each link 8px around and 50px on the left; the text underlined by a 1px line 20px
   under it (on hover and on the current page, which is bold). */
.fvc-nav {
    display: flex;
    min-width: 0;
}

.fvc-nav a {
    display: block;
    padding: 8px 8px 8px 50px;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: .02em;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.fvc-nav span { padding-bottom: 20px; border-bottom: 1px solid transparent; }
.fvc-nav a:hover span { border-bottom-color: #000; }
.fvc-nav a.active span { border-bottom-color: #000; font-weight: 700; }

/* =====================================================================================================================
   Title and image
   The current tab (where the site has «PROJETOS»: 12px / 700 as it renders there, spaced) and the site's name in PT
   Serif: 99px under the header, 20px over the image.
   ===================================================================================================================== */
.fvc-intro { padding-top: 99px; padding-bottom: 20px; }

.fvc-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.fvc-intro h1 {
    margin: 0;
    font: 400 40px/50px var(--fvc-serif);
    letter-spacing: .8px;
    color: #000;
}

/* The portal's tabs under the site's name, in the style of the site's menu (the current one bold and underlined). */
.fvc-subnav {
    display: flex;
    gap: 36px;
    margin-top: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fvc-subnav a {
    padding: 4px 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: .02em;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.fvc-subnav span { padding-bottom: 8px; border-bottom: 1px solid transparent; }
.fvc-subnav a:hover span { border-bottom-color: #000; }
.fvc-subnav a.active span { border-bottom-color: #000; font-weight: 700; }

/* The title as a dropdown of the user's sites (with login / debug): the site's thin chevron by the name (as the
   accordions': it turns up and blue when open); the list as the site's accordion rows — 16px, thin grey rules, a black
   line on top — with the current site in bold. site.js closes it on a click outside and on Escape. */
.site-switch { position: relative; min-width: 0; }

.site-switch summary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
}

.site-switch summary::-webkit-details-marker { display: none; }
.site-switch summary:hover h1 { color: #444; }
.site-switch summary:focus-visible { outline: 2px solid #000; outline-offset: 4px; }

.site-switch .caret {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: -8px;
    border-right: 1.5px solid #212529;
    border-bottom: 1.5px solid #212529;
    transform: rotate(45deg);
    transition: transform .2s;
}

.site-switch[open] .caret { transform: rotate(-135deg); margin-top: 8px; border-color: #0c63e4; }

.site-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    z-index: 30;
    min-width: 320px;
    max-width: min(90vw, 560px);
    max-height: 60vh;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-top: .8px solid #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.site-menu li + li { border-top: .8px solid var(--fvc-rule); }

.site-menu a, .site-menu .current {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    text-decoration: none;
}

.site-menu .current { font-weight: 700; }
.site-menu a:hover, .site-menu a:focus-visible { background: #f4f4f4; outline: none; }

/* The site's image (from the hub) across the whole width: 540px high on the site, at any width. */
.fvc-hero {
    height: 540px;
    overflow: hidden;
    background: #ececec;
}

.fvc-hero-strip { height: 240px; }

.fvc-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The round black «back to top» button of the site. */
.fvc-to-top {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 15;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.fvc-to-top::before, .fvc-to-top::after {
    content: "";
    position: absolute;
    left: 50%;
    background: #fff;
}

.fvc-to-top::before { top: 19px; width: 1.5px; height: 28px; margin-left: -.75px; }

.fvc-to-top::after {
    top: 19px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: none;
    border-left: 1.5px solid #fff;
    border-top: 1.5px solid #fff;
    transform: rotate(45deg);
    transform-origin: center;
}

.fvc-to-top:hover { background: #333; }

/* =====================================================================================================================
   Content
   As the site's sections (container-xl, 1320px): the title on the left of the box, the rest one column (1/12) in from
   each side, as the site's accordion. Login, «Os meus sites» and errors: a narrow column.
   ===================================================================================================================== */
.card {
    max-width: 1320px;
    margin: 0 auto;
    padding: 64px 12px 32px;
}

.card:not(.narrow) > :not(h2) {
    margin-left: calc(100% / 12);
    margin-right: calc(100% / 12);
}

.card.narrow { max-width: 620px; padding-top: 88px; }

.card h2 {
    margin: 0 0 26px;
    font: 400 40px/50px var(--fvc-serif);
    letter-spacing: .8px;
}

.intro {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #333;
    white-space: pre-line;
}

/* «A informação pode demorar…»: sober as the site, a thin grey clock and grey text (the first sentence a bit darker). */
.sync-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
}

.sync-note p { margin: 0; }
.sync-note strong { font-weight: 500; color: #333; }
.sync-note .sync-time { display: inline-block; margin-left: 2px; font-size: 13px; }

/* Clock drawn in CSS (no icon font, no inline SVG: the CSP allows neither inline styles nor extra hosts). */
.sync-icon {
    position: relative;
    flex: none;
    width: 13px;
    height: 13px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.sync-icon::before, .sync-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    background: currentColor;
    border-radius: 1px;
}

.sync-icon::before { top: 2px; width: 1px; height: 4px; }
.sync-icon::after { top: 5px; width: 3px; height: 1px; }

.err-box, .ok {
    padding: 12px 16px;
    margin-bottom: 24px;
}

.err-box { background: #fde7e9; color: var(--req); border-left: 3px solid var(--req); }
.ok { background: var(--ok-bg); color: var(--ok-text); border-left: 3px solid var(--ok-text); }
.ok a { margin-left: 8px; }

/* ---- Tables, as the site's «Tipologias»: centred, 13px bold capitals over 14px rows, thin grey rules ---- */
/* position: the hidden column labels (.sr-only, absolute) stay inside the scroll box instead of widening the page. */
.table-wrap { position: relative; overflow-x: auto; margin: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--fvc-cell);
}

th, td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    line-height: 21px;
    border-bottom: .8px solid var(--fvc-rule);
}

thead th {
    font-size: 13px;
    font-weight: 700;
    line-height: 19.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

td.action { text-align: right; width: 1%; }
sup { font-size: .65em; line-height: 0; }

.count { color: var(--muted); font-weight: 400; font-size: 13px; letter-spacing: 0; }

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: #f0f0f0;
    color: #424242;
}

.tag.available, .tag.yes { background: var(--ok-bg); color: var(--ok-text); }
.tag.no { background: #fde7e9; color: var(--req); }
.tag.waiting { background: var(--wait-bg); color: var(--wait-text); }
.tag.prereserved { background: #ffd97a; color: #5c3d00; }
.tag.reserved { background: var(--res-bg); color: #fff; }
.tag.sold { background: var(--sold-bg); color: #fff; }
.tag.muted-tag { background: #f0f0f0; color: var(--muted); }

/* «Estado de comercialização» (and «Pré-reservas», per fraction): one accordion per building › floor, as the site (black line above each, chevron on the
   right, the table inside with 16px / 20px of padding). */
.fvc-acc { margin-top: 26px; border-bottom: .8px solid #000; }

.fvc-acc-item > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: .8px solid #000;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    cursor: pointer;
    list-style: none;
}

.fvc-acc-item > summary::-webkit-details-marker { display: none; }

.fvc-acc-item > summary::after {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    margin: -6px 4px 0 auto;
    border-right: 1.5px solid #212529;
    border-bottom: 1.5px solid #212529;
    transform: rotate(45deg);
    transition: transform .2s;
}

.fvc-acc-item[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; border-color: #0c63e4; }
.fvc-acc-item > summary:focus-visible { outline: 2px solid #000; outline-offset: -2px; }

.fvc-acc-body { padding: 16px 20px; }
/* Cells on one line (the price and «Pré-reserva» too); separate borders, so the pinned cells keep their lines. */
.fvc-table {
    --fvc-action-w: 112px;
    width: 100%;
    margin: 0 0 16px;
    border-collapse: separate;
    border-spacing: 0;
}

.fvc-table th, .fvc-table td { white-space: nowrap; }

/* The state and the «Registar» column (fixed width, the button's) pinned on the right when the table scrolls
   sideways, so they are always in view; site.js marks a table that scrolls, for a soft shadow on their left. */
.fvc-table .col-state, .fvc-table .col-action { position: sticky; right: 0; z-index: 1; background: #fff; }
.fvc-table .col-action { width: var(--fvc-action-w); min-width: var(--fvc-action-w); }
.fvc-table.has-actions .col-state { right: var(--fvc-action-w); }

/* «Pedir informação» is longer than «Registar»: a wider column; on phones the button takes two lines. */
.fvc-table.has-info { --fvc-action-w: 196px; }

@media (max-width: 575px) {
    .fvc-table.has-info { --fvc-action-w: 136px; }
    .fvc-table .btn-info { white-space: normal; text-align: center; line-height: 1.35; }
}
/* The shadow: a 12px gradient on the left of each pinned state cell, the cell's full height including its bottom
   line, so the rows join into one unbroken vertical shadow. */
.table-wrap.is-scrollable .fvc-table .col-state::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -.8px;
    left: -12px;
    width: 12px;
    background: linear-gradient(to left, rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
    pointer-events: none;
}

/* ---- Buttons: square and black, small capitals ---- */
.btn-sm, .submit, .btn-secondary {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

.btn-sm {
    display: inline-block;
    padding: 7px 14px;
    background: #111;
    color: #fff;
    font-size: .7rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm:hover { background: #3a3a3a; }

.submit {
    font-family: inherit;
    line-height: inherit;
    background: #111;
    color: #fff;
    border: 0;
    padding: 16px 40px;
    font-size: .78rem;
    cursor: pointer;
}

.submit:hover { background: #3a3a3a; }

.btn-secondary {
    display: inline-block;
    padding: 15px 34px;
    font-size: .78rem;
    text-decoration: none;
    background: #fff;
    color: #111;
    box-shadow: inset 0 0 0 1.5px #111;
}

.btn-secondary:hover { background: #111; color: #fff; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* =====================================================================================================================
   Forms: one question per block, underlined fields with no box (as the site's contact form)
   ===================================================================================================================== */
form { max-width: 820px; }

.q {
    border: 0;
    margin: 0 0 34px;
    padding: 0;
    min-width: 0;
}

.q > label, .q > legend {
    display: block;
    margin-bottom: 12px;
    padding: 0;
    font-size: 1.02rem;
    font-weight: 600;
}

/* The questionnaires (pre-reservation, client registration) are numbered here, counting only the questions on screen:
   a follow-up hidden until «Não» (display: none) takes no number, so there are never gaps. */
.questions { counter-reset: question; }
.questions .q { counter-increment: question; }
.questions .q > legend::before, .questions .q > label:not(.opt)::before { content: counter(question) ". "; }

/* The answers (radio buttons): labels inside the question, so also styled by «.q > label». */
.q > .opt {
    padding: 7px 0;
    cursor: pointer;
}

.opt input { width: 18px; height: 18px; margin: 0; accent-color: #111; }

/* The site's payment conditions under question 7. */
.hint {
    margin: 0 0 10px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
    white-space: pre-line;
}

input:not([type=radio]):not([type=checkbox]), select, textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #111;
    border-radius: 0;
    color: var(--text);
}

textarea { resize: vertical; }

input:not([type=radio]):not([type=checkbox]):focus, select:focus, textarea:focus {
    outline: none;
    border-bottom: 2px solid #111;
    padding-bottom: 9px;
}

input::placeholder, textarea::placeholder { color: #9a9a9a; }

/* «Valor proposto» / «Condições propostas» only when the answer is «Não». */
.if-av-nao, .if-ac-nao { display: none; }
form:has(#av-nao:checked) .if-av-nao,
form:has(#ac-nao:checked) .if-ac-nao { display: block; }

.err { color: var(--req); font-size: .85rem; margin: 6px 0 0; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- «Pedir informação»: the fields two by two; the typologies only once «outras frações» is ticked (CSS) ---- */
.q-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.if-outras { display: none; }
form:has(#outras:checked) .if-outras { display: block; }
.typologies { min-width: 0; margin: 12px 0 0; padding: 0 0 0 28px; border: 0; }
.typologies legend { margin-bottom: 6px; padding: 0; font-size: .92rem; font-weight: 600; }
.typologies .opt { display: inline-flex; align-items: center; gap: 8px; margin-right: 24px; padding: 6px 0; cursor: pointer; }

/* ---- The captcha (as fvcgroup.pt's): «Captcha» over the 160×75 image and a 150×75 box for its 5 characters ---- */
.captcha > label { display: block; font-size: 14px; line-height: 21px; }
.captcha-row { display: flex; }
.captcha-row img { display: block; flex: none; width: 160px; height: 75px; }

.captcha .captcha-row input {
    flex: 0 1 150px;
    min-width: 90px;
    width: 150px;
    height: 75px;
    padding: 1px 2px;
    border: 1px solid #ccc;
    color: #111;
    font-size: 30px;
    text-align: center;
    text-indent: 5px;
    text-transform: lowercase;
}

.captcha .captcha-row input:focus { padding: 1px 2px; border: 1px solid #111; }
.captcha-dark .captcha-row input, .captcha-dark .captcha-row input:focus { border-color: #ccc; color: #fff; }
.captcha-dark > label { color: #fff; }

/* ---- The terms and personal data (required): a square box, the text small, the data part linking to the policy ---- */
.terms { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: start; }

.terms input {
    appearance: none;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    border: 1px solid #111;
    border-radius: 4px;
    background: transparent center / 100% no-repeat;
    cursor: pointer;
}

.terms input:checked { background-color: #111; background-image: url("/img/check.svg"); }
.terms input:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.terms label { color: var(--muted); font-size: 13px; line-height: 19px; cursor: pointer; }
.terms a { color: inherit; text-decoration: underline; }
.terms .err { grid-column: 2; }

/* On the black contact block, as the site: a white box, blue once ticked, the text 11px in white. */
.terms-dark input { border-color: #fff; }
.terms-dark input:checked { background-color: #0d6efd; border-color: #0d6efd; }
.terms-dark input:focus-visible { outline-color: #fff; }
.terms-dark label { color: #fff; font-size: 11.375px; line-height: 17px; }

/* ---- The contact block of fvcgroup.pt's project pages (measured there): on black, 30px / 24px of padding; the title
   (PT Serif 40px) in the first third, the form in the other two; underlined white fields 16px apart, the placeholders
   13px; the captcha and the terms with «Enviar» side by side, at the bottom. ---- */
.fvc-contact { margin-top: 24px; }

.fvc-contact-box {
    margin-inline: -10px;
    padding: 30px 24px;
    background: #000;
    color: #fff;
}

.fvc-contact-cols { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.fvc-contact-title { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 12px; }

.fvc-contact-title h2 {
    margin: 0;
    padding-left: 10px;
    font: 400 40px/50px var(--fvc-serif);
    letter-spacing: .8px;
    color: #fff;
}

.fvc-contact-main { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 12px; }
.fvc-contact-form { max-width: none; }
.fvc-contact-field { margin-bottom: 16px; }
.fvc-contact-grid { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.fvc-contact-grid > .fvc-contact-field { flex: 0 0 50%; max-width: 50%; padding: 0 12px; }
.fvc-contact-bottom { align-items: flex-end; }

.fvc-contact .fvc-contact-field > input, .fvc-contact .fvc-contact-field > textarea {
    padding: 6px 12px;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
}

.fvc-contact .fvc-contact-field > input:focus, .fvc-contact .fvc-contact-field > textarea:focus { padding-bottom: 5px; border-bottom: 2px solid #fff; }
.fvc-contact ::placeholder { color: #fff; font-size: 13px; opacity: 1; }
.fvc-contact .err { color: #ff9b9b; }
.fvc-contact-error { margin: 0 0 12px; color: #ff9b9b; font-size: 14px; }
.fvc-contact-ok { margin: 0 0 16px; color: #73ad93; font-size: 15px; }

/* «Enviar» as the site's links: a line before the word that grows on hover. */
.fvc-send {
    display: block;
    margin: 16px 0 0 auto;
    padding: 1px 6px 1px 70px;
    border: 0;
    background: linear-gradient(#fff, #fff) no-repeat -30px 50% / 88px 1px;
    color: #fff;
    font: 400 16px/30px var(--fvc-sans);
    cursor: pointer;
    transition: .5s;
}

.fvc-send:hover { background-position: 0 50%; padding-left: 100px; }
.fvc-send:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .fvc-send { transition: none; }
}

/* Narrow screens: one column (the title over the form, the fields one under the other). */
@media (max-width: 767px) {
    .fvc-contact-title, .fvc-contact-main, .fvc-contact-grid > .fvc-contact-field { flex-basis: 100%; max-width: 100%; }
    .fvc-contact-title h2 { margin-bottom: 24px; padding-left: 0; font-size: 30px; line-height: 38px; letter-spacing: .6px; }
    .fvc-contact-box { margin-inline: 0; padding: 30px 18px; }
}

@media (max-width: 575px) {
    .q-pair { grid-template-columns: 1fr; }
}

/* ---- The fraction of the form (opened from «Registar»): lines instead of a box, the name in serif ---- */
.fraction-card {
    margin: 0 0 44px;
    padding: 22px 0 24px;
    border-top: 1px solid #111;
    border-bottom: 1px solid var(--line);
}

.fc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.fc-title { font: 400 1.7rem/1.2 var(--fvc-serif); }
.fc-sub { margin-top: 4px; color: var(--muted); font-size: .88rem; }

/* Full width, so the five details fit on one line (they only wrap on narrow screens). */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px 28px;
    margin: 20px 0 0;
}

.fc-grid dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fc-grid dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; }
.fc-grid .fc-price { color: #111; font-family: var(--fvc-serif); font-size: 1.25rem; font-weight: 400; }

/* =====================================================================================================================
   Login, password and «Os meus sites»
   ===================================================================================================================== */
.top-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.auth .muted { margin: 0 0 20px; }
.auth-form { max-width: none; }
.auth-links { margin: 18px 0 0; font-size: .9rem; }
.auth-links a { color: #111; text-underline-offset: 3px; }

.site-list { list-style: none; padding: 0; margin: 0; }
.site-list li + li { border-top: 1px solid var(--line); }

.site-list a {
    display: block;
    padding: 18px 0;
    font: 400 1.35rem/1.3 var(--fvc-serif);
    text-decoration: none;
}

.site-list a:hover { color: #555; }

/* =====================================================================================================================
   Footer, as fvcgroup.pt's (measured there): black, 120px on top; the white logo (176×117) on the left and the address,
   email and social networks (24px, 7px around) on the right in 14px; a 70% white line; the six sections in columns
   1/9 of the page wide — the number in green (16px), the name in PT Serif 22px, the sub-pages at 14px / 600, 25px
   apart; a line; the privacy policy and «FVC Group 2021»; «Developed by Lisbon Project» in grey, centred.
   ===================================================================================================================== */
.fvc-footer {
    flex: none;
    padding-top: 120px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

/* As the site: no underline; on hover only the sections and sub-pages change, to the green of the numbers. */
.fvc-footer a { color: #fff; text-decoration: none; }
.fvc-footer .fvc-foot-main:hover, .fvc-footer .fvc-foot-sub:hover { color: #73ad93; }

.fvc-foot-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
}

.fvc-foot-logo { flex: none; line-height: 0; }
.fvc-footer .fvc-logo-svg { width: 176px; height: 117px; margin-left: 0; transition: none; }

.fvc-foot-contact { text-align: right; }
.fvc-foot-contact p { margin: 0; }
.fvc-foot-contact p + p { margin-top: 22px; }
.fvc-footer .fvc-social { justify-content: flex-end; margin-top: 10px; }
.fvc-footer .fvc-social a { padding: 7px; color: #fff; }
.fvc-footer .fvc-social a:hover { opacity: 1; }
.fvc-footer .fvc-social svg { width: 24px; height: 24px; }

/* The columns as the site's grid: each 1/9 of the page (1/6 of 8/12), 12px of padding, the first one at the margin. */
.fvc-foot-nav {
    display: flex;
    width: calc((100% + 24px) * .8);
    margin-inline: -12px;
}

.fvc-foot-col {
    display: flex;
    align-items: flex-start;
    flex: 0 0 calc(100% / 6);
    min-width: 0;
    padding: 20px 12px 0;
}

.fvc-foot-num {
    flex: none;
    padding-right: 8px;
    color: #73ad93;
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 1.6px;
}

.fvc-footer .fvc-foot-main {
    display: block;
    padding-bottom: 10px;
    font: 400 22px/30px var(--fvc-serif);
    letter-spacing: 1.1px;
}

.fvc-footer .fvc-foot-sub {
    display: block;
    height: 25px;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: .7px;
    white-space: nowrap;
}

.fvc-foot-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 20px;
    padding: 20px 0 2px;
    border-top: 1px solid rgba(255, 255, 255, .7);
}

.fvc-foot-dev {
    margin: 55px 0 0;
    padding-bottom: 15px;
    text-align: center;
    font-size: 11px;
}

.fvc-footer .fvc-foot-dev a { color: #666; }

/* Under 992px (as the site): the columns one under the other, the logo 120×80, the text 15px, less room on top. */
@media (max-width: 991px) {
    .fvc-footer { padding-top: 60px; font-size: 15px; }
    .fvc-footer .fvc-logo-svg { width: 120px; height: 80px; }
    .fvc-foot-nav { display: block; width: auto; margin-inline: 0; }
    .fvc-foot-col { padding-inline: 0; }
    .fvc-foot-dev { margin-top: 15px; }
}

/* Small phones: the address on whole lines (13px, the logo 100px), the copyright under the privacy policy. */
@media (max-width: 575px) {
    .fvc-foot-top { flex-wrap: wrap; gap: 16px; }
    .fvc-foot-contact { margin-left: auto; }
    .fvc-footer .fvc-logo-svg { width: 100px; height: 67px; }
    .fvc-foot-contact { font-size: 13px; line-height: 20px; white-space: nowrap; }
    .fvc-foot-contact p + p { margin-top: 20px; }
    .fvc-foot-bottom { flex-direction: column; align-items: flex-end; gap: 0; }
    .fvc-foot-bottom a { align-self: flex-start; }
}

/* =====================================================================================================================
   Smaller screens
   ===================================================================================================================== */
/* The site's breakpoints (measured on fvcgroup.pt). Up to 1366px: the menu at 14px, the logo 170px wide, and a smaller
   title block (the tab 10px, the name 32px, 39px under the header). */
@media (max-width: 1366px) {
    .fvc-nav a { font-size: 14px; }
    .fvc-logo-svg { width: 170px; }
    .fvc-intro { padding-top: 39px; }
    .fvc-eyebrow { margin-bottom: 8px; font-size: 10px; line-height: 20px; letter-spacing: 2px; }
    .fvc-intro h1 { font-size: 32px; line-height: 38px; letter-spacing: .64px; }
}

/* Under 992px the menu folds behind the site's hamburger (40px, three bars): site.js opens it by sliding it down
   (0.35s) over the dark layer. The account moves into it. Without the script it stays open. */
@media (max-width: 991px) {
    .fvc-toggler {
        display: block;
        padding: 4px 12px;
        background: none;
        border: 1px solid rgba(0, 0, 0, .1);
        border-radius: 6px;
        color: #000;
        line-height: 0;
        cursor: pointer;
    }

    .fvc-toggler svg { display: block; }
    .fvc-toggler:focus { outline: none; }
    .fvc-toggler:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

    .fvc-collapse { display: block; flex: 0 0 100%; margin: 0; }
    .fvc-header.has-menu .fvc-collapse:not(.show) { display: none; }
    .fvc-collapse.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }

    .fvc-nav { display: block; padding-bottom: 8px; }
    .fvc-nav a { padding: 8px 0 8px 50px; }

    .fvc-util .account { display: none; }
    .fvc-menu-account { display: block; padding: 4px 0 16px 50px; }
    .fvc-menu-account .account { font-size: 14px; }

    @media (prefers-reduced-motion: reduce) {
        .fvc-collapse.collapsing { transition: none; }
    }
}

/* Up to 835px: the logo 150px, the menu items at 22px with no line, 10px apart, under a thin grey line; the tab over
   the name at 14px. */
@media (max-width: 835px) {
    .fvc-wrap { padding-inline: calc(100% / 12 + 24px); }
    .fvc-util { margin-right: 22px; }
    .fvc-logo-svg { width: 150px; margin-left: -5px; }
    .fvc-toggler { margin-right: 15px; border: 0; border-radius: 0; }
    .fvc-collapse { border-top: 1px solid #efefef; }
    .fvc-nav a { margin-top: 10px; min-height: 50px; font-size: 22px; line-height: 32px; }
    .fvc-nav span, .fvc-nav a.active span { padding-bottom: 0; border-bottom: 0; }
    .fvc-eyebrow { font-size: 14px; letter-spacing: 2.8px; }
}

@media (max-width: 767px) {
    .fvc-wrap { padding-inline: 27px; }
}

/* Phone: the content in one column. */
@media (max-width: 760px) {
    .card h2 { font-size: 30px; line-height: 38px; letter-spacing: .6px; }
    .fvc-subnav { gap: 24px; margin-top: 16px; }
    .fvc-subnav a { font-size: 15px; }
    .fvc-hero { height: clamp(200px, 42vh, 360px); }
    .fvc-hero-strip { height: 140px; }
    .fvc-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
    .fvc-to-top::before { top: 14px; height: 21px; }
    .fvc-to-top::after { top: 14px; width: 10px; height: 10px; margin-left: -5px; }

    .card { padding: 36px 18px 24px; }
    .card.narrow { padding-top: 48px; }
    .card:not(.narrow) > :not(h2) { margin-left: 0; margin-right: 0; }
    .fvc-acc-item > summary { padding: 14px 8px; font-size: 15px; }
    .fvc-acc-body { padding: 8px 0; }
    th, td { padding: 11px 8px; }
}

@media (max-width: 640px) {
    .site-menu { min-width: 220px; }
    .top-head { flex-wrap: wrap; gap: 4px 12px; }
    .account { margin-bottom: 8px; }
}
