/* modern-ms.css — Multi-scheme microsite theme
   Only loaded for domains with modern design flag. */

:root {
    --accent: #4A1D8E;
    --accent-light: #5E2BAD;
    --accent-bg: #F4F0FA;
    --gold: #C9A84C;
    --lifecycle-hover: #F9F6FD;
    --trust-bg: linear-gradient(135deg, #4A1D8E 0%, #6B3AC2 100%);
}

/* ── Reset for modern sections ── */
.ms-modern {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #1d1d1f;
    line-height: 1.5;
    background: #f5f5f7;
    padding-top: 32px;
    padding-bottom: 16px;
}

.ms-modern *, .ms-modern *::before, .ms-modern *::after {
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Sections ── */
.ms-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ── Typography ── */
.ms-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin: 0 0 8px 0;
}

.ms-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6e6e73;
    margin: 0 0 28px 0;
}

/* ── Lifecycle Strip ── */
.ms-lc {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    border-top: 3px solid var(--gold);
}

.ms-lc-col {
    flex: 1;
    padding: 28px;
    transition: background 0.15s;
}

.ms-lc-col:hover { background: var(--lifecycle-hover); }
.ms-lc-col + .ms-lc-col { border-left: 1px solid #f0f0f0; }

.ms-lc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ms-lc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ms-lc-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
}

.ms-lc-links {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 52px;
}

.ms-lc-links li { margin-bottom: 8px; }

.ms-lc-links a {
    font-size: 14px;
    font-weight: 500;
    color: #424245;
    text-decoration: none;
    transition: color 0.15s;
}

.ms-lc-links a:hover { color: var(--accent); text-decoration: underline; }

/* ── Deal Cards ── */
.ms-deals { display: flex; flex-direction: column; gap: 12px; }

.ms-deal {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.ms-deal:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-left-color: var(--gold);
}

.ms-deal-img {
    flex: 0 0 140px;
    height: 90px;
    background: #f9f9fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ms-deal-img img { max-width: 125px; max-height: 80px; object-fit: contain; }

.ms-deal-info { flex: 1; min-width: 0; }
.ms-deal-name { font-size: 17px; font-weight: 700; color: #1d1d1f; margin-bottom: 2px; }
.ms-deal-class { font-size: 14px; font-weight: 500; color: #6e6e73; margin-bottom: 6px; }
.ms-deal-loc { font-size: 14px; font-weight: 500; color: #424245; margin-bottom: 10px; }

.ms-deal-specs { display: flex; gap: 16px; }
.ms-deal-spec { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: #6e6e73; }
.ms-deal-spec svg { width: 15px; height: 15px; fill: #86868b; }

.ms-deal-price { flex: 0 0 auto; text-align: right; padding-left: 20px; }
.ms-deal-amt { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.ms-deal-unit { font-size: 13px; font-weight: 500; color: #6e6e73; margin-top: 2px; }
.ms-deal-total { font-size: 13px; font-weight: 500; color: #424245; margin-top: 6px; }
.ms-deal-dates { font-size: 12px; color: #86868b; margin-top: 2px; }

/* ── Trust Bar ── */
.ms-trust {
    background: var(--trust-bg);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ms-trust-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; }

.ms-trust-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

/* ── Q&A Grid ── */
.ms-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ms-qa-link {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
    text-decoration: none;
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
    border-left: 3px solid transparent;
}

.ms-qa-link:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    border-left-color: var(--gold);
    color: var(--accent);
}

/* ── Locations ── */
.ms-locs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.ms-loc {
    display: block;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-decoration: none;
    color: #424245;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: box-shadow 0.2s, color 0.15s;
}

.ms-loc:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); color: var(--accent); }

/* ── Copyright ── */

/* ── Alpha Cars Banner ── */
.ms-alpha-banner,
.ms-alpha-banner:hover,
.ms-alpha-banner:visited,
.ms-alpha-banner:active {
    display: block;
    background: #0D1117;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    position: relative;
    color: inherit;
}
.ms-alpha-ad {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    border-radius: 3px;
    padding: 1px 5px;
    letter-spacing: 0.5px;
}
.ms-alpha-above, .ms-alpha-below {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #8B949E;
    letter-spacing: 0.05em;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ms-alpha-banner:hover .ms-alpha-above,
.ms-alpha-banner:hover .ms-alpha-below {
    color: #C9A84C;
    text-decoration: none;
    opacity: 1;
}
.ms-alpha-text {
    display: block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #D4AF37, #FCF6BA, #BF953F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ms-shimmer 3s linear infinite;
    margin: 6px 0;
}
@keyframes ms-shimmer {
    to { background-position: 200% center; }
}

.ms-copy { text-align: center; font-size: 13px; color: #86868b; padding: 32px 24px 48px; max-width: 920px; margin: 0 auto; }


/* ── Teal & Gold scheme ── */
.ms-modern[data-scheme="teal-gold"] {
    --accent: #0D7377;
    --accent-light: #14919B;
    --accent-bg: #E8F8F5;
    --lifecycle-hover: #F0FAF8;
    --trust-bg: linear-gradient(135deg, #0D7377 0%, #14919B 100%);
}

/* ── Navy & Coral scheme ── */
.ms-modern[data-scheme="navy-coral"] {
    --accent: #1F3044;
    --accent-light: #2C4462;
    --accent-bg: #EEF2F7;
    --gold: #E07A5F;
    --lifecycle-hover: #F5F7FB;
    --trust-bg: linear-gradient(135deg, #1F3044 0%, #2C4462 100%);
}


/* ── VD Supplier Details Card ── */
.ms-vd-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    border-top: 3px solid var(--gold);
    padding: 32px;
    margin-bottom: 16px;
}

.ms-vd-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 20px 0;
}

.ms-vd-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin: 24px 0 8px 0;
}

.ms-vd-card h4:first-child { margin-top: 0; }

.ms-vd-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #424245;
    margin: 0 0 12px 0;
}

/* Pickup/directions blocks */
.ms-vd-pickup {
    background: var(--accent-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.ms-vd-pickup h4 {
    color: var(--accent);
    margin: 0 0 8px 0;
}

.ms-vd-pickup p {
    margin: 0;
    color: #333;
}

/* Opening hours table */
.ms-vd-hours {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px 0;
}

.ms-vd-hours tr:nth-child(even) { background: #f9f9fb; }
.ms-vd-hours tr:nth-child(odd) { background: #fff; }

.ms-vd-hours td {
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.ms-vd-hours td:first-child {
    font-weight: 600;
    color: #1d1d1f;
    width: 40%;
}

.ms-vd-hours td:last-child {
    color: #424245;
}

/* Useful information sections */
.ms-vd-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 16px 0 6px 0;
}

.ms-vd-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #424245;
    margin: 0 0 8px 0;
}

/* Custom info block */
.ms-vd-custom {
    background: linear-gradient(135deg, var(--accent-bg) 0%, #fff 100%);
    border-radius: 10px;
    padding: 20px;
    border-left: 3px solid var(--accent);
    margin: 16px 0;
}

.ms-vd-custom h4 {
    color: var(--accent);
    margin: 0 0 8px 0;
}

.ms-vd-custom p { margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ms-lc { flex-direction: column; }
    .ms-lc-col + .ms-lc-col { border-left: none; border-top: 1px solid #f0f0f0; }
    .ms-qa { grid-template-columns: 1fr; }
    .ms-locs { grid-template-columns: 1fr 1fr; }
    .ms-deal { flex-wrap: wrap; }
    .ms-deal-price { padding-left: 0; padding-top: 12px; border-top: 1px solid #f0f0f0; width: 100%; text-align: left; }
    .ms-title { font-size: 22px; }
    .ms-section { padding: 32px 24px; }
    .ms-trust { flex-direction: column; }
    .ms-trust-item { justify-content: center; }
    .ms-vd-card { padding: 20px; }
    .ms-vd-pickup { padding: 14px; }
    .ms-vd-hours td { padding: 6px 8px; font-size: 13px; }
}
