/* ==========================================================================
   Мирчев Студио — Contact page redesign (contact-v1)
   Builds on the shared v1 design system in index-v1.css. Only Contact-specific
   parts live here. Scoped to body.v1-page-contact.
   ========================================================================== */

/* ---------- Hero: compact, the contact details are the point of the page ---------- */
.v1-page-contact .v1-contact-hero {
    min-height: 46vh;
    min-height: 46svh;
}

.v1-page-contact .v1-contact-hero .v1-hero__content {
    padding-bottom: clamp(40px, 7vh, 72px);
}

/* ---------- Layout ---------- */
.v1-contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

@media (min-width: 992px) {
    .v1-contact__layout {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 80px;
    }

    .v1-contact__intro {
        position: sticky;
        top: calc(var(--v1-header-h) + 40px);
    }
}

.v1-contact__lead {
    margin-bottom: 18px !important;
    font-family: var(--v1-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem);
    line-height: 1.3;
    color: var(--v1-gold-text);
}

.v1-contact__intro > p:not(.v1-eyebrow):not(.v1-contact__lead) {
    color: var(--v1-muted);
    max-width: 52ch;
}

.v1-contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* ---------- Contact cards ---------- */
.v1-contact__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 640px) {
    .v1-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v1-ccard--phone,
    .v1-ccard--wide { grid-column: 1 / -1; }
}

.v1-ccard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    border-radius: var(--v1-radius-lg);
    background: #fff;
    border: 1px solid var(--v1-line);
    box-shadow: 0 1px 0 rgba(42, 34, 28, .05);
    transition: transform .5s var(--v1-ease), box-shadow .5s var(--v1-ease), border-color .3s;
}

.v1-ccard:hover {
    transform: translateY(-4px);
    box-shadow: var(--v1-shadow-sm);
    border-color: rgba(234, 166, 54, .55);
}

/* The main card (phones) is dark, to make calling the obvious first step */
.v1-ccard--phone {
    background: var(--v1-ink);
    border-color: var(--v1-ink);
    color: var(--v1-on-dark);
}

.v1-ccard__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(234, 166, 54, .16);
    color: var(--v1-gold-text);
}

.v1-ccard--phone .v1-ccard__icon {
    background: var(--v1-gold);
    color: var(--v1-ink);
}

.v1-ccard__icon .v1-icon {
    width: 22px;
    height: 22px;
}

.v1-ccard__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.v1-ccard__label {
    margin-bottom: 4px !important;
    font-family: var(--v1-sans);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--v1-gold-text);
}

.v1-ccard--phone .v1-ccard__label {
    color: var(--v1-gold);
}

.v1-ccard__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.v1-ccard__value {
    margin: 0 !important;
    font-family: var(--v1-serif);
    font-size: clamp(1.55rem, 1.3rem + .9vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--v1-text);
    text-decoration: none;
    overflow-wrap: break-word;
}

a.v1-ccard__value:hover {
    color: var(--v1-gold-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.v1-ccard--phone .v1-ccard__value {
    color: #fff;
    font-variant-numeric: lining-nums;
}

.v1-ccard--phone a.v1-ccard__value:hover {
    color: var(--v1-gold);
}

.v1-ccard__value--email,
.v1-ccard__value--text {
    font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
}

.v1-ccard__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--v1-gold-text);
    text-decoration: none;
}

.v1-ccard__link:hover {
    text-decoration: underline;
}

.v1-ccard__link .v1-icon {
    width: 15px;
    height: 15px;
}

/* Copy buttons */
.v1-copy {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--v1-line);
    border-radius: 50%;
    background: transparent;
    color: var(--v1-muted);
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s;
}

.v1-copy:hover {
    background: var(--v1-gold);
    border-color: var(--v1-gold);
    color: var(--v1-ink);
}

.v1-copy .v1-icon {
    width: 17px;
    height: 17px;
}

.v1-ccard--phone .v1-copy {
    border-color: var(--v1-line-dark);
    color: var(--v1-on-dark-muted);
}

.v1-copy.is-copied {
    background: var(--v1-gold);
    border-color: var(--v1-gold);
    color: var(--v1-ink);
}

.v1-copy[hidden] {
    display: none;
}

/* Toast */
.v1-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1100;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--v1-ink);
    color: var(--v1-on-dark);
    font-size: .92rem;
    font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity .3s var(--v1-ease), transform .3s var(--v1-ease), visibility 0s linear .3s;
    pointer-events: none;
}

.v1-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .3s var(--v1-ease), transform .3s var(--v1-ease), visibility 0s;
}

@media (max-width: 575.98px) {
    .v1-ccard { padding: 22px; gap: 16px; }
    .v1-ccard__icon { width: 44px; height: 44px; }
    .v1-contact__actions .v1-btn { flex: 1 1 100%; }
    .v1-toast { bottom: 84px; }
}
