@import "../shared/design-tokens.css";

/* ========== Quick Edit ========== */
/* Shared colors, font stack, widths, radius, and shadows live in ../shared/design-tokens.css. */

/* ========== Base Layout ========== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.hero {
    display: grid;
    min-height: 360px;
    place-items: center;
    background: linear-gradient(rgba(12, 25, 40, 0.45), rgba(12, 25, 40, 0.5)), var(--hero-image) center / cover;
    color: #fff;
    text-align: center;
}

.hero-inner p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
}

.hero-inner h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 56px);
    letter-spacing: 0;
}

.intro,
.contact-layout,
.qr-section {
    width: var(--space-content-width);
    margin-inline: auto;
}

.intro {
    padding: 54px 0 26px;
    text-align: center;
}

.intro p {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.info-card,
.map-card,
.qr-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.info-card {
    padding: 34px;
}

.card-head {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.card-head span,
.map-caption span {
    display: block;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 800;
}

.card-head h2 {
    margin: 8px 0 0;
    font-size: 25px;
    line-height: 1.25;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin: 26px 0 0;
}

.contact-list div {
    display: grid;
    gap: 6px;
}

.contact-list dt {
    color: var(--muted);
    font-size: 14px;
}

.contact-list dd {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 30px;
    padding: 0 22px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.route-button:hover {
    background: var(--primary-dark);
}

.map-card {
    position: relative;
    min-height: 440px;
    overflow: hidden;
}

.map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-caption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: min(430px, calc(100% - 48px));
    padding: 16px 18px;
    border: 1px solid rgba(227, 235, 239, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(23, 36, 54, 0.14);
}

.map-caption strong {
    display: block;
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.55;
}

.qr-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 72px;
    padding: 34px;
}

.qr-section h2 {
    margin: 0;
    font-size: 28px;
}

.qr-section p {
    margin: 8px 0 0;
    color: var(--muted);
}

.qr-grid {
    display: flex;
    gap: 20px;
}

.qr-grid figure {
    margin: 0;
    text-align: center;
}

.qr-grid img {
    width: 112px;
    height: 112px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.qr-grid figcaption {
    margin-top: 8px;
    font-weight: 700;
}

.is-loading {
    opacity: 0.65;
}

@media (max-width: 900px) {

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

    .map-card {
        min-height: 340px;
    }

    .qr-section {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {

    .hero {
        min-height: 300px;
    }

    .info-card,
    .qr-section {
        padding: 22px;
    }

    .card-head h2 {
        font-size: 22px;
    }

    .route-button {
        width: 100%;
    }

    .map-caption {
        left: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    .qr-grid {
        width: 100%;
        justify-content: space-between;
    }
}
