/**
 * RegolithMedia - Custom Styles
 * Bootstrap 5 + Clean Light Theme
 */

/* === CSS Variables === */
:root {
    --rm-primary: #dc3545;
    --rm-primary-hover: #c82333;
    --rm-primary-light: #fff5f5;
    --rm-bg: #ffffff;
    --rm-bg-alt: #fafafa;
    --rm-text: #1a1a1a;
    --rm-text-muted: #666666;
    --rm-border: #e0e0e0;
    --rm-card-bg: #ffffff;
    --rm-glow: 0 10px 40px rgba(220, 53, 69, 0.2);
    --rm-black: #000000;
}

/* === Base Styles === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--rm-bg);
    color: var(--rm-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--rm-text);
}

.text-muted {
    color: var(--rm-text-muted) !important;
}

/* === Navbar === */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--rm-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--rm-text-muted) !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--rm-primary) !important;
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--rm-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background: var(--rm-bg-alt);
    color: var(--rm-primary);
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #fff5f5 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--rm-border);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--rm-text);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* === Cards === */
.card {
    background: var(--rm-card-bg);
    border: 1px solid var(--rm-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Pricing Card */
.pricing-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--rm-primary);
    box-shadow: var(--rm-glow);
    transform: scale(1.02);
}

.pricing-card.popular:hover {
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rm-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--rm-text);
    margin-bottom: 0;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--rm-text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--rm-text-muted);
}

.pricing-features li i {
    color: var(--rm-primary);
    font-size: 1.25rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--rm-bg-alt);
}

.feature-card i {
    font-size: 2rem;
    color: var(--rm-primary);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--rm-text-muted);
    text-align: left;
}

.feature-card ul li {
    padding: 0.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-card ul li i {
    font-size: 0.875rem;
    margin-top: 0.125rem;
}

.feature-card ul li a {
    color: var(--rm-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.feature-card ul li a:hover {
    color: var(--rm-primary);
    text-decoration: underline;
}

/* === Buttons === */
.btn-primary {
    background: var(--rm-primary);
    border-color: var(--rm-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--rm-primary-hover);
    border-color: var(--rm-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-danger:hover {
    background: var(--rm-primary);
    border-color: var(--rm-primary);
    color: #ffffff !important;
}

.btn-outline-danger:hover i {
    color: #ffffff !important;
}

.btn-outline-light {
    border-color: var(--rm-border);
    color: var(--rm-text);
}

.btn-outline-light:hover {
    background: var(--rm-bg-alt);
    border-color: var(--rm-primary);
    color: var(--rm-primary);
}

/* === Currency Switcher === */
.currency-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rm-bg-alt);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--rm-border);
}

.currency-switcher label {
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    color: var(--rm-text-muted);
}

.currency-switcher label.active {
    color: var(--rm-primary);
    font-weight: 600;
}

.currency-switcher .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin: 0;
    cursor: pointer;
}

.currency-switcher .form-check-input:checked {
    background-color: var(--rm-primary);
    border-color: var(--rm-primary);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--rm-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === Prose (Legal Pages) === */
.prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.prose h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--rm-primary);
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--rm-primary);
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
    color: var(--rm-text);
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--rm-text);
}

.prose li {
    margin-bottom: 0.5rem;
}

/* === Footer === */
footer {
    background: var(--rm-bg-alt) !important;
    border-top: 1px solid var(--rm-border);
}

footer h5,
footer h6 {
    color: var(--rm-text);
}

footer a {
    color: var(--rm-text-muted);
}

footer a:hover {
    color: var(--rm-primary) !important;
}

.payment-logo {
    transition: filter 0.2s;
    filter: grayscale(100%);
}

.payment-logo:hover {
    filter: grayscale(0%);
}

/* === 404 Page === */
.error-404 {
    font-size: 10rem;
    font-weight: 900;
    color: var(--rm-primary);
    text-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* === Datacenter Map === */
.datacenter-map {
    width: 100%;
    overflow: hidden;
}

.datacenter-map img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* === Location Cards === */
.location-card {
    background: var(--rm-bg-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--rm-border);
}

.location-card h4 {
    color: var(--rm-primary);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.location-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--rm-text-muted);
}

.location-card ul li {
    padding: 0.25rem 0;
}

/* === Common Features Grid === */
.common-feature-card {
    text-align: center;
    padding: 1rem;
    background: var(--rm-bg-alt);
}

.common-feature-card i {
    font-size: 1.75rem;
    color: var(--rm-primary);
    margin-bottom: 0.5rem;
}

.common-feature-card p,
.common-feature-card a {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--rm-text);
    text-decoration: none;
}

.common-feature-card a:hover {
    color: var(--rm-primary);
    text-decoration: underline;
}

/* === Utilities === */
.text-gradient {
    background: linear-gradient(135deg, var(--rm-primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Responsive === */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-price {
        font-size: 2rem;
    }
}

/* Mobile (max 767px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .pricing-name {
        font-size: 1.25rem;
    }

    .pricing-price {
        font-size: 1.75rem;
    }

    .pricing-features li {
        font-size: 0.875rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card i {
        font-size: 1.5rem;
    }

    .feature-card h5 {
        font-size: 0.9rem;
    }

    .feature-card ul {
        font-size: 0.8rem;
    }

    .location-card {
        padding: 1rem;
    }

    .location-card h4 {
        font-size: 1rem;
    }

    .prose h1 {
        font-size: 1.75rem;
    }

    .prose h2 {
        font-size: 1.25rem;
    }

    .prose h3 {
        font-size: 1rem;
    }

    .prose p,
    .prose li {
        font-size: 0.9rem;
    }

    .error-404 {
        font-size: 6rem;
    }

    /* Footer mobile */
    footer .row>div {
        margin-bottom: 1.5rem;
    }

    footer .list-inline-item {
        display: block;
        margin-bottom: 0.5rem;
    }

    footer .list-inline-item.text-secondary:not(:has(a)) {
        display: none;
    }

    /* Currency switcher */
    .currency-switcher {
        padding: 0.4rem 0.75rem;
    }

    .currency-switcher label {
        font-size: 0.8rem;
    }

    /* Datacenter map */
    .datacenter-map img {
        max-width: 100%;
    }

    /* Common feature cards */
    .common-feature-card i {
        font-size: 1.5rem;
    }

    .common-feature-card p,
    .common-feature-card a {
        font-size: 0.75rem;
    }
}

/* Small Mobile (max 575px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-section .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .pricing-price {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .error-404 {
        font-size: 4rem;
    }

    /* Stack footer links vertically */
    footer .list-inline {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    footer .list-inline-item.text-secondary:not(:has(a)) {
        display: none;
    }
}

/* === Social Proof Widget (Glassmorphism) === */
.social-proof-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.social-proof-widget {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 320px;
    max-width: 380px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-proof-widget.show {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--rm-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.social-proof-close:hover {
    opacity: 1;
}

.social-proof-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.social-proof-header i {
    font-size: 1rem;
}

.social-proof-list {
    position: relative;
}

.social-proof-item {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
}

.social-proof-item.active {
    display: flex;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rm-primary), #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-proof-avatar i {
    color: #fff;
    font-size: 1.25rem;
}

.social-proof-content {
    flex: 1;
    min-width: 0;
}

.social-proof-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rm-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-proof-location {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--rm-text-muted);
}

.social-proof-location i {
    font-size: 0.7rem;
}

.social-proof-product {
    font-size: 0.8rem;
    color: var(--rm-text-muted);
    margin-top: 0.125rem;
}

.social-proof-product strong {
    color: var(--rm-primary);
}

.social-proof-time {
    font-size: 0.7rem;
    color: var(--rm-text-muted);
    margin-top: 0.25rem;
    opacity: 0.8;
}

.social-proof-time i {
    font-size: 0.65rem;
}

/* Mobile responsive */
@media (max-width: 575.98px) {
    .social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .social-proof-widget {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}