/* Hero Section */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/background-opt.jpg');
    background-size: cover;
    background-position: center;
}

.contact-hero .hero-content {
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title span {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ddd;
    display: inline-block;
}

/* Map: loaded only after the visitor agrees (no Google request before that) */
.map-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 420px;
    padding: 2rem;
    text-align: center;
    background: #eef0f2;
    color: #333;
}

.map-consent p {
    max-width: 520px;
    line-height: 1.6;
}

.map-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.map-consent button,
.map-consent a {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid #1f2328;
    background: #1f2328;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.map-consent a {
    background: transparent;
    color: #1f2328;
}

/* Company Section */
.contact-company {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(244, 185, 66, 0.03) 0%, rgba(244, 185, 66, 0.01) 100%);
}

.contact-company h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-card {
    padding: 2rem;
    background: #FFF8E6;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.company-main {
    border-left: 4px solid #ddd;
}

.company-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.company-card a {
    color: #1f2328;
    text-decoration: underline;
    text-decoration-color: rgba(244, 185, 66, 0.75);
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.3s;
}

.company-card a:hover {
    color: var(--link-accent);
}

/* Map Section */
.contact-map {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.map-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-card iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* Invoice Address Section */
.contact-invoice {
    padding: 4rem 2rem 0;
}

/* People Section */
.contact-people {
    padding: 4rem 2rem;
}

.people-table {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-left: 4px solid #ddd;
}

.people-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.people-dept {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding-top: 0.25rem;
}

.people-dept.people-empty {
    padding-top: 0;
}

.people-name {
    font-weight: 500;
    color: #333;
}

.people-name span {
    font-size: 0.85rem;
    color: #888;
    font-weight: normal;
}

.people-data {
    color: #666;
    font-size: 0.95rem;
}

.people-data a {
    color: #1f2328;
    text-decoration: underline;
    text-decoration-color: rgba(244, 185, 66, 0.75);
    text-underline-offset: 3px;
    font-weight: 700;
    transition: color 0.3s;
}

.people-data a:hover {
    color: var(--link-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .map-card iframe {
        height: 320px;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
    }

    .contact-company {
        padding: 2rem 1rem;
    }

    .contact-map {
        padding: 2rem 1rem;
    }

    .contact-invoice {
        padding: 2rem 1rem 0;
    }

    .contact-people {
        padding: 2rem 1rem;
    }

    .section-title span {
        font-size: 1.6rem;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .people-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .people-dept {
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .people-dept.people-empty {
        display: none;
    }

    .map-card iframe {
        height: 300px;
    }
}

/* ===== Design pass 1 ===== */
.company-unified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-left: 4px solid #ddd;
}

.company-block h3 {
    margin-bottom: 1rem;
    color: #8f6200;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.company-address {
    color: #222222;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
}

.company-card .contact-line {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.company-note {
    color: #666666;
    font-size: 0.9rem;
}

.map-consent {
    min-height: 280px;
}

.map-consent .map-pin {
    flex: none;
}

.map-consent .map-address {
    font-size: 1.15rem;
}

@media (max-width: 768px) {
    .company-unified {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
