/* ========== Contact Page — Premium Design ========== */
body { background-color: #ffffff; }

/* ===== Content ===== */
.page-contact main { padding-top: 5rem; }

/* ===== Split Layout ===== */
.contact-split { padding: 2rem 0 4rem; }
.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr);
    gap: 2rem;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

/* Info side */
.contact-info {
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(180deg, #f3f7fd 0%, #edf3fb 100%);
    border-radius: 20px;
    border: 1px solid rgba(28,78,128,.08);
    box-shadow: 0 18px 40px rgba(18,42,76,.07);
}
.contact-info h2 {
    font-size: clamp(1.6rem,3vw,2rem);
    margin-bottom: 1.5rem;
    color: var(--color-highlight);
    letter-spacing: -0.02em;
}
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.15rem; }
.info-item {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(28,78,128,.08);
}
.info-item:last-child { padding-bottom: 0; border-bottom: 0; }
.info-content h3 {
    font-size: 0.82rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: #5b7398;
    margin: 0 0 0.35rem;
}
.info-content p, .info-content a {
    font-size: 0.98rem; color: var(--color-text);
    font-weight: 500; text-decoration: none;
    line-height: 1.45; margin: 0; display: block;
}
.info-content a:hover { color: var(--color-primary); }

/* Form side */
.contact-form-wrapper {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(28,78,128,.08);
    box-shadow: 0 18px 40px rgba(18,42,76,.05);
}
.modern-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-group { position: relative; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--color-highlight); margin-bottom: 0.4rem;
}
.form-control {
    width: 100%; padding: 0.9rem 1rem;
    background: #f3f7fd;
    border: 1px solid rgba(28,78,128,.08);
    border-radius: 12px;
    font-size: 0.98rem; color: var(--color-text);
    transition: all 0.3s ease;
}
.form-control:focus {
    background: #fff; border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(28,78,128,.1); outline: none;
}
textarea.form-control { resize: vertical; min-height: 120px; }
.submit-btn {
    grid-column: 1 / -1;
    background: var(--color-primary); color: #fff; border: none;
    padding: 1rem 1.2rem; border-radius: 12px;
    font-size: 0.98rem; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.submit-btn:hover { background: var(--color-highlight); transform: translateY(-2px); }


/* ==========================================================
   LOCATIONS – Catalog / Brochure Style
   ========================================================== */

.locations-catalog {
    padding: 4rem 0 2rem;
    background: #fff;
}

.locations-catalog .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}
.locations-catalog .section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-highlight);
    margin-bottom: .5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.locations-catalog .section-header p {
    color: var(--color-muted);
    font-size: 1rem;
}

/* Card container */
.loc-cards {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    border: 1px solid #eaeef3;
}

/* Each location row */
.loc-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 190px;
    border-bottom: 1px solid #eaeef3;
    background: #fff;
    transition: background 0.3s ease;
}
.loc-row:last-child {
    border-bottom: none;
}
.loc-row--alt {
    background: #f7f9fc;
}
.loc-row:hover {
    background: #f0f5fb;
}

/* Image */
.loc-row__image {
    position: relative;
    overflow: hidden;
    min-height: 190px;
}
.loc-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.loc-row:hover .loc-row__image img {
    transform: scale(1.05);
}

/* Details */
.loc-row__details {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.loc-row__pin {
    flex-shrink: 0;
    margin-top: 4px;
    filter: drop-shadow(0 4px 12px rgba(9, 212, 255, 0.25));
}

.loc-row__info {
    flex: 1;
    min-width: 0;
}
.loc-row__info h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 .45rem;
    line-height: 1.4;
    font-style: italic;
}
.loc-row__en {
    font-weight: 500;
    color: #6b8299;
    font-style: italic;
}
.loc-row__addr {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0 0 .1rem;
}
.loc-row__phones {
    font-size: 0.88rem;
    color: #444;
    margin: .45rem 0 0;
    line-height: 1.7;
}
.loc-row__phones strong {
    color: #1a1a2e;
    font-weight: 700;
}
.loc-row__website {
    margin: .35rem 0 0;
}
.loc-row__website a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: color .2s;
}
.loc-row__website a:hover {
    text-decoration: underline;
    color: var(--color-highlight);
}

/* Action button */
.loc-row__action {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .65rem;
    padding: .4rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #09d4ff, #00a8cc);
    border-radius: 20px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 12px rgba(9, 212, 255, 0.25);
}
.loc-row__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 212, 255, 0.4);
}
.loc-row__action svg {
    width: 14px;
    height: 14px;
}

.loc-row {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 200px;
    border-bottom: 1px solid #eaeef3;
    background: #fff;
    transition: background 0.3s ease;
}

@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 1.25rem; }
    .contact-info { order: 2; }
    .contact-form-wrapper {
        order: 1; padding: 0;
        background: transparent; border: 0; box-shadow: none;
    }
    .loc-row {
        grid-template-columns: 1fr !important;
    }
    .loc-row__image {
        height: 220px;
    }
    .loc-row__details {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 { font-size: 2.5rem; }
    .modern-form { grid-template-columns: 1fr; }
    .loc-row__details {
        flex-direction: column;
        gap: .4rem;
        padding: 1.25rem;
    }
    .loc-row__phones { font-size: .82rem; }
}

/* ===== Floating Contact Button ===== */
.fixed-contact-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right bottom;
    z-index: 1000;
    background: #1c4e80; /* Metfamer highlight color */
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.fixed-contact-btn:hover {
    background: #00897b;
    padding-bottom: 20px; /* Slight lift effect */
}

.fixed-contact-btn svg {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
}

/* Side Drawer Overlay */
.contact-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.contact-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Side Drawer */
.contact-drawer {
    position: fixed;
    top: 0; right: -480px;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.contact-drawer.is-active {
    right: 0;
}

.drawer-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafcfd;
}
.drawer-header h3 { 
    margin: 0; 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #1e293b; 
    letter-spacing: -0.02em;
}
.drawer-close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.drawer-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Side Drawer Scrollbar */
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-track { background: #f8fafc; }
.drawer-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Side Drawer Form Adjustments */
.drawer-body .modern-form { display: flex; flex-direction: column; gap: 1.25rem; }
.drawer-body .form-group { margin-bottom: 0; }
.drawer-body .form-control {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 0.875rem 1rem;
    border-radius: 10px;
}
.drawer-body .form-control:focus {
    background: #fff;
    border-color: #1c4e80;
    box-shadow: 0 0 0 4px rgba(28, 78, 128, 0.1);
}
.drawer-body label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}
.drawer-body .drawer-submit { 
    width: 100%; 
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact-drawer { width: 100%; }
    .fixed-contact-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
