:root {
    --primary-color: #111C38;
    --accent-color: #DFB288;
    --white: #FFFFFF;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    color: var(--primary-color);
    background-color: var(--white);
    line-height: 1.6;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background-color: rgba(17, 28, 56, 0.8); /* Semi-transparent background */
    color: var(--white);
    border: 2px solid rgb(137, 137, 137, 0.5);
    border-radius: 15px; /* Rounded edges */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for floating effect */
    z-index: 1000; /* Ensures it stays above other content */
    width: 90%; /* Adjust width for responsiveness */
    max-width: 1200px; /* Prevent excessive stretching on larger screens */
}

header .logo {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover {
    background-color: var(--accent-color); /* Highlight on hover */
    color: var(--primary-color);
}

section:nth-child(even) {
    background-color: #c7cddd;
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
/*    background: url('https://roblesfamilylaw.com/wp-content/uploads/2023/06/law-legal-system-justice-crime-concept-mallet-gavel-hammer-scales-table-d-render-illustration-1.jpg') center/cover no-repeat;*/
    background: url('images/scale_banner.png') center/cover no-repeat;
    color: var(--white);
    position: relative;
}

.hero-text h1 {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.hero-text .cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
}

.hero-text {
    border: none;
}

.cta-button {
    border: 2px solid #DFB288;
}

.cta-button:hover {
    border: 2px solid #fff;
}

.about, .practice-areas, .contact {
    padding: 2rem;
    text-align: center;
}

.practice-areas .areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.practice-areas .area {
    flex: 1 1 calc(33.333% - 2rem); /* 3 columns with spacing */
    max-width: calc(33.333% - 2rem);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    background-color: var(--white);
}

.practice-areas .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.contact form input, 
.contact form textarea, 
.contact form button {
    width: 100%; /* Full width */
    display: block; /* Ensures the button behaves like a block element, just like inputs */
    padding: 0.75rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't reduce width */
}

.contact form button {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
}

.contact form textarea {
    resize: none; /* Disables resizing of the textarea */
    height: 150px; /* Optional: Set a consistent height for the textarea */
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-row {
    display: flex;           /* Flexbox layout for side-by-side columns */
    justify-content: space-between; /* Space between the divs */
    gap: 1rem;               /* Optional: Adds space between columns */
}

.footer-column {
    flex: 1;                 /* Ensures each column takes equal space */
    text-align: center;      /* Center-aligns the content */
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;      /* Optional: Adds rounded corners */
}

.about {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
}

.about-section {
    flex: 1;
    max-width: 50%; /* Prevents stretching */
}

.about-section h2 {
    margin-bottom: 0.5rem;
}

.about-section p {
    margin: 0;
}

.alert {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 500px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 1s ease;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.documents {
    padding: 2rem;
    text-align: center;
}

.documents-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Space between the buttons */
    margin-top: 1rem;
}

.document-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.document-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Dim background */
}

/* Modal content */
.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    color: var(--primary-color);
}

/* Close button */
.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.pointer {
    cursor: pointer;
}

.pointer:hover {
    background-color: #f2f5fc;
}

.area {
/*    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
    box-shadow: 4px 4px 15px #777;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.g-recaptcha {
    transform: scale(0.85); /* Scales the reCAPTCHA */
    transform-origin: center; /* Keeps the scaling centered */
    height: 78px; /* Adjust height after scaling */
    width: 304px; /* Original width of the reCAPTCHA */
}

@media (max-width: 992px) {
    .practice-areas .area {
        flex: 1 1 calc(50% - 2rem); /* 2 columns for medium screens */
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
    }

    .about-section {
        max-width: 100%;
        text-align: center;
    }

    .practice-areas .area {
        flex: 1 1 100%; /* Stacks all items for small screens */
        max-width: 100%;
    }

    .footer-row {
        flex-direction: column;  /* Stack columns vertically on small screens */
    }

    @media (max-width: 768px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85); /* Scale down for smaller screens */
    }
    
    .g-recaptcha {
        transform: scale(1); /* Full size on larger screens */
        height: 90px; /* Adjust height for desktop */
    }
}

