/* =========================
   Gift Carding - Brand CSS
   ========================= */

/* 1) Register the fonts from /fonts (absolute from web root) */
@font-face {
    font-family: "Universal Sans";
    src: url("/fonts/UniversalSans-v1-2-0-100-0-713112221211-11-900.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Universal Sans";
    src: url("/fonts/UniversalSans-v1-2-0-100-0-713112221211-11-450.ttf") format("truetype");
    /* Map to a standard CSS weight so browsers match it reliably */
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2) Global font family */
:root {
    --gc-font: "Universal Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Brand tokens */
    --gc-teal: #4fa2a8;
    --gc-teal-hover: #3e8c91;
    --gc-text: #111;
    --gc-muted: rgba(0,0,0,0.65);
    --gc-border: #e6e6e6;
    --gc-surface: #ffffff;
    --gc-soft: #f4f7f7;
    --gc-soft-2: #f7f7f7;
    --gc-radius: 12px;
}

/* 3) Override Bootswatch defaults */
html, body {
    font-family: var(--gc-font) !important;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4) Headings use the heavy cut */
h1, h2, h3, h4, h5, h6 {
    font-family: "Universal Sans", sans-serif !important;
    font-weight: 900 !important;
    line-height: 1.2;
    text-transform: none !important;
    color: var(--gc-teal) !important;
}

/* 5) Bootstrap display utilities also get the heavy cut */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Universal Sans", sans-serif !important;
    font-weight: 900 !important;
}

/* 6) Buttons, nav links, badges, etc. inherit our family */
.btn, .nav, .navbar, .nav-link, .dropdown-item, .badge, .alert, .form-control, .form-label, .form-select {
    font-family: var(--gc-font) !important;
}

/* optional: make bold text pull the heavy file */
b, strong {
    font-weight: 900;
}

/* Force all Bootstrap primary buttons to use studio teal */
.btn.btn-primary,
a.btn.btn-primary {
    background-color: var(--gc-teal) !important;
    border-color: var(--gc-teal) !important;
    color: #ffffff !important;
}

/* =========================
   New, namespaced UI styles
   ========================= */

.gc-voucher {
    padding: 3rem 0;
    color: var(--gc-text);
}

.gc-voucher__container {
    max-width: 980px;
}

.gc-hero {
    margin-bottom: 1.75rem;
}

.gc-hero__title {
    margin-bottom: 0.5rem;
}

.gc-hero__lead {
    color: rgba(0,0,0,0.55);
    margin-bottom: 0;
}

.gc-section {
    margin-top: 2.25rem;
}

.gc-section__title {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    color: var(--gc-teal);
}

.gc-section__body {
    background: transparent;
}

/* Experience options */
.gc-option-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gc-option {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background: var(--gc-surface);
}

.gc-option:hover {
    transform: translateY(-2px);
    border-color: var(--gc-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.gc-option.is-selected {
    border-color: var(--gc-teal);
    box-shadow: 0 12px 34px rgba(79,162,168,0.18);
}

.gc-option__media {
    width: 100%;
}

.gc-option__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.gc-option__content {
    padding: 1.5rem;
}

.gc-option__title {
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: var(--gc-text) !important;
}

.gc-option__description {
    font-size: 0.95rem;
    color: var(--gc-muted);
    margin: 0 0 1rem 0;
}

.gc-option__price {
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0;
    color: var(--gc-text);
}

@media (min-width: 768px) {
    .gc-option {
        grid-template-columns: 280px 1fr;
        align-items: stretch;
    }

    .gc-option__media img {
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* Optional credit */
.gc-credit__help {
    color: var(--gc-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Field groups */
.gc-fields__title {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--gc-text) !important;
}

.gc-field label {
    font-weight: 700;
}

.gc-recipient-toggle {
    margin-top: 1rem;
}

.gc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--gc-text);
}

.gc-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.gc-recipient-warning {
    background: var(--gc-soft);
    border-left: 3px solid var(--gc-teal);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.75);
}

/* Summary */
.gc-summary {
    background: var(--gc-soft-2);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.gc-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.1rem;
}

/* Payment element */
.gc-payment__card-element {
    border-radius: 10px;
}

/* Buttons inside namespace - soften + make brandy */
.gc-voucher .btn-primary {
    border-radius: 10px !important;
    padding: 0.85rem 1.5rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
}

.gc-voucher .btn-primary:hover {
    background-color: var(--gc-teal-hover) !important;
    border-color: var(--gc-teal-hover) !important;
}

/* Terms area */
.gc-terms__button.btn-link {
    color: var(--gc-teal) !important;
    font-weight: 800;
    text-decoration: none;
    padding-left: 0;
}

.gc-terms__button.btn-link:hover {
    text-decoration: underline;
}

/* Spinner positioning */
.gc-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* =========================
   Backwards compatibility
   (leave your old classes in place in case anything else references them)
   ========================= */

.gift-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gift-card-row {
    width: 100%;
}

.gift-card-option {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.gift-card-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
    border-color: var(--gc-teal);
}

.gift-card-thumb-wrapper {
    flex: 0 0 auto;
    width: 100%;
}

.gift-card-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (min-width: 768px) {
    .gift-card-option {
        flex-direction: row;
        align-items: stretch;
    }

    .gift-card-thumb-wrapper {
        max-width: 280px;
    }

    .gift-card-thumb {
        height: 100%;
        aspect-ratio: auto;
    }
}
