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

/* Body Base Styles */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Mobile Navigation Styles */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
    transform: translateX(0);
}

/* Menu Overlay */
#menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Burger Menu Animation */
#burger {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#burger:hover {
    transform: scale(1.1);
}

/* Cookie Modal Styles */
#cookie-modal {
    transition: opacity 0.3s ease-in-out;
}

#cookie-modal:not(.hidden) {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Button Hover Effects */
button,
a.button,
.btn {
    transition: all 0.3s ease;
}

button:hover,
a.button:hover,
.btn:hover {
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
    transition: all 0.3s ease;
}

/* Link Hover Effects */
a {
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Spacing */
section {
    position: relative;
}

/* Container Max Width */
.container {
    max-width: 1280px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #003153;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(124, 144, 130, 0.1);
}

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

.faq-answer.active {
    max-height: 500px;
    padding: 1rem 0;
}

/* Form Styles */
form input,
form textarea,
form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input:hover,
form textarea:hover,
form select:hover {
    border-color: #7C9082;
}

form button[type="submit"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 65, 14, 0.3);
}

/* Star Rating Styles */
.star-rating {
    display: inline-flex;
    gap: 0.25rem;
}

.star-rating i {
    color: #FFD700;
    transition: transform 0.3s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
}

/* Avatar Styles */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #003153, #7C9082);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* Testimonial Card Styles */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Service Card Styles */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Stats Counter Animation */
.stat-number {
    font-weight: 700;
    transition: color 0.3s ease;
}

.stat-number:hover {
    color: #003153;
}

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

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

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

.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: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

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

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

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

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #003153;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Footer Styles */
footer {
    background-color: #003153;
    color: white;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #7C9082;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    #mobile-menu {
        width: 80%;
        max-width: 300px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 20px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    #cookie-modal,
    #menu-overlay,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
}

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

/* Focus Visible Styles */
*:focus-visible {
    outline: 2px solid #003153;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success State */
.success {
    color: #10b981;
}

/* Error State */
.error {
    color: #ef4444;
}

/* Disabled State */
.disabled,
[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text Selection */
::selection {
    background-color: #7C9082;
    color: white;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #003153, #7C9082);
}

.gradient-secondary {
    background: linear-gradient(135deg, #7C9082, #C9B896);
}

.gradient-accent {
    background: linear-gradient(135deg, #B7410E, #003153);
}
