/* Homepage contact: introduction beside a compact three-column information panel. */
.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #101418;
    color: var(--color-white);
    padding: var(--section-space-compact, 64px) 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.home-contact-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    z-index: -2;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 14, 18, .94), rgba(10, 14, 18, .76) 45%, rgba(10, 14, 18, .24)), linear-gradient(0deg, rgba(10, 14, 18, .65), transparent 75%);
    pointer-events: none;
}

.home-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: end;
    gap: clamp(28px, 4vw, 52px);
}

/* Blend the homepage photo into the footer with a gentle wave boundary. */
.home-page .contact-section:last-child {
    border-bottom: 0;
}

.home-page .contact-section:last-child::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: clamp(80px, 12vw, 150px);
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 19, 21, 0), #111315);
    pointer-events: none;
}

.home-page + .site-footer {
    --home-footer-wave-height: clamp(24px, 4vw, 48px);
    border-top: 0;
    background-color: #111315;
    background-image: radial-gradient(ellipse at 0% 100%, rgba(215, 25, 32, .045), transparent 50%);
}

.home-page + .site-footer::after {
    top: calc(1px - var(--home-footer-wave-height));
    left: 0;
    right: 0;
    height: var(--home-footer-wave-height);
    background: url('../../images/home-footer-wave.svg') center / 100% 100% no-repeat;
}

.home-contact-intro {
    min-width: 0;
}

.home-contact-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.home-contact-tag .eyebrow {
    margin: 0;
}

.home-contact-tag::after {
    content: '';
    width: 48px;
    height: 1px;
    background: var(--color-brand-accent, #d71920);
}

.home-contact-title {
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.04em;
    color: var(--color-white);
    margin: 0 0 16px;
}

.home-contact-description {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-soft, #d2d3d5);
    margin: 0;
    max-width: 480px;
}

.home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 24px;
    margin-top: 24px;
}

.home-contact-actions .home-contact-button {
    gap: 16px;
    min-height: 56px;
    padding: 4px 24px 4px 4px;
    border: 2px solid var(--color-brand-accent);
    border-radius: 999px;
    background: linear-gradient(90deg, #ec1720, var(--color-brand-primary));
    color: var(--color-white);
    font-size: .9rem;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 20px rgba(215, 25, 32, .18);
    transition: filter .25s ease, box-shadow .25s ease;
}

.home-contact-actions .home-contact-button:hover {
    transform: none;
    filter: brightness(1.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 24px rgba(215, 25, 32, .3);
}

.home-contact-button-icon,
.home-contact-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.home-contact-button-icon {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .07);
}

.home-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: .95rem;
    color: var(--color-white);
    transition: color .25s ease;
}

.home-contact-phone strong {
    font-weight: 700;
    line-height: 1.4;
}

.home-contact-phone-icon {
    width: 54px;
    height: 54px;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(10, 14, 18, .3);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .025);
}

.home-contact-phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.home-contact-phone strong,
.home-contact-phone > span > span {
    display: block;
}

.home-contact-phone > span > span {
    font-size: .75rem;
    color: var(--color-text-soft, #d2d3d5);
    margin-top: 2px;
}

.home-contact-details {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 28px 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(16, 20, 24, .9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-contact-detail {
    min-width: 0;
    padding: 0 22px;
    font-size: .8rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.home-contact-detail + .home-contact-detail {
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.home-contact-detail-icon {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--color-brand-accent, #d71920);
    margin-bottom: 14px;
}

.home-contact-detail h3 {
    margin: 0 0 6px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4;
}

.home-contact-detail p,
.home-contact-detail address {
    margin: 0;
    font-style: normal;
    color: var(--color-text-soft, #d2d3d5);
}

.home-contact-detail a:hover,
.home-contact-phone:hover {
    color: var(--color-brand-accent, #d71920);
}

@media (max-width: 1023px) {
    .home-contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .contact-section::before {
        background: linear-gradient(180deg, rgba(10, 14, 18, .86), rgba(10, 14, 18, .65));
    }

    .home-contact-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .home-contact-actions .home-contact-button {
        min-height: 46px;
        padding: 3px 14px 3px 3px;
        gap: 10px;
        font-size: .8rem;
        white-space: nowrap;
    }

    .home-contact-button-icon {
        width: 36px;
        height: 36px;
    }

    .home-contact-phone {
        gap: 10px;
        font-size: .8rem;
        white-space: nowrap;
    }

    .home-contact-phone-icon {
        width: 44px;
        height: 44px;
    }

    .home-contact-details {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        padding: 0 22px;
    }

    .home-contact-detail {
        padding: 22px 0;
    }

    .home-contact-detail + .home-contact-detail {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
    }
}


/* --------------------------------------------------------------------------
   2. İletişim Sayfası Şablonu (Page Content & Light Architectural Theme)
   -------------------------------------------------------------------------- */
.page-content {
    background-color: #ffffff;
    position: relative;
}

.contact.contact--page,
.contact {
    background: #ffffff;
    color: var(--color-ink, #1f2227);
    padding: clamp(60px, 7vw, 90px) 0;
}

.contact--page .section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.contact--page .section-head .eyebrow {
    color: var(--color-brand-accent, #d71920);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.contact--page .section-head h2 {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.15;
}

.contact--page .section-head p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    max-width: 640px;
}

.contact-grid--page {
    display: grid;
    grid-template-columns: 1.08fr 0.96fr;
    gap: clamp(24px, 3.5vw, 44px);
    align-items: stretch;
    margin-top: 0;
}

@media (max-width: 991px) {
    .contact-grid--page {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 640px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* İletişim Sayfası Bilgi Kartları (Engineering Technical Cards) */
.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 30px 18px 16px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    border-left-color: var(--color-brand-accent, #d71920);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.contact-card-wa:hover {
    border-left-color: #22c55e;
}

.contact-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.contact-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-code {
    font-family: var(--font-body, Poppins, Arial, sans-serif);
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.contact-card-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}

.contact-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(215, 25, 32, 0.07);
    border: 1px solid rgba(215, 25, 32, 0.08);
    color: var(--color-brand-accent, #d71920);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card:hover .contact-card-icon {
    background: rgba(215, 25, 32, 0.08);
    border-color: rgba(215, 25, 32, 0.25);
    color: var(--color-brand-accent, #d71920);
}

.contact-card-wa:hover .contact-card-icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.contact-card-arrow {
    position: absolute;
    top: 16px;
    right: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
    color: var(--color-brand-accent, #d71920);
    transform: translate(2px, -2px);
}

.contact-card-wa:hover .contact-card-arrow {
    color: #16a34a;
}

.contact-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-card-val {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
    word-break: normal;
}

.contact-card-address {
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}

/* Contact page map panel. */
.contact-map-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.map-panel-head {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.map-panel-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-accent, #d71920);
    display: block;
    margin-bottom: 2px;
}

.map-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.map-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    background: var(--color-brand-accent, #d71920);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.map-panel-link:hover {
    background: #b5121b;
    transform: translateY(-1px);
    color: #ffffff;
}

.map-panel-frame {
    position: relative;
    width: 100%;
    min-height: 220px;
    flex: 1;
}

.map-panel-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-panel-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #475569;
}

.map-panel-footer svg {
    width: 16px;
    height: 16px;
    color: var(--color-brand-accent, #d71920);
    flex-shrink: 0;
}

/* İletişim Sayfası Form Kartı (Beyaz / Aydınlık Tema) */
.contact-form-side {
    display: flex;
    flex-direction: column;
    align-self: center;
    min-width: 0;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: clamp(24px, 4vw, 36px);
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.contact-form-card::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 36px;
    height: 36px;
    border-right: 3px solid var(--color-brand-accent, #d71920);
    border-bottom: 3px solid var(--color-brand-accent, #d71920);
    border-bottom-right-radius: 6px;
    pointer-events: none;
}

.form-card-header {
    margin-bottom: 24px;
}

.form-card-header .eyebrow {
    margin-bottom: 8px;
    color: var(--color-brand-accent, #d71920);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-card-title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.form-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #334155;
}

.form-group .required {
    color: var(--color-brand-accent, #d71920);
}

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

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-brand-accent, #d71920);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
    background: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    cursor: pointer;
}

.btn-quote-submit {
    font-family: inherit;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-weight: 800;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--color-brand-accent, #d71920);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-quote-submit:hover {
    background: #b5121b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(215, 25, 32, 0.25);
}

.contact-form-card .form-result {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-left-width: 3px;
    border-radius: 4px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-form-card .form-result.is-success {
    background: #f0f8f3;
    border-color: #cee5d6;
    border-left-color: #287547;
    color: #205c38;
}

.contact-form-card .form-result.is-error {
    background: #fff3f3;
    border-color: #f0d2d4;
    border-left-color: var(--color-brand-accent, #d71920);
    color: #a1121b;
}

.contact--page .form-privacy-note {
    margin: 16px 0 0;
    font-size: .75rem;
    color: var(--color-text-muted);
    text-align: center;
}
