/* AZILILA / UI UX Pro Max refinement — additive, no form workflow changes. */
:root {
  --muted: #c1c4b7;
  --ui-surface: #22261f;
  --ui-control: #171b16;
  --ui-control-border: #89917f;
  --ui-ink-muted: #50594c;
  --ui-error: #f6c6ad;
  --ui-radius: 4px;
  --ui-fast: 160ms;
  --space: clamp(24px, 5vw, 88px);
}
body { font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.section { padding-block: clamp(72px, 8vw, 128px); }
.eyebrow { line-height: 1.65; font-weight: 600; }
.section-aside, .service-body p, .business-steps p,
.about-copy>p+p, .careers>div>p:not(.eyebrow) { font-size: 16px; line-height: 1.8; }
.section-aside, .business-lead>p:not(.eyebrow), .careers>div>p:not(.eyebrow),
.about-copy>p { max-width: 65ch; }
.light .small, .light .section-aside, .project-card>p,
.intro-bottom p, .about-copy>p+p { color: var(--ui-ink-muted); }
.small, .project-card>p, .careers .small { font-size: 14px!important; line-height: 1.75; }
.project-title { align-items: start; }
.project-title h3 { min-width: 0; }
.project-title>span { flex-shrink: 0; padding-top: 4px; }
.button { min-height: 52px; font-size: 15px; font-weight: 600; padding: 14px 24px; border-radius: var(--ui-radius); }
.button, .languages button, .close, .menu-toggle {
  transition: background-color var(--ui-fast), color var(--ui-fast), border-color var(--ui-fast);
}
.button:active, .close:active, .menu-toggle:active { filter: brightness(.9); }
.text-button, .header nav a, .header-cta, .film-play { min-height: 44px; }
.languages { gap: 8px; }
.languages button { min-width: 44px; min-height: 44px; font-size: 12px; border: 1px solid transparent; border-radius: 3px; }
.languages button[aria-pressed=true] { background: #ccb89112; border-color: #ccb89170; text-decoration: none; }
.languages button:hover { background: #ccb89118; }
.menu-toggle { min-width: 44px; padding-inline: 10px; }
:where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--gold); outline-offset: 4px;
}
.light :where(a,button,input,select,textarea,summary):focus-visible { outline-color: #69562d; }
.service summary { border-radius: 2px; }
.service summary:focus-visible { outline-offset: -4px; }
.film-controls input { min-height: 44px; }
.footer-lower a, .footer-lower .text-button { display: inline-flex; align-items: center; min-height: 44px; }
.contact .field>span { font-weight: 600; }
.contact .field input, .contact .field select, .contact .field textarea {
  padding: 13px 14px; border: 1px solid #7a8373; background: #ffffff55; border-radius: var(--ui-radius);
}
.contact .field input:hover, .contact .field select:hover, .contact .field textarea:hover { border-color: #69562d; }

/* Application: clear grouping, readable controls, no sticky element over inputs. */
dialog { padding: clamp(24px, 4vw, 44px); border-color: #77806c; border-radius: 8px; box-shadow: 0 24px 96px #0009; }
#career-dialog { width: min(900px, calc(100% - 48px)); max-height: calc(100dvh - 48px); overscroll-behavior: contain; }
.dialog-head { gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dialog-head>div { min-width: 0; }
.dialog-head h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.3; }
.dialog-head .eyebrow { font-size: 12px; letter-spacing: .14em; margin-bottom: 10px; }
.close { flex-shrink: 0; padding: 9px 12px; min-width: 44px; font-size: 14px; border: 1px solid #77806c; border-radius: var(--ui-radius); }
.close:hover { background: #ccb89112; }
.form-progress { margin: 24px 0; gap: 8px; border: 0; }
.form-progress>span { min-width: 0; padding: 12px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 3px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.form-progress b { display: block; font-size: 12px; margin: 0 0 6px; font-weight: 600; letter-spacing: .08em; }
.form-progress [aria-current=step] { background: #ccb89112; border-color: var(--gold); color: var(--ivory); }
.form-intro { font-size: 14px; line-height: 1.75; max-width: 70ch; margin-bottom: 32px; }
#career-form .form-grid { gap: 0 24px; }
#career-form .field { gap: 8px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
#career-form .field>span:first-child { font-weight: 600; color: var(--ivory); }
#career-form .field input, #career-form .field select, #career-form .field textarea {
  min-height: 52px; padding: 12px 14px; border: 1px solid var(--ui-control-border);
  background: var(--ui-control); border-radius: var(--ui-radius); font-size: 16px; line-height: 1.5; color: var(--ivory);
}
#career-form .field input:hover, #career-form .field select:hover, #career-form .field textarea:hover { border-color: var(--gold); }
#career-form .field input:disabled { opacity: 1; color: #a8aea0; background: #2c3029; border-color: #69715e; }
#career-form .field input[type=file] { padding: 12px; font-size: 14px; max-width: 100%; }
#career-form .field input[type=file]::file-selector-button {
  min-height: 44px; margin: 0 12px 0 0; padding: 10px 14px; border-radius: 3px; font-weight: 600;
}
#career-form .field [aria-invalid=true] { border: 2px solid var(--ui-error); }
.field-error { color: var(--ui-error); font-size: 14px; }
.form-error { border: 1px solid #d79d7d; border-left-width: 4px; border-radius: var(--ui-radius); padding: 18px 20px; font-size: 15px; line-height: 1.7; }
.form-error a { padding-block: 8px; text-underline-offset: 4px; }
.check-group legend { font-size: 16px; font-weight: 600; line-height: 1.6; }
.check-grid { gap: 12px; }
.check-grid label { min-height: 52px; padding: 12px; border: 1px solid #77806c; border-radius: var(--ui-radius); font-size: 14px; line-height: 1.55; }
.check-grid label:has(:checked) { border-color: var(--gold); background: #ccb89112; }
.check-grid label:focus-within, .checkline:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.checkline { min-height: 48px; padding: 10px 0; margin: 16px 0; font-size: 14px; line-height: 1.7; }
.checkline input, .check-grid input { width: 22px; height: 22px; margin-top: 2px; }
.checkline span, .check-grid label>span { min-width: 0; }
.upload-guide { padding: 24px; margin: 8px 0 28px; border: 1px solid #69715e; border-left: 3px solid var(--gold); background: var(--ui-surface); border-radius: var(--ui-radius); }
.upload-guide p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.upload-guide .eyebrow { color: var(--gold); margin-bottom: 12px; }
.document-preview { gap: 24px; }
.document-preview .text-button { font-size: 14px; }
.form-actions { padding-top: 24px; margin-top: 32px; gap: 24px; }
.form-actions>.text-button { font-size: 14px; }
.form-actions>div { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.form-actions .button { white-space: normal; text-align: center; }
.review-list { gap: 0 24px; }
.review-list>div { padding-block: 16px; }
.review-list dt { font-size: 13px; }
.review-list dd { font-size: 16px; line-height: 1.65; }
.download-ready { border-radius: var(--ui-radius); background: #ccb8910a; }
.download-ready p { font-size: 15px; }
html[lang=ka] .dialog-head h2 { font-size: clamp(22px, 2.7vw, 30px); }
html[lang=ka] .eyebrow { letter-spacing: .04em; }

@media (max-width: 1000px) {
  .header nav a { padding-block: 12px; }
  .section-head { gap: 32px; }
}
@media (max-width: 600px) {
  :root { --space: 24px; }
  .header { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 24px 12px; }
  .brand { grid-column: 1; grid-row: 1; min-height: 44px; }
  .header-actions { display: contents; }
  .menu-toggle { grid-column: 2; grid-row: 1; font-size: 14px; border: 1px solid var(--line); border-radius: 3px; }
  .languages { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .languages button { min-width: 44px; padding: 8px; }
  .hero { height: auto; min-height: 650px; }
  .hero-content { padding-block: 64px 140px; }
  .hero h1 { font-size: clamp(43px, 10.5vw, 63px); }
  .hero-bottom p, .intro-bottom p, .complex-content>p:not(.eyebrow),
  .business-lead>p:not(.eyebrow), .business-steps p, .about-copy>p+p,
  .careers>div>p:not(.eyebrow), .service-body p { font-size: 16px; }
  .service h3 { font-size: clamp(23px, 6.7vw, 29px); line-height: 1.25; }
  .service summary { gap: 12px; }
  .project-image.tall { height: auto; aspect-ratio: 4 / 5; }
  .project-image { height: auto; aspect-ratio: 4 / 3; }
  .project-title { gap: 12px; }
  .project-title h3 { font-size: 22px; }
  .project-title>span { font-size: 12px; }
  .film-play { min-height: 44px; }
  .film-controls input { min-height: 44px; }
  .film-overlay { bottom: 165px; }
  #career-dialog, dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 16px; border-radius: 6px; }
  .dialog-head { gap: 12px; padding-bottom: 20px; }
  .dialog-head h2 { font-size: 25px; }
  .close { padding-inline: 8px; font-size: 12px; }
  .form-progress { gap: 6px; margin-block: 20px; }
  .form-progress>span { padding: 10px 6px; font-size: 12px; }
  .form-intro { margin-bottom: 28px; }
  #career-form .form-grid { gap: 0; }
  .check-grid { grid-template-columns: 1fr; }
  .check-grid label { font-size: 15px; }
  .upload-guide { padding: 18px; }
  .form-actions { gap: 16px; }
  .form-actions>div { display: flex; width: 100%; gap: 12px; }
  .form-actions>div>.button { flex: 1 1 105px; min-width: 0; padding: 13px 10px; font-size: 14px; }
  .form-actions>.text-button { align-self: flex-start; }
  .footer-upper { align-items: flex-start; flex-wrap: wrap; }
  .footer-lower { gap: 12px 24px; font-size: 12px; }
}
@media (max-width: 480px) {
  .form-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-progress>span { padding: 10px; }
  .form-progress b { display: inline; margin-right: 8px; }
}
@media (max-width: 359px) {
  :root { --space: 20px; }
  .header { padding-inline: 20px; }
  .hero h1 { font-size: 41px; }
  .hero-footer { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
  .project-card:hover img { transform: none; }
}

/* Localized file-control text; the OS file picker itself remains native. */
.field:has(.localized-file-input) { position: relative; }
input.localized-file-input { position: absolute!important; width: 1px!important; height: 1px!important; min-height: 0!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip-path: inset(50%)!important; white-space: nowrap!important; }
.file-picker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; border: 1px solid var(--ui-control-border); border-radius: var(--ui-radius); cursor: pointer; }
.file-picker-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--gold); color: #151715; border-radius: 3px; font-weight: 600; }
.file-picker-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.field:has(.localized-file-input:focus-visible) .file-picker-button { outline: 3px solid var(--gold); outline-offset: 4px; }
.field:has(.localized-file-input[aria-invalid=true]) .file-picker { border: 2px solid var(--ui-error); }
.field:has(.localized-file-input:disabled) .file-picker { opacity: .7; cursor: default; }
#contact-form .form-error { color: #702b0d; border-color: #9c4622; background: #fff6ee; }
#contact-form .form-error a { display: block; color: inherit; }
#contact-form .checkline { color: #262d23; }
#contact-status { overflow-wrap: anywhere; }
@media (max-width:600px) { #contact-submit, #contact-new { width: 100%; margin-block: 6px; } }

/* Bot trap is outside the visual/keyboard/accessibility flow. */
.form-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;}

/* Clean section labels and predictable page/dialog scrolling. */
html { scroll-padding-top: 24px; scrollbar-gutter: stable; }
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
.service summary { grid-template-columns: minmax(0, 1fr) 24px; }
.service-body { padding-left: 0; }
.service h3, .business-steps article>div { min-width: 0; }
.intro { display: block; }
.intro>div { max-width: 1100px; }
@media (min-width: 1001px) {
  .header { position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 24px #00000018; }
  html { scroll-padding-top: calc(var(--header-height, 96px) + 24px); }
}
@media (max-width: 600px) {
  .service summary { grid-template-columns: minmax(0, 1fr) 18px; }
}

/* Company address and compact footer contacts. */
.address-strip { padding: 0 var(--space); background: #20251f; border-bottom: 1px solid #ccb89130; }
.address-strip a { display: flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; color: #ddd7c9; font-size: 12px; line-height: 1.65; padding-block: 8px; }
.address-pin { color: var(--gold); font-size: 21px; line-height: 1; }
.contact-intro { max-width: 34ch; color: var(--ui-ink-muted); margin-top: 28px; }
.footer-contacts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: stretch; padding-bottom: 40px; margin-bottom: 36px; border-bottom: 1px solid #ffffff22; }
.contacts-details { padding-block: 6px; min-width: 0; }
.contacts-details h2 { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.02em; margin-bottom: 24px; }
.contacts-details address { font-style: normal; font-size: 14px; line-height: 1.8; }
.contacts-details address p + p { margin-top: 18px; }
.contact-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.contacts-details a { overflow-wrap: anywhere; }
.contacts-details address a { display: inline-flex; align-items: center; min-height: 44px; }
.contacts-map-link { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-size: 13px; min-height: 44px; margin-top: 18px; }
.contacts-map-area { min-width: 0; }
.map-privacy { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 10px; max-width: 65ch; }
.contacts-map { overflow: hidden; min-height: 280px; border: 1px solid #ccb89145; border-radius: 4px; background: #252c24; }
.contacts-map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (max-width: 700px) {
  .footer-contacts { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 30px; }
  .contacts-map, .contacts-map iframe { min-height: 260px; }
}
