/* ==========================================================================
   Contact page
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
.sg-contact-hero {
    position: relative;
    background:
        radial-gradient(circle at 88% 15%, rgba(194, 154, 72, .22), transparent 40%),
        radial-gradient(circle at 5% 90%, rgba(94, 22, 36, .07), transparent 40%),
        var(--sg-ivory);
    border-bottom: 1px solid var(--sg-line);
    overflow: hidden;
}

.sg-contact-hero__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 3rem;
}

.sg-contact-hero__title {
    margin: .9rem 0 1rem;
    font-family: var(--sg-serif);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 600;
    line-height: 1;
    color: var(--sg-ink);
}

.sg-contact-hero__title em { color: var(--sg-wine); }

.sg-contact-hero__lead {
    max-width: 520px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--sg-muted);
}

.sg-contact-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.sg-contact-hero__crumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.75rem;
    font-size: .8rem;
    color: var(--sg-muted);
}

.sg-contact-hero__crumb a { color: var(--sg-wine); text-decoration: none; }
.sg-contact-hero__crumb i { font-size: .65rem; }

.sg-contact-hero__visual {
    position: relative;
    justify-self: center;
    width: min(340px, 100%);
}

.sg-contact-hero__arch {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 28px 28px;
    background:
        radial-gradient(circle at 50% 35%, rgba(228, 201, 135, .25), transparent 60%),
        var(--sg-wine-900);
    box-shadow: inset 0 0 0 10px var(--sg-wine-900), inset 0 0 0 11px rgba(228, 201, 135, .4), var(--sg-shadow-lg);
}

.sg-contact-hero__arch img {
    width: 62%;
    border-radius: 50%;
    animation: sg-contact-spin 50s linear infinite;
}

@keyframes sg-contact-spin { to { transform: rotate(360deg); } }

.sg-contact-hero__chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: var(--sg-shadow);
    font-size: .85rem;
    font-weight: 500;
    color: var(--sg-ink);
    white-space: nowrap;
}

.sg-contact-hero__chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sg-gold-100);
    color: var(--sg-wine);
}

.sg-contact-hero__chip small {
    display: block;
    color: var(--sg-muted);
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .06em;
}

.sg-contact-hero__chip--top { top: 12%; left: -28%; animation: sg-contact-float 6s ease-in-out infinite; }
.sg-contact-hero__chip--bottom { bottom: 10%; right: -18%; animation: sg-contact-float 6s ease-in-out -3s infinite; }

@keyframes sg-contact-float {
    50% { transform: translateY(-10px); }
}

/* Channel cards ----------------------------------------------------------- */
.sg-channels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sg-channel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.6rem;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius-lg);
    background: #fff;
    color: var(--sg-ink);
    text-decoration: none;
    transition: transform .35s var(--sg-ease), box-shadow .35s var(--sg-ease), border-color .35s var(--sg-ease);
}

.sg-channel:hover { transform: translateY(-6px); box-shadow: var(--sg-shadow); border-color: var(--sg-gold-300); color: var(--sg-ink); }

.sg-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: var(--sg-gold-100);
    color: var(--sg-wine);
    font-size: 1.4rem;
}

.sg-channel--wa { background: linear-gradient(160deg, #F2FBF5, #fff 60%); }
.sg-channel--wa .sg-channel__icon { background: #25D366; color: #fff; }

.sg-channel__label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sg-gold);
}

.sg-channel__value {
    font-family: var(--sg-serif);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.sg-channel__value--small { font-size: 1.1rem; }
.sg-channel__hint { margin-top: .35rem; font-size: .82rem; color: var(--sg-muted); }

.sg-channel__go {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--sg-line);
    color: var(--sg-wine);
    font-size: .85rem;
    transition: all .35s var(--sg-ease);
}

.sg-channel:hover .sg-channel__go { background: var(--sg-wine); border-color: var(--sg-wine); color: #fff; transform: rotate(45deg); }

/* Message form + store ---------------------------------------------------- */
.sg-contact-main {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 2rem;
    align-items: start;
}

.sg-message {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--sg-line);
    box-shadow: var(--sg-shadow-sm);
}

.sg-message .sg-subtitle { margin-bottom: 1.75rem; }

.sg-topics { margin: 0 0 1.5rem; padding: 0; border: 0; }

.sg-topics legend {
    float: none;
    width: auto;
    margin-bottom: .75rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sg-muted);
}

.sg-topic { display: inline-block; margin: 0 .35rem .5rem 0; cursor: pointer; }
.sg-topic input { position: absolute; opacity: 0; pointer-events: none; }

.sg-topic span {
    display: inline-block;
    padding: .55rem 1rem;
    border: 1px solid var(--sg-line);
    border-radius: 999px;
    background: var(--sg-ivory);
    font-size: .86rem;
    color: var(--sg-text);
    transition: all .2s var(--sg-ease);
}

.sg-topic:hover span { border-color: var(--sg-gold); }
.sg-topic input:checked + span { background: var(--sg-wine); border-color: var(--sg-wine); color: #fff; }
.sg-topic input:focus-visible + span { outline: 2px solid var(--sg-gold); outline-offset: 2px; }

.sg-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sg-field { position: relative; }
.sg-field--full { grid-column: 1 / -1; }
.sg-field[hidden] { display: none; }

.sg-field input,
.sg-field textarea {
    width: 100%;
    padding: 1.45rem 1rem .55rem;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-radius);
    background: var(--sg-ivory);
    color: var(--sg-ink);
    font-family: var(--sg-sans);
    font-size: 1rem;
    outline: 0;
    resize: vertical;
    transition: border-color .2s var(--sg-ease), background .2s var(--sg-ease), box-shadow .2s var(--sg-ease);
}

.sg-field input:focus,
.sg-field textarea:focus {
    border-color: var(--sg-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 154, 72, .15);
}

/* floating labels */
.sg-field label {
    position: absolute;
    top: 1.05rem;
    left: 1rem;
    color: var(--sg-muted);
    font-size: .98rem;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .2s var(--sg-ease), color .2s var(--sg-ease);
}

.sg-field input:focus + label,
.sg-field input:not(:placeholder-shown) + label,
.sg-field textarea:focus + label,
.sg-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-.62rem) scale(.74);
    color: var(--sg-wine);
}

.sg-message__error {
    margin: 1rem 0 0;
    padding: .7rem 1rem;
    border-radius: var(--sg-radius-sm);
    background: #FBE3E6;
    color: var(--sg-sale);
    font-size: .9rem;
}

.sg-message__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.sg-message__note {
    display: block;
    margin-top: 1rem;
    color: var(--sg-muted);
    font-size: .8rem;
}

.sg-store { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 140px; }

.sg-store__card {
    padding: 1.75rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(228, 201, 135, .22), transparent 50%),
        var(--sg-wine-900);
    color: rgba(255, 255, 255, .8);
}

.sg-store__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.sg-store__logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(228, 201, 135, .4); }
.sg-store__head strong { display: block; color: #fff; font-family: var(--sg-serif); font-size: 1.4rem; font-weight: 600; }
.sg-store__head span { font-size: .82rem; color: var(--sg-gold-300); }

.sg-store__list { margin: 0 0 1.5rem; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.sg-store__list li { display: flex; gap: .75rem; margin-bottom: .8rem; font-size: .92rem; line-height: 1.55; }
.sg-store__list i { color: var(--sg-gold); margin-top: .1rem; }

.sg-store__help {
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--sg-line);
}

.sg-store__help h3 {
    margin-bottom: .75rem;
    font-family: var(--sg-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--sg-ink);
}

.sg-store__help a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--sg-line);
    color: var(--sg-text);
    font-size: .95rem;
    text-decoration: none;
}

.sg-store__help a:last-child { border-bottom: 0; padding-bottom: 0; }
.sg-store__help a i:first-child { color: var(--sg-gold); font-size: 1.05rem; }
.sg-store__help a i:last-child { margin-left: auto; font-size: .85rem; transition: transform .25s var(--sg-ease); }
.sg-store__help a:hover { color: var(--sg-wine); }
.sg-store__help a:hover i:last-child { transform: translateX(4px); }

.sg-store__social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: var(--sg-gold-100);
    font-size: .88rem;
    font-weight: 500;
    color: var(--sg-wine);
}

.sg-store__social div { display: flex; gap: .4rem; }

.sg-store__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--sg-wine);
    transition: all .25s var(--sg-ease);
}

.sg-store__social a:hover { background: var(--sg-wine); color: #fff; transform: translateY(-2px); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .sg-channels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .sg-contact-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .sg-contact-hero__visual { width: min(260px, 70%); }
    .sg-contact-hero__chip--top { left: -40%; }
    .sg-contact-hero__chip--bottom { right: -40%; }

    .sg-contact-main { grid-template-columns: 1fr; }
    .sg-store { position: static; }
}

@media (max-width: 575.98px) {
    .sg-contact-hero__visual { display: none; }
    .sg-contact-hero__actions .sg-btn { flex: 1; }

    .sg-channels { grid-template-columns: 1fr; gap: .85rem; }
    .sg-channel { padding: 1.2rem 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
    .sg-channel__icon { grid-row: span 3; margin: 0; width: 48px; height: 48px; font-size: 1.2rem; }
    .sg-channel__value { font-size: 1.15rem; padding-right: 2rem; }
    .sg-channel__value--small { font-size: .98rem; }
    .sg-channel__go { top: 1.1rem; right: 1.1rem; width: 30px; height: 30px; }

    .sg-message { border-radius: 22px; }
    .sg-fields { grid-template-columns: 1fr; }
    .sg-message__actions .sg-btn { flex: 1 1 100%; }

    .sg-store__card, .sg-store__help { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .sg-contact-hero__arch img,
    .sg-contact-hero__chip { animation: none; }
}
