/* Trusted Counsel Atmosphere - Houritsu Plus Legal Services */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind', sans-serif;
    color: #5C4B42;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Mobile Navigation Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #524038 0%, #2E1F1D 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(26, 21, 18, 0.3);
}

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 21, 18, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #524038, #4A2C2A);
    padding: 24px;
    box-shadow: 0 -4px 16px rgba(26, 21, 18, 0.4);
    z-index: 1001;
    border-top: 3px solid #B8944D;
}

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

.cookie-modal-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-modal-text {
    flex: 1;
    min-width: 300px;
    color: #FAF9F6;
}

.cookie-modal-text p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-modal button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Hind', sans-serif;
}

.cookie-modal .accept-btn {
    background: #B8944D;
    color: #1A1512;
}

.cookie-modal .accept-btn:hover {
    background: #D4A858;
    transform: translateY(-1px);
}

.cookie-modal .reject-btn {
    background: transparent;
    color: #FAF9F6;
    border: 2px solid #FAF9F6;
}

.cookie-modal .reject-btn:hover {
    background: rgba(250, 249, 246, 0.1);
}

.cookie-modal .settings-btn {
    background: transparent;
    color: #B8944D;
    text-decoration: underline;
    padding: 10px 16px;
}

.cookie-modal .settings-btn:hover {
    color: #D4A858;
}

/* Cookie Policy Toggle Styles */
.cookie-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #FAF9F6;
    border: 1px solid #B8944D;
    border-radius: 6px;
    margin-bottom: 16px;
}

.cookie-toggle-info h3 {
    font-family: 'Lora', serif;
    color: #1A1512;
    margin-bottom: 6px;
}

.cookie-toggle-info p {
    color: #5C4B42;
    font-size: 0.9rem;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: background 0.2s;
}

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

.toggle-switch input:checked + .toggle-slider {
    background: #4A6741;
}

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

.toggle-switch input:disabled + .toggle-slider {
    background: #B8944D;
    cursor: not-allowed;
}

.cookie-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4A6741;
    color: #FAF9F6;
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 21, 18, 0.3);
    z-index: 1002;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.cookie-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
button:hover,
.btn:hover,
a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 44, 42, 0.2);
}

.service-card:hover,
.benefit-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 44, 42, 0.15);
}

.team-member:hover {
    transform: scale(1.02);
}

img:hover {
    opacity: 0.95;
}

/* Link Hover Effects */
a {
    transition: color 0.2s ease;
}

a:hover {
    color: #B8944D;
}

/* Navigation Active State */
nav a.active {
    color: #B8944D;
    font-weight: 600;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #B8944D;
    box-shadow: 0 0 0 3px rgba(184, 148, 77, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .cookie-modal-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-modal-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-modal button {
        width: 100%;
    }

    .cookie-notification {
        left: 20px;
        right: 20px;
    }
}

/* Browser Instructions Accordion */
.browser-instructions {
    margin-bottom: 16px;
}

.browser-header {
    background: #524038;
    color: #FAF9F6;
    padding: 16px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.browser-header:hover {
    background: #4A2C2A;
}

.browser-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FAF9F6;
    border: 1px solid #B8944D;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.browser-content.active {
    max-height: 500px;
    padding: 16px;
}

.browser-content ol {
    margin-left: 20px;
    color: #5C4B42;
}

.browser-content li {
    margin-bottom: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #B8944D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A2C2A;
}
