/* Closing call to action, shared by every page: the hero aquarium with the question from the
   brand document, and a short form beside it. Same card surface as the homepage sections. */
@font-face { font-family: Satoshi; src: url('./assets/satoshi-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Satoshi; src: url('./assets/satoshi-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

.contact-band { padding-block: var(--section-space); font-family: Satoshi, Arial, sans-serif; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; }

.contact-visual { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 620px; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.contact-visual > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.contact-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #131415f5 0%, #131415c7 38%, #13141500 72%); }
.contact-copy { padding: 36px; }
.contact-copy :is(h1, h2) { max-width: 520px; font-family: Satoshi, Arial, sans-serif; font-size: clamp(34px, 3.2vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.contact-copy > p { max-width: 420px; margin: 12px 0 0; color: #d6d6d1; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }
.contact-copy .contact-person { display: grid; gap: 2px; max-width: none; margin-top: 26px; padding-top: 18px; border-top: 1px solid #ffffff2e; font-size: 13px; }
.contact-person span { color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.contact-person strong { color: #f5f5f0; font-size: 19px; font-weight: 400; letter-spacing: -.02em; }
.contact-person a { justify-self: start; margin-top: 6px; padding-bottom: 3px; border-bottom: 1px solid #ffffff38; color: #e9e9e4; font-size: 14px; transition: border-color .45s; }
.contact-person a:hover, .contact-person a:focus-visible { border-color: #f5f5f0; }

/* Form */
.contact-band .contact-form { display: flex; flex-direction: column; gap: 22px; padding: 34px 36px 30px; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-field > label, .cf-field > legend { display: block; margin-bottom: 9px; padding: 0; color: #c9c9c5; font-size: 13px; }
.cf-field > label > span, .cf-field > legend > span { margin-left: 6px; color: #8f8f8d; font-size: 11px; }
.cf-field input:not([type="radio"]), .cf-field textarea { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid #ffffff24; border-radius: 8px; background: #131415; color: #f5f5f0; font: inherit; font-size: 15px; line-height: 1.45; resize: vertical; transition: border-color .3s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #7d7d7a; }
.cf-field input:not([type="radio"]):hover, .cf-field textarea:hover { border-color: #ffffff47; }
.cf-field input:not([type="radio"]):focus-visible, .cf-field textarea:focus-visible { border-color: #f5f5f0; outline: none; }

/* Space type as selectable pills; the chosen one fills in. */
/* Address suggestions drop down under the field. */
.cf-address { position: relative; }
.cf-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; padding: 6px; border: 1px solid #ffffff2e; border-radius: 8px; background: #1d1e1f; box-shadow: 0 18px 40px #00000066; }
.cf-suggest[hidden] { display: none; }
.cf-suggest ul { margin: 0; padding: 0; list-style: none; }
.cf-suggest li { padding: 10px 12px; border-radius: 5px; color: #d6d6d1; font-size: 14px; line-height: 1.35; cursor: pointer; }
.cf-suggest li:hover, .cf-suggest li[aria-selected="true"] { background: #ffffff12; color: #f5f5f0; }
/* Mapy.com terms: their logo sits inside the suggestion dialog, at least 10 px tall. */
.cf-suggest-credit { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid #ffffff14; color: #8f8f8d; font-size: 11px; }
.cf-suggest-credit img { display: block; width: auto; height: 18px; }

/* The message field takes any spare height, so the form has no empty band above its footer. */
.cf-grow { flex: 1; display: flex; flex-direction: column; }
.cf-grow textarea { flex: 1; min-height: 110px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; margin: 0; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span { display: block; padding: 10px 16px; border: 1px solid #ffffff2e; border-radius: 999px; color: #d6d6d1; font-size: 14px; line-height: 1.2; transition: background .35s, color .35s, border-color .35s; }
.cf-chip:hover span { border-color: #ffffff6b; }
.cf-chip input:checked + span { border-color: #f5f5f0; background: #f5f5f0; color: #131415; }
.cf-chip input:focus-visible + span { outline: 1px solid #f5f5f0; outline-offset: 3px; }

.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 20px; border-top: 1px solid #ffffff14; }
.cf-foot > p { max-width: 300px; margin: 0; color: #e9e9e4; font-size: 14px; line-height: 1.5; }
.cf-foot > p span { color: #8f8f8d; font-size: 12px; }
.cf-foot .pill { flex: none; }
.cf-privacy { margin: 12px 0 0; color: #8f8f8d; font-size: 12px; line-height: 1.5; }
.cf-privacy a { border-bottom: 1px solid #ffffff38; color: #c9c9c5; transition: border-color .4s; }
.cf-privacy a:hover, .cf-privacy a:focus-visible { border-color: #f5f5f0; }
.contact-band .form-status { margin: 0; color: #e9e9e4; font-size: 13px; }
.contact-band .draft-result { border-color: #ffffff2e; color: #c9c9c5; }

/* On desktop both supporting lines stay on one line each. */
@media (min-width: 1001px) {
  .cf-foot > p { max-width: none; white-space: nowrap; }
}
@media (min-width: 1150px) {
  .contact-copy > p:not(.contact-person) { max-width: none; white-space: nowrap; }
}
/* Closing call to action on every page except Kontakt: one card leading to the form. */
.closing-band { padding-block: var(--section-space); font-family: Satoshi, Arial, sans-serif; }
.closing-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 340px; padding: 36px; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.closing-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* Shade only behind the copy on the left; the rest of the photo stays bright. */
.closing-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #131415e0 0%, #131415a3 30%, #13141500 58%); }
.closing-copy h2 { max-width: 560px; font-family: Satoshi, Arial, sans-serif; font-size: clamp(34px, 3.2vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.closing-copy p { max-width: 460px; margin: 12px 0 0; color: #d6d6d1; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }
/* The button sits right under the copy, so the eye does not have to cross the card. */
.closing-copy .pill { margin-top: 26px; }

/* Kontakt page: one type scale for every card — 10 px label, card title, name, muted role, light value.
   The main contact gets the biggest card; general enquiries sit apart from the people. */
.company-band { padding-bottom: var(--section-space); font-family: Satoshi, Arial, sans-serif; }
.company-heading { margin-bottom: 20px; }
.company-heading h2 { max-width: none; font-family: Satoshi, Arial, sans-serif; font-size: clamp(34px, 3.2vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.company-heading p { max-width: 620px; margin: 8px 0 0; color: #a9a9a7; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; }

.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company-card { display: flex; flex-direction: column; min-width: 0; padding: 32px 34px; border: 1px solid #ffffff1a; border-radius: 10px; background: #18191a; }
.company-label { max-width: none; margin: 0 0 14px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.company-card h3 { margin: 0; color: #f5f5f0; font-size: clamp(22px, 1.8vw, 28px); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.company-card a { color: #e9e9e4; }
.company-people a, .company-general a, .company-lines a { padding-bottom: 3px; border-bottom: 1px solid #ffffff38; transition: border-color .45s; }
.company-people a:hover, .company-people a:focus-visible, .company-general a:hover, .company-general a:focus-visible, .company-lines a:hover, .company-lines a:focus-visible { border-color: #f5f5f0; }

/* Main contact */
.company-lead h3 { font-size: clamp(30px, 2.7vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.company-role { max-width: none; margin: 8px 0 0; color: #8f8f8d; font-size: 14px; }
.company-text { max-width: 440px; margin: 20px 0 0; color: #a4a4a1; font-size: 15px; line-height: 1.55; }
.company-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: auto 0 0; padding-top: 32px; }
.company-lines div { padding-top: 16px; border-top: 1px solid #ffffff24; }
.company-lines dt { margin-bottom: 8px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.company-lines dd { margin: 0; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -.02em; white-space: nowrap; }

/* The rest of the team, then general enquiries as a quieter inset box */
.company-people { margin: 0 0 24px; padding: 0; list-style: none; }
.company-people li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #ffffff14; }
.company-people li:first-child { padding-top: 4px; }
.company-people h3 { font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.025em; }
.company-people p { max-width: none; margin: 5px 0 0; color: #8f8f8d; font-size: 13px; }
.company-people a, .company-general a { flex: none; font-size: 14px; }
.company-general { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding: 18px 20px; border-radius: 8px; background: #131415; }
.company-general .company-label { margin-bottom: 6px; }
.company-general p:not(.company-label) { max-width: none; margin: 0; color: #a4a4a1; font-size: 13px; }

/* Company details */
.company-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; margin: 26px 0 0; }
.company-facts div { padding-top: 14px; border-top: 1px solid #ffffff14; }
.company-facts dt { margin-bottom: 6px; color: #8f8f8d; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.company-facts dd { margin: 0; color: #e9e9e4; font-size: 15px; line-height: 1.45; }

/* Every company detail is a copy button: the hint shows on hover and confirms after a click. */
.copy-value { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.copy-value > span:first-child { transition: color .3s; }
.copy-hint { color: #8f8f8d; font-size: 10px; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .3s, color .3s; }
.copy-value:hover > span:first-child, .copy-value:focus-visible > span:first-child { color: #fff; }
.copy-value:hover .copy-hint, .copy-value:focus-visible .copy-hint, .copy-value.is-copied .copy-hint { opacity: 1; }
.copy-value.is-copied .copy-hint { color: #f5f5f0; }
.copy-value:focus-visible { outline: 1px solid #f5f5f0; outline-offset: 4px; border-radius: 2px; }
@media (hover: none) { .copy-hint { opacity: .8; } }

/* Social networks as quiet rows: name on the left, handle on the right */
.company-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.company-socials a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #ffffff14; font-size: 15px; transition: color .35s; }
.company-socials li:nth-last-child(-n + 2) a { padding-bottom: 0; }
.company-socials .social-icon { flex: none; width: 18px; height: 18px; fill: #f5f5f0; }
.company-handle { margin-left: auto; color: #8f8f8d; font-size: 13px; transition: color .35s; }
.company-socials a:hover, .company-socials a:focus-visible { color: #fff; }
.company-socials a:hover .company-handle, .company-socials a:focus-visible .company-handle { color: #e9e9e4; }

/* Main contact beside the form: e-mail and phone in one row */
.contact-person .contact-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.contact-person .contact-links a { margin-top: 0; }

@media (max-width: 1100px) {
  .company-people li, .company-general { flex-direction: column; align-items: flex-start; gap: 10px; }
  .company-lines { grid-template-columns: 1fr; gap: 14px; padding-top: 26px; }
}
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-visual { min-height: 420px; }
  .contact-visual > img { object-position: center 30%; }
}
@media (max-width: 1000px) {
  .company-card { padding: 26px 24px; }
  .company-facts { grid-template-columns: 1fr; gap: 14px; }
  .company-handle { display: none; }
}
@media (max-width: 760px) {
  .contact-visual { min-height: 400px; border-radius: 9px; }
  .contact-copy { padding: 22px 18px; }
  .contact-copy :is(h1, h2) { font-size: 32px; }
  .contact-copy > p { font-size: 15px; }
  .contact-band .contact-form { gap: 20px; padding: 22px 16px 18px; border-radius: 9px; }
  .cf-row { grid-template-columns: 1fr; gap: 20px; }
  .cf-field input:not([type="radio"]), .cf-field textarea { font-size: 16px; }
  .cf-foot { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .cf-foot .pill { justify-content: space-between; }
  .closing-card { min-height: 400px; padding: 26px 18px 20px; border-radius: 9px; }
  .closing-copy { width: 100%; }
  .closing-card::before { background: linear-gradient(0deg, #131415f0 0%, #131415c7 50%, #13141500 85%); }
  .closing-copy h2 { font-size: 32px; }
  .closing-copy .pill { display: flex; margin-top: 22px; }
  .company-heading { margin-bottom: 18px; }
  .company-heading h2 { font-size: 34px; }
  .company-heading p { font-size: 15px; }
  .company-grid { grid-template-columns: 1fr; gap: 10px; }
  .company-card { padding: 24px 18px 22px; border-radius: 9px; }
  .company-lead h3 { font-size: 30px; }
  .company-general { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-chip span, .cf-field input, .cf-field textarea, .contact-person a, .company-card a, .company-handle, .copy-value > span, .copy-hint { transition: none; }
}
