/* Hand-drawn style CSS for Sparkling Vault Legal Services */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fdfdf8;
    overflow-x: hidden;
}

/* Hand-drawn border effect */
.hand-drawn-border {
    border: 3px solid #2c3e50;
    border-radius: 15px;
    position: relative;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #2c3e50;
    border-radius: 18px;
    opacity: 0.3;
    transform: rotate(0.5deg);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fdfdf8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #8b4513;
    transform: rotate(-0.1deg);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #8b4513;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b4513;
    transition: width 0.3s ease;
    transform: rotate(-1deg);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    transform: rotate(1deg);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfdf8 0%, #f8f4e6 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transform: rotate(-0.5deg);
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    transform: rotate(0.2deg);
}

.hero-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: rotate(1deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 3px solid;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
    font-size: 1rem;
    transform: rotate(-0.5deg);
    background: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid;
    border-radius: 25px;
    opacity: 0.3;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.btn-primary {
    color: #fff;
    background-color: #8b4513;
    border-color: #8b4513;
}

.btn-primary::before {
    border-color: #8b4513;
}

.btn-primary:hover {
    background-color: #6d3410;
    transform: rotate(0deg) scale(1.05);
}

.btn-secondary {
    color: #8b4513;
    border-color: #8b4513;
    background-color: transparent;
}

.btn-secondary::before {
    border-color: #8b4513;
}

.btn-secondary:hover {
    background-color: #8b4513;
    color: #fff;
    transform: rotate(0deg) scale(1.05);
}

.btn-outline {
    color: #2c3e50;
    border-color: #2c3e50;
    background-color: transparent;
}

.btn-outline::before {
    border-color: #2c3e50;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    transform: rotate(0.3deg);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    transform: rotate(-0.2deg);
}

/* About Section */
.about {
    background-color: #f8f4e6;
    transform: rotate(-0.1deg);
}

.about-text h3 {
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 1rem;
    transform: rotate(-0.3deg);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 10px 0;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
    transform: rotate(0.1deg);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background-color: #fdfdf8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #fff;
    padding: 2rem;
    border: 3px solid #8b4513;
    border-radius: 20px;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #8b4513;
    border-radius: 22px;
    opacity: 0.3;
    transform: rotate(-1deg);
}

.service-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.service-card:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 8px 8px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
    transform: rotate(-0.2deg);
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f4e6;
    transform: rotate(0.1deg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border: 3px solid #d4af37;
    border-radius: 20px;
    transform: rotate(-0.3deg);
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #d4af37;
    font-family: serif;
}

.testimonial-card:nth-child(2) {
    transform: rotate(0.4deg);
}

.testimonial-card:nth-child(3) {
    transform: rotate(-0.2deg);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.7;
}

.testimonial-author strong {
    color: #8b4513;
    font-size: 1.1rem;
}

.testimonial-author span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Blog Section */
.blog {
    background-color: #fdfdf8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: #fff;
    padding: 2rem;
    border: 3px solid #2c3e50;
    border-radius: 15px;
    transform: rotate(0.2deg);
    transition: all 0.3s ease;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

.blog-card:nth-child(odd) {
    transform: rotate(-0.3deg);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
}

.blog-card h3 a:hover {
    color: #8b4513;
}

.blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Detail Sections */
.blog-detail {
    background-color: #fdfdf8;
    padding: 120px 0 80px;
}

.blog-detail.hidden {
    display: none;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border: 3px solid #2c3e50;
    border-radius: 15px;
    transform: rotate(0.1deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.blog-article h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.blog-content h3 {
    color: #8b4513;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.blog-content ul {
    margin: 1rem 0 2rem 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Contact Section */
.contact {
    background-color: #f8f4e6;
    transform: rotate(-0.05deg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-container {
    background-color: #fff;
    padding: 2rem;
    border: 3px solid #8b4513;
    border-radius: 20px;
    transform: rotate(0.3deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    transform: rotate(-0.1deg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    transform: rotate(0deg);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #8b4513;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    transform: rotate(-0.2deg);
}

.contact-item {
    margin-bottom: 1.5rem;
    transform: rotate(0.1deg);
}

.contact-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #8b4513;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item address {
    font-style: normal;
    color: #555;
    line-height: 1.6;
}

/* Legal Section */
.legal {
    background-color: #fdfdf8;
    padding: 40px 0;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #8b4513;
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: rotate(-0.2deg);
}

.legal-link:hover {
    background-color: #8b4513;
    color: #fff;
    transform: rotate(0deg) scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fdfdf8;
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid #8b4513;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(0.1deg);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #8b4513;
}

.close:hover {
    color: #6d3410;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.modal-body h3 {
    color: #8b4513;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.modal-body h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
    transform: rotate(-0.05deg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #d4af37;
    transform: rotate(-0.2deg);
}

.footer-section p,
.footer-section address {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-style: normal;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #bbb;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 1.5rem;
    z-index: 1500;
    border-top: 3px solid #8b4513;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 1rem;
    color: #d4af37;
    font-size: 1.3rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfdf8 0%, #f8f4e6 100%);
    padding: 2rem;
}

.thanks-content {
    text-align: center;
    background-color: #fff;
    padding: 3rem;
    border: 3px solid #8b4513;
    border-radius: 20px;
    max-width: 600px;
    transform: rotate(0.2deg);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

.thanks-content h1 {
    color: #8b4513;
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: rotate(-0.3deg);
}

.thanks-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #555;
}

.thanks-actions {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fdfdf8;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        border-bottom: 3px solid #8b4513;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }

    .legal-links {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
