:root {
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --brand-blue: #004AAD;
    --brand-lime: #99CC33;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b89628;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Palette */
[data-theme="dark"] {
    --bg-base: #0a0f1d;
    --bg-card: #111827;
    --bg-card-inner: #162032;
    --bg-card-hover: #1c2940;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --border-color: rgba(212, 175, 55, 0.25);
    --header-bg: rgba(10, 15, 29, 0.95);
    --input-bg: #1e293b;
    --input-border: rgba(255, 255, 255, 0.1);
}

/* Light Palette (Soft Light Grey) */
[data-theme="light"] {
    --bg-base: #edf2f7;
    --bg-card: #ffffff;
    --bg-card-inner: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 74, 173, 0.12);
    --header-bg: rgba(237, 242, 247, 0.95);
    --input-bg: #f8fafc;
    --input-border: rgba(0, 74, 173, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6%;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.back-link:hover { color: var(--accent-gold); }

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.08);
}

[data-theme="dark"] .sun-icon { display: block; color: var(--accent-gold); }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; color: var(--brand-blue); }

.header-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.hero-section {
    padding: 50px 6% 25px 6%;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.legal-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.badge-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-section h1 span {
    color: var(--accent-gold);
    font-style: italic;
}

.hero-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 4%;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.service-category-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tier-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.tier-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.tier-card.popular {
    border: 2px solid var(--accent-gold);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gold);
    color: #0a0f1d;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: inline-block;
}

.tier-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tier-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tier-features li {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.tier-features li i {
    color: var(--accent-gold);
    font-size: 0.75rem;
    margin-top: 3px;
}

.btn-tier {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-tier:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.btn-gold, .tier-card.popular .btn-tier {
    background: var(--accent-gold);
    color: #0a0f1d;
    border-color: var(--accent-gold);
}

.btn-gold:hover, .tier-card.popular .btn-tier:hover {
    background: var(--accent-gold-hover);
    color: #0a0f1d;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* Modal Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.checkout-modal {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    color: var(--text-main);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.modal-close:hover { color: var(--text-main); }

.service-summary-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-info h4 { font-size: 0.95rem; font-weight: 700; margin-top: 2px; }
.summary-info span { font-size: 0.72rem; color: var(--accent-gold); text-transform: uppercase; font-weight: bold; }
.summary-price { font-size: 1.25rem; font-weight: 800; color: var(--accent-gold); }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: bold; }
.form-group input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    outline: none;
    font-size: 0.88rem;
}
.form-group input:focus { border-color: var(--accent-gold); }

.btn-submit-order {
    width: 100%;
    background: var(--accent-gold);
    color: #0a0f1d;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-submit-order:hover {
    background: var(--accent-gold-hover);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* --- USEFUL MODERN WIDGETS SECTION (PUBLISHING) --- */
.widgets-container {
    max-width: 1200px;
    margin: 60px auto 30px auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modern-widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.modern-widget-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.widget-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.widget-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Publishing Cost Estimator */
.calc-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.calc-select, .calc-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.88rem;
    outline: none;
}

.calc-result-box {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-res-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.calc-res-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* Publication Steps Timeline */
.timeline-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
}

.timeline-steps-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 2px;
    background: var(--border-color);
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-dot {
    position: absolute;
    left: -20px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 3px solid var(--bg-card);
}

.step-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- SITE GLOBAL FOOTER --- */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 50px 5% 25px 5%;
    margin-top: 60px;
    position: relative;
    z-index: 20;
}

/* --- INTERACTIVE DUAL-PILL THEME SWITCH TOGGLE --- */
.theme-switch-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card-inner, rgba(255, 255, 255, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: var(--transition-smooth);
}

.theme-switch-toggle:hover {
    border-color: var(--accent-gold);
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

[data-theme="light"] .theme-switch-toggle .theme-light {
    background: #ffffff;
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    font-weight: 700;
}

[data-theme="light"] .theme-switch-toggle .theme-dark {
    color: var(--text-muted);
    opacity: 0.45;
}

[data-theme="dark"] .theme-switch-toggle .theme-dark {
    background: var(--accent-gold);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
    font-weight: 700;
}

[data-theme="dark"] .theme-switch-toggle .theme-light {
    color: var(--text-muted);
    opacity: 0.4;
}

/* --- FRAMELESS STAFF PORTAL ICON AT VERY RIGHT --- */
.btn-staff-frameless {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.35rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-staff-frameless:hover {
    color: var(--accent-gold);
    transform: scale(1.18);
}

.footer-top-grid {
    max-width: 1050px;
    margin-right: auto;
    margin-bottom: 30px;
    padding-right: 110px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.1fr 1.2fr;
    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    max-width: 140px;
}

.footer-tagline {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a:hover {
    color: var(--accent-gold);
    transform: translateX(3px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.footer-contact-info a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info a:hover {
    color: var(--accent-gold);
}

.footer-bottom-bar {
    max-width: 1050px;
    margin-right: auto;
    padding-right: 110px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-copyright {
    font-weight: 500;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-badges a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-badges a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .widgets-container {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}
