/* Judicial Serenity Framework - Legal Services Stylesheet */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #5A6169;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #141414;
    font-weight: 700;
    line-height: 1.3;
}

/* Navigation Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #3B4A5C 0%, #1E2D42 100%);
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(20, 20, 20, 0.6);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: #1A2744;
    transition: all 0.3s ease;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #FAFBFC;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Hover Effects */
a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
}

.service-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 8px 20px rgba(26, 39, 68, 0.15);
    transform: translateY(-4px);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #3B4A5C 0%, #1E2D42 100%);
    color: #FAFBFC;
    padding: 24px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    border-top: 2px solid #C7A951;
}

.cookie-modal.hidden {
    display: none;
}

/* Form Styles */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3D7A7A;
    box-shadow: 0 0 0 3px rgba(61, 122, 122, 0.1);
}

/* Legal Document Formatting */
.legal-section {
    border-left: 3px solid #C7A951;
    padding-left: 24px;
    margin: 32px 0;
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #5A6169;
    transition: background-color 0.3s ease;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.3s ease;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3D7A7A;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3D7A7A;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1002;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid rgba(90, 97, 105, 0.2);
}

.faq-question {
    cursor: pointer;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #1A2744;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Avatar Gradients */
.avatar-gradient {
    background: linear-gradient(135deg, #1A2744 0%, #3D7A7A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FAFBFC;
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

/* Star Rating */
.star-rating {
    color: #C7A951;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Grid */
@media (max-width: 640px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .cookie-modal,
    .mobile-menu,
    .burger-menu,
    header,
    footer {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid #3D7A7A;
    outline-offset: 2px;
}

/* Browser Instruction Styles */
.browser-instructions {
    background: #FAFBFC;
    border: 1px solid rgba(26, 39, 68, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.browser-instructions summary {
    cursor: pointer;
    font-weight: 600;
    color: #1A2744;
    padding: 8px;
    transition: color 0.2s ease;
}

.browser-instructions summary:hover {
    color: #3D7A7A;
}

.browser-instructions ol {
    margin: 12px 0 0 20px;
    padding: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(90, 97, 105, 0.2);
}

.comparison-table th {
    background: linear-gradient(180deg, #3B4A5C 0%, #1E2D42 100%);
    color: #FAFBFC;
    font-family: 'Merriweather', serif;
}

.comparison-table tr:hover {
    background: rgba(61, 122, 122, 0.05);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(26, 39, 68, 0.12);
}

/* Citation Monospace */
.citation {
    font-family: 'Cousine', monospace;
    font-size: 0.9em;
    color: #5A6169;
}

/* Success Indicator */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #3D7A7A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

/* Countdown Timer */
.countdown {
    font-family: 'Cousine', monospace;
    font-size: 2em;
    color: #1A2744;
    font-weight: 700;
}

/* Confirmation Number */
.confirmation-number {
    background: linear-gradient(135deg, #3B4A5C 0%, #1E2D42 100%);
    color: #FAFBFC;
    padding: 16px 24px;
    border-radius: 8px;
    font-family: 'Cousine', monospace;
    font-size: 1.1em;
    display: inline-block;
    margin: 16px 0;
}

/* Copy Button */
.copy-btn {
    background: transparent;
    border: 1px solid #C7A951;
    color: #C7A951;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #C7A951;
    color: #1A2744;
}
