/**
 * Greco Theme - Contact Page Styles
 */

/* ========================================
   Contact Location Card (single, dynamic)
   ======================================== */

.contact-location-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* Empty state — no location selected */
.contact-location-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(10, 31, 51, 0.04);
    border: 2px dashed rgba(10, 31, 51, 0.15);
    border-radius: 16px;
}

.contact-location-empty svg {
    color: rgba(10, 31, 51, 0.45);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.contact-location-empty-text {
    color: rgba(10, 31, 51, 0.65);
    font-size: 1.05rem;
    margin: 0;
}

.dark-mode .contact-location-empty {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .contact-location-empty svg {
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.4;
}

.dark-mode .contact-location-empty-text {
    color: rgba(255, 255, 255, 0.6);
}

.contact-location-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--wp--preset--color--aegean);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.contact-location-empty-btn svg {
    color: #fff;
    opacity: 1;
    margin: 0;
}

.contact-location-empty-btn:hover,
.contact-location-empty-btn:focus-visible {
    background: var(--wp--preset--color--aegean-light);
}

.dark-mode .contact-location-empty-btn {
    background: linear-gradient(135deg, var(--greco-accent) 0%, var(--greco-accent-soft) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--greco-accent) 30%, transparent);
}

.dark-mode .contact-location-empty-btn svg {
    color: #ffffff;
}

.dark-mode .contact-location-empty-btn:hover,
.dark-mode .contact-location-empty-btn:focus-visible {
    background: linear-gradient(135deg, var(--greco-accent-soft) 0%, var(--greco-accent) 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--greco-accent) 40%, transparent);
}

/* Card */
.contact-location-card--single {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-location-card--single:hover {
    box-shadow: 0 12px 40px rgba(30, 77, 107, 0.12);
}

.contact-location-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wp--preset--color--dark);
    margin: 0 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(201, 162, 39, 0.25);
    text-align: center;
}

/* Contact details rows */
.contact-location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-location-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--wp--preset--color--gray);
    line-height: 1.5;
}

.contact-location-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--wp--preset--color--primary, #1E4D6B);
    opacity: 0.65;
}

.contact-location-row a {
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-location-row a:hover {
    color: #C9A227;
}

/* Hours */
.contact-location-hours {
    align-items: flex-start;
}

.contact-hours-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-hours-text span {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Card footer */
.contact-location-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.contact-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wp--preset--color--dark);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-location-btn:hover {
    background: rgba(30, 77, 107, 0.1);
    color: #1E4D6B;
}

.contact-location-btn--details {
    margin-left: auto;
    background: var(--wp--preset--color--dark, #1a1a2e);
    color: #fff;
}

.contact-location-btn--details:hover {
    background: #1E4D6B;
    color: #fff;
}

/* Social links */
.contact-location-socials {
    display: flex;
    gap: 0.4rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--wp--preset--color--gray);
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: rgba(30, 77, 107, 0.1);
    color: #1E4D6B;
}

/* ========================================
   Contact Company Section
   ======================================== */

.contact-company-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-company-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-company-block:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-2px);
}

.contact-company-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-company-block-icon {
    color: #C9A227;
    flex-shrink: 0;
    line-height: 0;
}

.contact-company-block-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Registration data rows (NIP, REGON, KRS) */
.contact-company-data {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-company-data-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-company-data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    min-width: 50px;
}

.contact-company-data-value {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1rem;
    font-weight: 600;
    color: #C9A227;
    letter-spacing: 0.03em;
}

/* Address blocks */
.contact-company-address-block {
    margin-bottom: 1.25rem;
}

.contact-company-address-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.contact-company-address-label svg {
    opacity: 0.6;
}

.contact-company-address-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

/* Contact rows (phone, email) */
.contact-company-contact-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-company-contact-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-company-contact-row svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
}

.contact-company-link {
    color: #C9A227;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-company-link:hover {
    color: #E8D5A3;
}

/* ========================================
   Dark Mode
   ======================================== */

/* Company section — keep forced white text on dark bg */
.dark-mode .contact-company-section .has-white-color {
    color: #fff !important;
}

/* Locations section — dark mode: flip to theme bg */
.dark-mode .contact-locations-section.has-white-background-color {
    background: var(--greco-bg-gradient) !important;
}

.dark-mode .contact-locations-section .has-gold-color {
    color: var(--greco-accent) !important;
}

.dark-mode .contact-locations-section .has-dark-color {
    color: var(--greco-text) !important;
}

.dark-mode .contact-locations-section .has-gray-color {
    color: var(--greco-text-muted) !important;
}

/* Card stays white in both modes */
.dark-mode .contact-location-card--single {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}

.dark-mode .contact-location-title {
    color: #1F2937;
}

.dark-mode .contact-location-row {
    color: #64748B;
}

.dark-mode .contact-location-row svg {
    color: #1E4D6B;
}

.dark-mode .contact-location-row a {
    color: #1F2937;
}

.dark-mode .contact-location-btn {
    color: #1F2937;
    background: rgba(0, 0, 0, 0.04);
}

.dark-mode .contact-location-btn:hover {
    color: #1E4D6B;
    background: rgba(30, 77, 107, 0.1);
}

.dark-mode .contact-location-btn--details {
    background: #1F2937;
    color: #fff;
}

.dark-mode .contact-location-btn--details:hover {
    background: #1E4D6B;
    color: #fff;
}

.dark-mode .contact-social-link {
    color: #64748B;
    background: rgba(0, 0, 0, 0.04);
}

.dark-mode .contact-social-link:hover {
    color: #1E4D6B;
    background: rgba(30, 77, 107, 0.1);
}

.dark-mode .contact-location-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .contact-location-card--single {
        padding: 1.75rem;
    }

    .contact-company-columns {
        grid-template-columns: 1fr;
    }

    .contact-location-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-location-btn--details {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .contact-location-socials {
        justify-content: center;
    }
}