/* ═══════════════════════════════════════════════════════
   McGee & Company — Gemstone Search Page
   Scope: .mgem
   Colors: Navy #2A2E7F | Gold #D4AF37
   Paste into: Punchmark Site Manager > Global CSS
   ═══════════════════════════════════════════════════════ */

.mgem {
    --mgem-navy:     #2A2E7F;
    --mgem-navy-dk:  #1e2260;
    --mgem-gold:     #D4AF37;
    --mgem-gold-lt:  #e8cb6a;
    --mgem-white:    #ffffff;
    --mgem-off:      #f7f7f5;
    --mgem-text:     #1a1a2e;
    --mgem-muted:    #6b6b80;
    --mgem-border:   #e4e4ec;
    font-family: inherit;
}

/* ── Hero ────────────────────────────────────────────── */
.mgem__hero {
    background: var(--mgem-navy);
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}

.mgem__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 80%, rgba(192, 57, 43, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 20%, rgba(39, 174, 96, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, rgba(41, 128, 185, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(155, 89, 182, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.mgem__hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.mgem__hero-gems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.mgem__gem {
    font-size: 28px;
    display: block;
    opacity: 0.85;
    animation: mgem-pulse 3s ease-in-out infinite;
}

.mgem__gem--ruby    { color: #c0392b; animation-delay: 0s; }
.mgem__gem--emerald { color: #27ae60; animation-delay: 0.4s; }
.mgem__gem--sapphire{ color: #2980b9; animation-delay: 0.8s; }
.mgem__gem--amethyst{ color: #9b59b6; animation-delay: 1.2s; }
.mgem__gem--topaz   { color: #f39c12; animation-delay: 1.6s; }

@keyframes mgem-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.mgem__eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mgem-gold);
    font-weight: 700;
    margin-bottom: 12px;
}

.mgem__hero-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--mgem-white);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.mgem__hero-sub {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    margin: 0 0 28px;
    max-width: 560px;
}

.mgem__hero-cta {
    display: inline-block;
    background: var(--mgem-gold);
    color: var(--mgem-navy) !important;
    padding: 13px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mgem__hero-cta:hover {
    background: var(--mgem-gold-lt);
    transform: translateY(-1px);
}

/* ── Quick Links ─────────────────────────────────────── */
.mgem__quicklinks {
    background: var(--mgem-navy-dk);
    padding: 20px 32px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.mgem__quicklinks-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.mgem__quicklink {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.mgem__quicklink-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mgem__quicklink-dot--ruby     { background: #c0392b; }
.mgem__quicklink-dot--emerald  { background: #27ae60; }
.mgem__quicklink-dot--sapphire { background: #2980b9; }
.mgem__quicklink-dot--amethyst { background: #9b59b6; }
.mgem__quicklink-dot--topaz    { background: #f39c12; }
.mgem__quicklink-dot--aqua     { background: #7ec8d4; }
.mgem__quicklink-dot--opal     { background: #e8c4b4; }
.mgem__quicklink-dot--pearl    { background: #f0ece4; border: 1px solid rgba(255,255,255,0.2); }

/* ── Search Section ──────────────────────────────────── */
.mgem__search {
    background: var(--mgem-off);
    padding: 56px 32px;
}

.mgem__search-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.mgem__search-header {
    text-align: center;
    margin-bottom: 40px;
}

.mgem__search-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mgem-text);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.mgem__search-sub {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mgem-muted);
    margin: 0 auto;
    max-width: 580px;
}

.mgem__iframe-wrap {
    background: var(--mgem-white);
    border: 1px solid var(--mgem-border);
    border-top: 3px solid var(--mgem-navy);
    overflow: hidden;
}

.mgem__iframe-wrap iframe {
    display: block;
}

/* ── Why Gemstones ───────────────────────────────────── */
.mgem__why {
    background: var(--mgem-white);
    padding: 72px 32px;
}

.mgem__why-inner {
    max-width: 960px;
    margin: 0 auto;
}

.mgem__why-header {
    text-align: center;
    margin-bottom: 48px;
}

.mgem__why-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mgem-text);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.mgem__why-sub {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mgem-muted);
    margin: 0 auto;
    max-width: 520px;
}

.mgem__why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mgem__why-card {
    border: 1px solid var(--mgem-border);
    border-top: 3px solid var(--mgem-gold);
    padding: 28px 24px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mgem__why-card:hover {
    box-shadow: 0 8px 32px rgba(42,46,127,0.08);
    transform: translateY(-2px);
}

.mgem__why-icon {
    color: var(--mgem-gold);
    font-size: 18px;
    margin-bottom: 16px;
}

.mgem__why-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mgem-navy);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.mgem__why-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--mgem-muted);
    margin: 0;
}

/* ── Birthstone Guide ────────────────────────────────── */
.mgem__birthstones {
    background: var(--mgem-navy);
    padding: 72px 32px;
}

.mgem__birthstones-inner {
    max-width: 960px;
    margin: 0 auto;
}

.mgem__birthstones-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mgem-white);
    margin: 0 0 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.mgem__bs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.mgem__bs-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 16px;
    text-align: center;
    transition: background 0.2s ease;
}

.mgem__bs-card:hover {
    background: rgba(255,255,255,0.1);
}

.mgem__bs-dot {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    margin: 0 auto 12px;
    transform: rotate(45deg);
}

.mgem__bs-month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}

.mgem__bs-stone {
    font-size: 12px;
    font-weight: 600;
    color: var(--mgem-white);
}

/* ── Bottom CTA ──────────────────────────────────────── */
.mgem__cta {
    background: var(--mgem-off);
    padding: 72px 32px;
    text-align: center;
    border-top: 3px solid var(--mgem-gold);
}

.mgem__cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.mgem__cta-heading {
    font-size: 30px;
    font-weight: 800;
    color: var(--mgem-text);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.mgem__cta-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mgem-muted);
    margin: 0 0 32px;
}

.mgem__cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mgem__btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mgem__btn--gold {
    background: var(--mgem-gold);
    color: var(--mgem-navy) !important;
    border: 1px solid var(--mgem-gold);
}

.mgem__btn--gold:hover {
    background: var(--mgem-gold-lt);
}

.mgem__btn--outline {
    background: transparent;
    border: 1px solid var(--mgem-navy);
    color: var(--mgem-navy) !important;
}

.mgem__btn--outline:hover {
    background: var(--mgem-navy);
    color: var(--mgem-white) !important;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
    .mgem__why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mgem__bs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .mgem__hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mgem__hero-gems {
        flex-direction: row;
        justify-content: center;
    }

    .mgem__hero-heading {
        font-size: 30px;
    }

    .mgem__quicklinks-inner {
        gap: 16px;
    }

    .mgem__why-grid {
        grid-template-columns: 1fr;
    }

    .mgem__bs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mgem__cta-heading {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .mgem__bs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════
   End McGee Gemstone Search Page
   ═══════════════════════════════════════════════════════ */
