/* AZ-CNC company, contact, and RFQ pages */
.company-page {
    --page-black: #000000;
    --page-ink: #111111;
    --page-muted: #6e6e73;
    --page-line: rgba(0, 0, 0, 0.08);
    --page-soft: #f5f5f7;
    background: #ffffff;
    color: var(--page-ink);
}

.company-page,
.company-page * {
    box-sizing: border-box;
}

.company-page-shell {
    width: min(calc(100% - 48px), 1240px);
    margin: 0 auto;
}

.company-page .eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--page-muted);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.company-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: #000;
}

.company-hero-image {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.88) 0%,
            rgba(0,0,0,.72) 32%,
            rgba(0,0,0,.42) 55%,
            rgba(0,0,0,.18) 100%
        ),
        url("/img/about/about-hero.jpg");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


.company-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 120px 80px 96px;
}

.company-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
    gap: clamp(56px, 9vw, 140px);
    align-items: end;
}

.company-hero h1 {
    max-width: 830px;
    margin: 0;
    font-size: clamp(3.25rem, 7.1vw, 7rem);
    line-height: .93;
    font-weight: 300;
    letter-spacing: -.065em;
}

.company-hero-copy {
    max-width: 410px;
    padding-bottom: 8px;
}

.company-hero-copy p {
    margin: 0 0 30px;
    color: rgba(255,255,255,.73);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
    font-weight: 400;
}

.text-link,
.hero-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
}

.hero-action {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,.52);
}

.text-link i,
.hero-action i {
    transition: transform .22s ease;
}

.text-link:hover i,
.hero-action:hover i {
    transform: translateX(4px);
}

.page-section {
    padding: 120px 0;
}

.page-section--soft {
    background: var(--page-soft);
}

.page-section--dark {
    background: #000000;
    color: #ffffff;
}

.section-heading-grid {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: clamp(48px, 9vw, 140px);
    align-items: start;
}

.section-heading-grid h2,
.form-intro h1,
.contact-intro h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(2.55rem, 5vw, 4.9rem);
    line-height: 1.03;
    font-weight: 350;
    letter-spacing: -.055em;
}

.section-copy {
    max-width: 690px;
}

.section-copy > p {
    margin: 0 0 24px;
    color: var(--page-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
    line-height: 1.7;
    font-weight: 400;
}

.page-section--dark .section-copy > p {
    color: rgba(255,255,255,.68);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 88px;
    border-top: 1px solid var(--page-line);
    border-bottom: 1px solid var(--page-line);
}

.stat-item {
    min-height: 190px;
    padding: 34px 28px 30px 0;
    border-right: 1px solid var(--page-line);
}

.stat-item:not(:first-child) {
    padding-left: 28px;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-value {
    display: block;
    margin-bottom: 28px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1;
    font-weight: 350;
    letter-spacing: -.055em;
}

.stat-label {
    color: var(--page-muted);
    font-size: .84rem;
    line-height: 1.5;
    font-weight: 600;
}

.capability-list {
    margin-top: 76px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.capability-row {
    display: grid;
    grid-template-columns: 56px minmax(190px, .75fr) minmax(0, 1.25fr);
    gap: 32px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    align-items: baseline;
}

.capability-index {
    color: rgba(255,255,255,.38);
    font-size: .75rem;
    letter-spacing: .08em;
}

.capability-row h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

.capability-row p {
    margin: 0;
    color: rgba(255,255,255,.62);
    line-height: 1.65;
    font-weight: 400;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 70px;
}

.value-card {
    min-height: 290px;
    padding: 34px;
    border: 1px solid var(--page-line);
    border-radius: 18px;
    background: #ffffff;
}

.value-card i {
    font-size: 1.35rem;
}

.value-card h3 {
    margin: 64px 0 16px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.value-card p {
    margin: 0;
    color: var(--page-muted);
    line-height: 1.7;
    font-weight: 400;
}

/* Contact and RFQ */
.form-page-hero {
    padding: 108px 0 72px;
    background: #ffffff;
}

.form-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr);
    gap: clamp(54px, 10vw, 150px);
    align-items: end;
}

.form-intro p,
.contact-intro p {
    max-width: 650px;
    margin: 28px 0 0;
    color: var(--page-muted);
    font-size: 1.12rem;
    line-height: 1.75;
    font-weight: 400;
}

.response-note {
    padding: 24px 0 4px 30px;
    border-left: 1px solid var(--page-line);
}

.response-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: .94rem;
}

.response-note span {
    color: var(--page-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(250px, .52fr) minmax(0, 1.48fr);
    gap: clamp(46px, 8vw, 110px);
    padding: 54px 0 120px;
}

.contact-details {
    position: sticky;
    top: 104px;
    align-self: start;
}

.contact-detail {
    padding: 24px 0;
    border-bottom: 1px solid var(--page-line);
}

.contact-detail:first-child {
    border-top: 1px solid var(--page-line);
}

.contact-detail-label {
    display: block;
    margin-bottom: 9px;
    color: var(--page-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-detail a,
.contact-detail p {
    margin: 0;
    color: var(--page-ink);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 500;
}

.contact-detail a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.az-form {
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid var(--page-line);
    border-radius: 20px;
    background: #ffffff;
}

.az-form-section + .az-form-section {
    margin-top: 48px;
    padding-top: 44px;
    border-top: 1px solid var(--page-line);
}

.form-section-heading {
    display: flex;
    gap: 18px;
    align-items: baseline;
    margin-bottom: 28px;
}

.form-section-number {
    color: var(--page-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.form-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
    display: block;
    margin-bottom: 9px;
    color: #2b2b2d;
    font-size: .78rem;
    font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #d7d7da;
    border-radius: 7px;
    outline: 0;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: .94rem;
    font-weight: 450;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9b9ba0;
}

.form-help {
    display: block;
    margin-top: 8px;
    color: var(--page-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.file-drop {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px dashed #a9a9ae;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.file-drop:hover,
.file-drop.is-dragging {
    border-color: #111111;
    background: #f4f4f4;
}

.file-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop i {
    margin-bottom: 16px;
    font-size: 1.55rem;
}

.file-drop strong {
    display: block;
    margin-bottom: 6px;
    font-size: .95rem;
}

.file-drop span {
    color: var(--page-muted);
    font-size: .8rem;
}

.file-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 13px;
    border-radius: 7px;
    background: var(--page-soft);
    font-size: .8rem;
}

.file-item span:last-child {
    flex: 0 0 auto;
    color: var(--page-muted);
}

.checkbox-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 26px;
}

.checkbox-row input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #000000;
}

.checkbox-row label {
    color: var(--page-muted);
    font-size: .8rem;
    line-height: 1.55;
    font-weight: 450;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
}

.form-submit {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 25px;
    border: 1px solid #000000;
    border-radius: 6px;
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.form-submit:hover {
    background: #202020;
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: .58;
    cursor: wait;
    transform: none;
}

.form-status {
    margin: 0;
    color: var(--page-muted);
    font-size: .82rem;
    line-height: 1.5;
}

.form-status.is-success { color: #176b35; }
.form-status.is-error { color: #a12929; }

.map-panel {
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 60px 24px;
    background:
        linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
        repeating-linear-gradient(0deg, transparent, transparent 45px, rgba(255,255,255,.055) 46px),
        repeating-linear-gradient(90deg, transparent, transparent 45px, rgba(255,255,255,.055) 46px),
        #111111;
    color: #ffffff;
    text-align: center;
}

.map-panel h2 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    font-weight: 350;
    letter-spacing: -.045em;
}

.map-panel p {
    margin: 0 0 28px;
    color: rgba(255,255,255,.65);
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .company-page-shell { width: min(calc(100% - 80px), 1240px); }
    .company-hero { min-height: 540px; }
    .company-hero-grid,
    .section-heading-grid,
    .form-hero-grid,
    .form-layout { grid-template-columns: 1fr; }
    .company-hero-grid { gap: 44px; }
    .company-hero-copy { max-width: 620px; }
    .page-section { padding: 90px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--page-line); }
    .values-grid { grid-template-columns: 1fr; }
    .value-card { min-height: 230px; }
    .value-card h3 { margin-top: 44px; }
    .form-layout { padding-top: 20px; }
    .contact-details { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
}

@media (max-width: 767.98px) {
    .company-page-shell { width: min(calc(100% - 30px), 1240px); }
    .company-hero-content { padding: 90px 0 70px; }
    .company-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .page-section { padding: 74px 0; }
    .stats-grid { grid-template-columns: 1fr; margin-top: 58px; }
    .stat-item,
    .stat-item:not(:first-child) { min-height: auto; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--page-line); }
    .stat-item:last-child { border-bottom: 0; }
    .capability-row { grid-template-columns: 34px 1fr; gap: 18px; }
    .capability-row p { grid-column: 2; }
    .form-page-hero { padding: 74px 0 44px; }
    .response-note { padding: 20px 0 0; border-top: 1px solid var(--page-line); border-left: 0; }
    .contact-details { grid-template-columns: 1fr; }
    .az-form { padding: 24px 18px; border-radius: 14px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field--full { grid-column: auto; }
    .form-actions { align-items: stretch; flex-direction: column; }
    .form-submit { width: 100%; }
}

/* Removable RFQ attachments */
.file-item-details {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.file-item-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    flex: 0 0 auto;
    color: var(--page-muted);
}

.file-item-remove {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: var(--page-muted);
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.file-item-remove:hover,
.file-item-remove:focus-visible {
    background: rgba(0, 0, 0, .06);
    color: #111111;
    outline: none;
}

.file-item-remove i {
    font-size: .72rem;
}

@media (max-width: 575.98px) {
    .file-item {
        align-items: flex-start;
    }

    .file-item-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .file-item-remove span {
        display: none;
    }
}


/* Cloudflare Turnstile */
.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding-top: 2px;
}

.captcha-help {
    max-width: 330px;
    margin: 0;
    color: var(--page-muted);
    font-size: .76rem;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .captcha-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .cf-turnstile {
        max-width: 100%;
        transform-origin: left top;
    }
}

/* Visually hidden anti-spam field without creating iOS horizontal overflow */
.form-honeypot {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Allow every form/grid child to shrink inside narrow Safari viewports */
.form-hero-grid > *,
.form-layout > *,
.form-grid > *,
.az-form,
.az-form-section,
.form-field,
.captcha-row {
    min-width: 0;
}
