/* Portal layer on top of Ornava Light (/css/style.css): only what the template doesn't have. */
:root {
  --ink: #171717;
  --grey: #737373;
  --brass: #c5a47e;
  --light: #f5f5f5;
  --line: rgba(0, 0, 0, 0.1);
  --warn: #b3472f;
}

body.portal { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
body.portal main { flex: 1; }

/* Page frame = the template's own: white navbar with the logo, photo banner with the page title, photo footer.
   The navbar is sticky instead of the template's relative-then-fixed switch, which makes the page jump. */
.portal-nav { position: sticky; top: 0; height: 100px; background: #fff; z-index: 99; box-shadow: 0 1px 0 var(--line); }
.portal-nav .p-brand { display: flex; align-items: center; gap: 14px; }
.portal-nav .logo-img { height: 56px; width: auto; }
.portal-nav .p-word { font-weight: 300; font-size: 18px; line-height: 1; letter-spacing: 5px; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.portal-nav .p-word i { font-style: normal; color: var(--brass); }
.portal-nav .p-tag { font-style: normal; font-size: 11px; line-height: 1; letter-spacing: 3px; text-transform: uppercase; color: var(--grey); padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 575px) { .portal-nav .logo-img { height: 46px; } .portal-nav .p-word { font-size: 13px; letter-spacing: 3px; } .portal-nav .p-tag { display: none; } }
/* a working tool opens closer to its content than a brochure page: the template's banner, at half its height */
.banner-header.p-banner { min-height: 360px; padding: 90px 0; background-position: center; }
.banner-header.p-banner h3 { margin-bottom: 0; overflow-wrap: anywhere; }
@media (max-width: 575px) { .banner-header.p-banner { min-height: 260px; padding: 60px 0; } .banner-header.p-banner h3 { font-size: 30px; } }
.footer .top .item p.p-foot-name { color: #fff; }
.footer .top .item .phone a, .footer .top .item .mail a, .footer .top .item .p-map a, .footer .top .item .p-insta a { color: var(--brass); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.3s; }
.footer .top .item .phone a:hover, .footer .top .item .mail a:hover, .footer .top .item .p-map a:hover, .footer .top .item .p-insta a:hover { color: #fff; }
.p-insta i { margin-right: 8px; }
/* the template makes every link inline-block, which pushes the copy button under a two-line address */
.footer .top .item .p-map a { display: inline; }
.footer .top .item .mail:before { display: none; }
.footer .top .item .logo img { height: 96px; width: auto; }
.footer .p-acts { margin-top: 25px; }
.footer .p-acts a { display: block; margin-top: 10px; }
/* copy buttons next to the address, phone and mail, as in the website footer */
.p-copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 10px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 11px; line-height: 1; vertical-align: middle; cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.p-copy:hover, .p-copy.done { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.p-copy.done i:before { content: "\f00c"; }
.p-copy.done:after { content: attr(data-done); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 4px; background: var(--brass); color: var(--ink); font: 400 11px/1 Outfit, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 991px) {
  .portal-nav .navbar-collapse { background: #fff; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); }
  .portal-nav .navbar-nav .nav-link { line-height: 34px !important; }
}

/* EN · NL switch with the Change language box (Google Translate) under it, as on the website: the box's button is
   Google's logo alone, as wide as the switch. It is the last menu item, so the box opens to the left; on a click
   (not only on hover) it has to become visible too. */
.portal-nav .p-langs { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-left: 18px; }
/* the template gives menu links a 1px margin; -2px on the right lets the last letter's spacing hang out, so the
   button below lines up with the letters */
.portal-nav .p-lang { margin: 0 -2px 0 0 !important; padding: 0 !important; font-size: 12px; letter-spacing: 2px; line-height: 1 !important; color: var(--grey); }
.portal-nav .p-lang a { color: inherit; opacity: 0.7; }
.portal-nav .p-lang a.on { opacity: 1; color: var(--brass); }
.p-gt-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; background: transparent; cursor: pointer; transition: border-color 0.3s; }
.p-gt-btn .p-gt-logo { width: 14px; height: 14px; }
.p-gt-btn:hover, .p-gt.show .p-gt-btn { border-color: var(--brass); }
.portal-nav .p-gt .dropdown-menu { padding: 20px 22px; }
.portal-nav .p-gt .dropdown-item { padding: 6px 0; font-size: 14px; color: var(--ink); background: none; }
.portal-nav .p-gt .dropdown-item:hover, .portal-nav .p-gt .dropdown-item.active { color: var(--brass); }
.portal-nav .p-gt .p-gt-original, .portal-nav .p-gt .p-gt-note { grid-column: 1 / -1; }
.portal-nav .p-gt .p-gt-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); }
/* twelve languages: two columns */
@media (min-width: 992px) {
  .portal-nav .p-gt .dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; top: 100%; left: auto; right: 0; width: 340px; margin-top: 0; }
  .portal-nav .p-gt .dropdown-menu.show { opacity: 1; visibility: visible; transform: none; }
}
/* on phones the template centres every menu link (margin: 0 auto !important) and caps the menu at 450px;
   the switch stays left like the rest, and the open language list must fit */
@media (max-width: 991px) {
  .portal-nav .navbar-collapse { max-height: calc(100vh - 100px); }
  .portal-nav .p-langs { width: max-content; margin: 10px 0 0; }
  .portal-nav .p-lang { margin: 0 -2px 0 0 !important; }
  .portal-nav .p-gt .dropdown-menu.show { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0 0; }
}
/* Google's translator adds a bar at the top, a tooltip and highlights on hover; the box replaces them */
body { top: 0 !important; }
body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
/* Arabic: Google does not mirror the page; its text blocks read right to left, letter-spacing would pull letters apart */
html.translated-rtl :not(:lang(en)) { letter-spacing: 0 !important; }
html.translated-rtl :is(p, li, h1, h2, h3, h4, h5, h6, label, dt, dd):not(:lang(en)) { direction: rtl; }

.p-top { padding: 120px 0; }
.p-top .section-linetitle { margin-bottom: 50px; }
.p-top .section-title { overflow-wrap: anywhere; }
.p-lede { font-size: 18px; line-height: 1.7; max-width: 56ch; }
.p-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brass); }
.p-label.grey { color: var(--grey); }

.p-card { background: var(--light); border-radius: 4px; padding: 50px; height: 100%; }
.p-card.white { background: #fff; border: 1px solid var(--line); }
.p-card h4 { text-transform: uppercase; letter-spacing: 2px; font-size: 20px; margin-bottom: 25px; }
@media (max-width: 575px) { .p-card { padding: 30px; } }

/* the template's pill buttons are drawn for dark grounds; give the ones on the white page a light-ground state (the footer stays dark) */
.portal main .durubtn { border-color: rgba(0, 0, 0, 0.2); }
.portal main .durubtn .text { color: var(--ink); }
.portal main .durubtn:hover, .portal main .durubtn3:hover { background: var(--ink); border-color: var(--ink); }
.portal main .durubtn:hover .text, .portal main .durubtn3:hover .text { color: #fff; }
button.durubtn, button.durubtn3 { cursor: pointer; }
.durubtn3[disabled] { opacity: 0.5; pointer-events: none; }

.p-eye { position: absolute; right: 14px; top: calc(50% - 8px); transform: translateY(-50%); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); padding: 4px 6px; cursor: pointer; }
.p-eye:hover { color: var(--brass); }
.form-group input[data-eye] { padding-right: 80px; }

.p-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.p-note { font-size: 13px; color: var(--grey); }
a.p-note, .p-note a { text-decoration: underline; }
.p-error { display: block; color: var(--warn); font-size: 14px; margin-top: 12px; }
.p-ok { color: #4f6b52; }
.p-empty { padding: 50px 0; font-style: italic; }
.p-check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 8px; }
.p-check input { margin-top: 7px; accent-color: var(--brass); }
.portal select { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; padding: 12px 16px; border-radius: 4px; }

/* project list */
.p-list { border-top: 1px solid var(--line); }
a.p-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.p-plate { font-size: 28px; font-weight: 200; color: var(--brass); letter-spacing: 1px; }
.p-title { display: block; font-size: 20px; color: var(--ink); letter-spacing: 1px; transition: color 0.3s; }
a.p-row:hover .p-title { color: var(--brass); }
.p-meta { display: block; font-size: 13px; color: var(--grey); }
.p-right { text-align: right; }
.p-status { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 3px 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--grey); white-space: nowrap; }
.p-status-quoted, .p-status-accepted { border-color: var(--brass); color: var(--ink); background: rgba(197, 164, 126, 0.12); }
.p-price { display: block; font-size: 22px; color: var(--ink); margin-top: 8px; }
@media (max-width: 575px) { a.p-row { grid-template-columns: 44px 1fr; } .p-right { grid-column: 2; text-align: left; } }

/* price block */
.p-quote { background: var(--ink); border-radius: 4px; padding: 50px; margin: 50px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.p-quote .amount { display: block; font-size: clamp(40px, 7vw, 72px); font-weight: 200; line-height: 1; color: #fff; letter-spacing: 1px; margin-top: 12px; }
.p-quote p { color: rgba(255, 255, 255, 0.7); margin: 16px 0 0; max-width: 56ch; }
.p-quote .p-label.grey { color: rgba(255, 255, 255, 0.5); }
@media (max-width: 575px) { .p-quote { padding: 30px; grid-template-columns: 1fr; } }

.p-section { margin-top: 70px; }
.p-section > .p-label { display: block; margin-bottom: 18px; }

.p-files { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.p-files li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p-files a { color: var(--ink); }
.p-files a:hover { color: var(--brass); }
.p-files .p-meta { white-space: nowrap; }

/* conversation: the template's comment block; a lettered badge stands in for its portrait photo */
.post-comment-section.p-thread { margin-top: 0; border-top: 1px solid var(--line); padding-top: 36px; }
.p-thread .post-comment-wrap { margin-bottom: 36px; }
.p-thread h5 { margin-bottom: 8px; }
.p-avatar { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--light); color: var(--grey); font-size: 17px; letter-spacing: 2px; }
.p-msg.out .p-avatar { background: var(--brass); color: var(--ink); }
.p-msg .body { white-space: pre-wrap; color: var(--ink); max-width: 70ch; margin-bottom: 0; }
.p-attach { display: block; margin-top: 8px; font-size: 14px; }
.p-attach a { text-decoration: underline; }
@media (max-width: 575px) { .p-avatar { width: 44px; height: 44px; font-size: 14px; } .p-thread .post-user-comment { margin-right: 14px; } }

.p-drop { border: 1px dashed rgba(0, 0, 0, 0.25); border-radius: 4px; padding: 34px; text-align: center; cursor: pointer; margin: 10px 0 20px; transition: all 0.3s; }
.p-drop:hover, .p-drop.over { border-color: var(--brass); background: rgba(197, 164, 126, 0.06); }
.p-drop i { display: block; color: var(--brass); font-size: 22px; margin-bottom: 8px; }
.p-queue { list-style: none; padding: 0; margin: 0 0 20px; }
.p-queue li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; color: var(--ink); }
.p-queue .bar { display: block; grid-column: 1 / -1; height: 2px; background: var(--line); }
.p-queue .bar i { display: block; height: 100%; width: 0; background: var(--brass); transition: width 0.15s; }
.p-queue .done .bar i { background: var(--ink); }


/* 6-digit sign-in code: big and spaced, so it reads like the one in the email */
.p-code input[name="code"] { font-size: 26px; letter-spacing: 8px; }
.p-code input[name="code"]::placeholder { font-size: 15px; letter-spacing: .3px; }

/* account details (invoice data): a small label over each field; the country list boxed like the text fields */
.p-form .p-form-card { height: auto; margin-top: 30px; }
.p-form .row > [class*="col-"] { margin-bottom: 22px; }
.p-field .p-label { display: block; margin-bottom: 8px; }
.p-field .form-group input, .p-field .form-group select { margin-bottom: 0; }
.p-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--grey); }
.portal .form-group select { display: block; width: 100%; padding: 16px 44px 16px 16px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c5a47e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 18px center; color: #737373; font: 300 15px/1.5em Outfit, sans-serif; letter-spacing: 0.3px; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border 0.3s ease-in-out; }
.portal .form-group select:hover, .portal .form-group select:focus { border-color: var(--brass); outline: none; }
/* new-project form: the inventory list template under the drop area */
.p-template { margin: -8px 0 20px; }
.p-template i { margin-right: 8px; color: var(--brass); }
/* new-project form: deadline + budget; the date field drawn like the text fields */
#form .form-group select { margin-bottom: 15px; }
.portal .form-group input[type="date"] { display: block; width: 100%; margin-bottom: 15px; padding: 16px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; background: #fff; font: 300 15px/1.5em Outfit, sans-serif; letter-spacing: 0.3px; color: #737373; transition: border 0.3s ease-in-out; }
.portal .form-group input[type="date"]:hover, .portal .form-group input[type="date"]:focus { border-color: var(--brass); outline: none; }
.p-form input[readonly], .p-form input[readonly]:hover { background: var(--light); border-color: rgba(0, 0, 0, 0.1); cursor: default; }
/* invoice to a business or a private person */
.p-choice { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.p-choice label { margin: 0; cursor: pointer; }
.p-choice input { position: absolute; opacity: 0; pointer-events: none; }
.p-choice span { display: inline-block; padding: 12px 24px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 40px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); transition: all 0.3s; }
.p-choice label:hover span { border-color: var(--ink); }
.p-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.p-choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.p-form[data-kind="private"] [data-business], .p-form[data-kind="business"] [data-private] { display: none !important; }

/* privacy notice and imprint (written by mockup-ornava-tr/build_avi_mock.py) */
.p-legal h4 { margin: 50px 0 16px; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; }
.p-legal p, .p-legal li, .p-legal td, .p-legal dd { line-height: 1.8; }
.p-legal ul { padding-left: 20px; margin: 0 0 20px; }
.p-legal li { margin-bottom: 10px; list-style: disc; }
.p-legal li b, .p-legal dt { color: var(--ink); font-weight: 400; }
.p-legal a { display: inline; text-decoration: underline; text-underline-offset: 4px; }
.p-legal .p-table { overflow-x: auto; margin: 10px 0 20px; }
.p-legal table { width: 100%; min-width: 480px; border: 0; border-collapse: collapse; }
.p-legal th { padding: 0 16px 12px 0; border: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.15); text-align: left; font-weight: 400; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass); }
.p-legal td { padding: 14px 16px 14px 0; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 24px; margin: 0 0 20px; }
.p-legal dd { margin: 0; }
/* copy buttons on a light page (the footer ones are drawn for the dark photo) */
.p-legal .p-copy { border-color: rgba(0, 0, 0, 0.2); color: var(--grey); vertical-align: middle; }
@media (max-width: 575px) { .p-legal dl { grid-template-columns: 1fr; gap: 2px; } .p-legal dd { margin-bottom: 12px; } }
.p-quote a.p-pdf { color: #fff; text-decoration: underline; }
.p-quote a.p-pdf:hover { color: var(--brass); }
