/* RouterKingUSA.com Premium Apple-Style Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --rk-dark: #1d1d1f;       /* Apple Charcoal Dark */
    --rk-grey-dark: #434344;
    --rk-grey: #86868b;        /* Apple Muted Gray */
    --rk-grey-light: #f5f5f7;  /* Apple Off-white background */
    --rk-blue: #0071e3;        /* Apple Link Blue */
    --rk-blue-hover: #0077ed;
    --rk-white: #ffffff;
    --rk-border: #d2d2d7;      /* Apple Border Gray */
    
    --font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-headings: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--rk-dark);
    background-color: var(--rk-white);
    overflow-x: hidden;
    line-height: 1.47059; /* Apple default body line-height */
    letter-spacing: -0.011em; /* Apple body text tracking */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--rk-dark);
    font-weight: 600;
    letter-spacing: -0.003em;
}

/* Header Styling (Apple-like Menu) */
.rk-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--rk-dark) !important;
    letter-spacing: -0.03em;
}

.navbar-brand span {
    color: var(--rk-blue);
}

.nav-link {
    font-weight: 400;
    color: var(--rk-dark) !important;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
    font-size: 0.85rem;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--rk-blue) !important;
}

/* Lang Switcher */
.lang-switcher {
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--rk-grey) !important;
    transition: color 0.2s;
}

.lang-switcher:hover, .lang-switcher.active {
    color: var(--rk-blue) !important;
}

/* Apple-style Pill Buttons */
.btn-rk-primary {
    background-color: var(--rk-blue);
    color: var(--rk-white);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 980px; /* Apple pill button standard */
    border: none;
    font-size: 0.85rem;
    transition: background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-rk-primary:hover {
    background-color: var(--rk-blue-hover);
    color: var(--rk-white);
}

.btn-rk-primary:active {
    transform: scale(0.98);
}

.btn-rk-secondary {
    background-color: transparent;
    color: var(--rk-blue);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 980px;
    border: 1px solid var(--rk-blue);
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-rk-secondary:hover {
    background-color: var(--rk-blue);
    color: var(--rk-white);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background-color: var(--rk-white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--rk-dark);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--rk-grey);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.4;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--rk-grey-light);
    border-top: 1px solid var(--rk-border);
    border-bottom: 1px solid var(--rk-border);
    padding: 2rem 0;
}

.trust-bar-item {
    font-weight: 600;
    font-size: 1rem;
    color: var(--rk-dark);
    text-align: center;
}

.trust-bar-item small {
    display: block;
    font-weight: 400;
    color: var(--rk-grey);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Apple-style Flat Cards */
.rk-card {
    background: var(--rk-grey-light);
    border: none;
    border-radius: 18px;
    padding: 2.5rem;
    transition: background-color 0.2s;
    height: 100%;
}

.rk-card:hover {
    background-color: #ededf0;
}

.rk-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--rk-white);
    color: var(--rk-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Features Tag */
.section-tag {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--rk-grey);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.021em;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--rk-grey);
    max-width: 650px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.47059;
    letter-spacing: -0.011em;
}

/* Security Diagram UI */
.diagram-container {
    background: var(--rk-grey-light);
    border-radius: 18px;
    padding: 2.5rem;
}

.diagram-node {
    background: var(--rk-white);
    border: 1px solid var(--rk-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.diagram-node.active {
    border-color: var(--rk-blue);
}

.diagram-connector {
    height: 30px;
    width: 1px;
    background: var(--rk-border);
    margin: 0 auto;
}

/* Brand Relationship Graphic */
.brand-tree {
    border-radius: 18px;
    padding: 2.5rem;
    background: var(--rk-grey-light);
}

.brand-node {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.brand-node-parent {
    background: var(--rk-dark);
    color: var(--rk-white);
}

.brand-node-child {
    background: var(--rk-white);
    color: var(--rk-dark);
    border: 1px solid var(--rk-border);
}

.brand-node-retailer {
    background: var(--rk-white);
    color: var(--rk-blue);
    border: 1.5px solid var(--rk-blue);
}

/* Product Comparison Table */
.rk-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.rk-table th {
    background: var(--rk-grey-light);
    color: var(--rk-dark);
    font-weight: 600;
    padding: 1.25rem;
    border-bottom: 1px solid var(--rk-border);
}

.rk-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--rk-border);
    vertical-align: middle;
    color: var(--rk-grey-dark);
}

/* Trust Section Footer */
.trust-footer-section {
    background: var(--rk-white);
    border-top: 1px solid var(--rk-border);
    padding: 3rem 0;
}

.trust-footer-item {
    font-size: 0.85rem;
    color: var(--rk-dark);
    font-weight: 500;
}

.trust-footer-item i {
    font-size: 1.25rem;
    color: var(--rk-grey);
    margin-right: 0.5rem;
}

/* Footer styling */
.rk-footer {
    background: var(--rk-grey-light);
    color: var(--rk-grey);
    padding: 4rem 0 2rem;
    font-size: 0.75rem;
    border-top: 1px solid var(--rk-border);
}

.rk-footer h5 {
    color: var(--rk-dark);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rk-footer a {
    color: var(--rk-grey-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.rk-footer a:hover {
    color: var(--rk-blue);
    text-decoration: underline;
}

.rk-footer hr {
    border-color: var(--rk-border);
    margin: 2.5rem 0 1.5rem;
}

.rk-footer-trademark {
    font-size: 0.7rem;
    color: var(--rk-grey);
    line-height: 1.4;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--rk-border);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    background-color: var(--rk-grey-light);
}

.form-control:focus, .form-select:focus {
    background-color: var(--rk-white);
    border-color: var(--rk-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Admin Dashboard */
.admin-sidebar {
    background: var(--rk-dark);
    min-height: 100vh;
    color: rgba(255, 255, 255, 0.8);
}

.admin-sidebar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    display: block;
    transition: all 0.2s;
    font-weight: 500;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--rk-white);
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--rk-blue);
}

/* Floating Accessibility Widget */
.rk-accessibility-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
}

.rk-accessibility-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--rk-blue);
    color: var(--rk-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.rk-accessibility-btn:hover {
    background-color: var(--rk-blue-hover);
    transform: scale(1.05);
}

.rk-accessibility-menu {
    position: absolute;
    bottom: 56px;
    left: 0;
    width: 270px;
    background-color: var(--rk-white);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rk-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: rkSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rkSlideUp {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.rk-accessibility-menu.show {
    display: flex;
}

.rk-accessibility-menu-header {
    padding: 0.85rem 1.25rem;
    background-color: var(--rk-grey-light);
    border-bottom: 1px solid var(--rk-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rk-accessibility-menu-header h6 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.rk-accessibility-menu-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.access-option-btn {
    background-color: var(--rk-grey-light);
    color: var(--rk-dark);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.access-option-btn:hover {
    background-color: #e8e8ec;
}

.access-option-btn.active {
    border-color: var(--rk-blue);
    color: var(--rk-blue);
    background-color: rgba(0, 113, 227, 0.05);
}

/* Accessibility State Modifiers */
html.access-high-contrast {
    filter: contrast(125%) !important;
}

html.access-invert {
    filter: invert(1) hue-rotate(180deg) !important;
}

html.access-dyslexic {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
}

html.access-highlight-links a {
    text-decoration: underline !important;
    font-weight: bold !important;
    outline: 2px dashed var(--rk-blue) !important;
    outline-offset: 2px !important;
}

/* Text Resizing modifier rules */
html.text-size-110 body { font-size: 1.05rem !important; }
html.text-size-120 body { font-size: 1.12rem !important; }
html.text-size-130 body { font-size: 1.2rem !important; }

/* Navy Theme Utility Classes */
.bg-navy {
    background-color: #0a182e !important;
    color: #ffffff !important;
}
.text-navy {
    color: #0a182e !important;
}


