/**
 * Zamseed Contact Info Widget Styles
 *
 * @package Zamseed
 * @since 1.0.0
 */

/* ==========================================================================
   Contact Info Container
   ========================================================================== */

.zs-contact-info {
    display: flex;
    gap: 24px;
}

/* Layout Variants */
.zs-contact-info--vertical {
    flex-direction: column;
}

.zs-contact-info--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.zs-contact-info--horizontal .zs-contact-info__item {
    flex: 1;
    min-width: 200px;
}

.zs-contact-info--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* ==========================================================================
   Contact Item
   ========================================================================== */

.zs-contact-info__item {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   Icon Styles
   ========================================================================== */

.zs-contact-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--zs-primary, #2d5a27);
}

.zs-contact-info__icon svg {
    width: 24px;
    height: 24px;
}

.zs-contact-info__icon img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Default Icon Style */
.zs-contact-info__icon--default {
    align-items: flex-start;
    padding-top: 2px;
}

/* Boxed Icon Style */
.zs-contact-info__icon--boxed {
    width: 48px;
    height: 48px;
    background: var(--zs-green-soft, #eef4df);
    border-radius: 8px;
}

/* Circle Icon Style */
.zs-contact-info__icon--circle {
    width: 48px;
    height: 48px;
    background: var(--zs-green-soft, #eef4df);
    border-radius: 50%;
}

/* No Icon */
.zs-contact-info__icon--none {
    display: none;
}

/* ==========================================================================
   Text Content
   ========================================================================== */

.zs-contact-info__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zs-contact-info__label {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zs-text, #1c1c1c);
}

.zs-contact-info__content {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--zs-muted, #555555);
}

/* Link Styles */
.zs-contact-info__link {
    text-decoration: none;
    color: var(--zs-primary, #2d5a27);
    transition: color 0.2s ease;
}

.zs-contact-info__link:hover {
    color: var(--zs-primary-dark, #1e3d1a);
    text-decoration: underline;
}

/* Map Link */
.zs-contact-info__map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zs-primary, #2d5a27);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.zs-contact-info__map-link:hover {
    color: var(--zs-primary-dark, #1e3d1a);
    gap: 10px;
}

.zs-contact-info__map-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.zs-contact-info__map-link:hover svg {
    transform: translate(2px, -2px);
}

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

@media (max-width: 900px) {
    .zs-contact-info--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .zs-contact-info--horizontal {
        flex-direction: column;
    }

    .zs-contact-info--horizontal .zs-contact-info__item {
        flex: none;
        min-width: auto;
    }

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

    .zs-contact-info__icon--boxed,
    .zs-contact-info__icon--circle {
        width: 40px;
        height: 40px;
    }

    .zs-contact-info__icon svg,
    .zs-contact-info__icon img {
        width: 20px;
        height: 20px;
    }

    .zs-contact-info__label {
        font-size: 0.6875rem;
    }

    .zs-contact-info__content {
        font-size: 0.875rem;
    }
}

/* Empty state — rendered only when the editor supplied a No Items Message. */
.zs-contact-info--empty {
    display: block;
}

.zs-contact-info__empty {
    margin: 0;
    color: var(--zs-text-muted, #555555);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Keyboard focus was previously indicated only by the hover colour change. */
.zs-contact-info__link:focus-visible,
.zs-contact-info__map-link:focus-visible {
    outline: 2px solid var(--zs-primary, #2d5a27);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==========================================================================
   Contact page left column — Figma 11121:41201 inside frame 11121:40980
   ("new - contact us").

   The frame's list is 16px Inter on a 25.6px line box with an 18px icon and a
   16px gutter, and the email is the only bold, tinted entry. These are scoped
   under .zs-contact-layout — the Contact page's own section class — so the
   widget's other placements (the footer strip, the dealer pages) keep their
   existing sizing.
   ========================================================================== */

.zs-contact-layout .zs-contact-info .zs-contact-info__item {
    gap: 16px;
}

/* 18px, not the 24px the widget uses elsewhere. The 3px top offset is the
   frame's own — it optically centres the glyph on the first line of text
   rather than on the box. */
.zs-contact-layout .zs-contact-info .zs-contact-info__icon svg,
.zs-contact-layout .zs-contact-info .zs-contact-info__icon img {
    width: 18px;
    height: 18px;
}

.zs-contact-layout .zs-contact-info .zs-contact-info__icon--default {
    padding-top: 3px;
}

.zs-contact-layout .zs-contact-info .zs-contact-info__content {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1c1c1c;
}

/* The frame draws the email address as the one bold, primary-tinted line in
   the column — it is the only entry there that is also an action. */
.zs-contact-layout .zs-contact-info .zs-contact-info__link {
    font-weight: 700;
    color: var(--zs-primary, #2d5a27);
    text-decoration: none;
}

.zs-contact-layout .zs-contact-info .zs-contact-info__link:hover,
.zs-contact-layout .zs-contact-info .zs-contact-info__link:focus-visible {
    text-decoration: underline;
}

/* Phone lines stay regular weight and body colour — the two numbers are
   dialable links, but the frame does not tint them the way it tints the
   email. */
.zs-contact-layout .zs-contact-info .zs-contact-info__item .zs-contact-info__content > .zs-contact-info__link[href^="tel:"] {
    font-weight: 400;
    color: #1c1c1c;
}

/* ==========================================================================
   Opening hours card — Figma 11121:41231
   ========================================================================== */

.zs-contact-info__item--hours-card {
    display: block;
}

.zs-contact-info__hours-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 25px 24px;
    background-color: var(--zs-jewel-dark, #145f35);
    border-radius: 12px;
}

.zs-contact-info__hours-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--zs-font-serif, 'Cormorant Garamond', serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #ffffff;
}

.zs-contact-info__hours-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #ffffff;
}

.zs-contact-info__hours-icon svg {
    width: 16px;
    height: 16px;
}

.zs-contact-info__hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Day left, time right, on one 24px line — the frame's justify-between rows.
   `gap` keeps a long day name from touching the time when the card narrows. */
.zs-contact-info__hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 24px;
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 15px;
    line-height: 1.6;
}

.zs-contact-info__hours-day {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.86);
}

.zs-contact-info__hours-time {
    font-weight: 700;
    text-align: right;
    color: #ffffff;
}

@media (max-width: 480px) {
    .zs-contact-info__hours-card {
        padding: 20px;
    }

    /* Below this width the two halves no longer fit on one line without the
       times wrapping mid-value, so each row stacks instead. */
    .zs-contact-info__hours-row {
        flex-direction: column;
        gap: 2px;
    }

    .zs-contact-info__hours-time {
        text-align: left;
    }
}
