/* ====================================
   J. CORNELIUS LAW FIRM - MAIN STYLES
   ====================================*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #c5a257;
    transition: all 0.3s ease;
}

a:hover {
    color: #b49140;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: #c5a257;
    color: white;
}

.btn-primary:hover {
    background-color: #b49140;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #c5a257;
    border: 2px solid #c5a257;
}

.btn-secondary:hover {
    background-color: #c5a257;
    color: white;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
    }

    .grid {
        gap: 20px;
    }

    /* Ensure images scale properly on mobile */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .grid {
        gap: 15px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Make all sections stack properly */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Improve touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for mobile */
    section {
        padding: 40px 0;
    }

    /* Improve form elements for mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        width: 100%;
    }
}
  