/* Global Resets & Basic Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #34495E; /* Dark Slate Blue/Gray for text */
    background-color: #F4F6F8; /* Light Grayish Blue background */
}

.container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color: #FFFFFF; /* White for header, stands out on light gray body */
    padding: 1em 0;
    border-bottom: 1px solid #DDE2E6; /* Lighter border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #0A2463; /* Richer, Modern Dark Blue */
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #0A2463; /* Richer, Modern Dark Blue */
    font-weight: 500;
    transition: color 0.2s ease-in-out; /* Smooth transition */
}

nav ul li a:hover, nav ul li a.active {
    color: #1ABC9C; /* Teal Accent for hover/active */
    text-decoration: none; /* Remove underline for a cleaner look, or keep if preferred */
}

/* Main Content Area */
main {
    padding: 40px 0;
}

h1, h2, h3 {
    color: #0A2463; /* Richer, Modern Dark Blue for headings */
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

p, li {
    margin-bottom: 1em;
    color: #566573; /* Slightly softer dark gray for paragraphs */
}

ul {
    padding-left: 20px;
}

a {
    color: #1ABC9C; /* Teal Accent for general links */
    text-decoration: none; /* Cleaner default */
}

a:hover {
    text-decoration: underline; /* Underline on hover for clarity */
    color: #159A80; /* Darker Teal on hover */
}

/* Home Page Specifics */
.welcome-message {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #2C3E50; /* Darker for more emphasis */
}

.home-sections {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between columns */
    margin-bottom: 30px;
}

.home-section {
    flex: 1; /* Each section takes equal space */
    min-width: 280px; /* Minimum width before wrapping */
    background-color: #FFFFFF; /* White background for sections */
    padding: 25px; /* Slightly more padding */
    border: 1px solid #EAECEE; /* Lighter border */
    border-radius: 8px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.07); /* Softer, more diffused shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.home-section:hover {
    transform: translateY(-5px); /* Subtle lift effect */
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.home-section h3 {
    margin-top: 0;
    color: #0A2463; /* Consistent heading blue */
}

.learn-more-link {
    display: inline-block;
    background-color: #1ABC9C; /* Teal Accent button */
    color: #FFFFFF;
    padding: 12px 24px; /* Slightly larger button */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.2s ease-in-out;
}

.learn-more-link:hover {
    background-color: #159A80; /* Darker Teal on hover */
    text-decoration: none;
}

/* Practice Areas Page */
.practice-areas-list li {
    margin-bottom: 0.5em;
}

/* Contact Page Specifics */
.contact-info p {
    font-size: 1.1em;
}
.social-links a {
    margin-right: 15px;
    text-decoration: none;
    font-size: 1.1em;
    color: #1ABC9C; /* Teal for social links */
}
.social-links a:hover {
    color: #159A80; /* Darker Teal */
    text-decoration: underline;
}


/* Terms Page Specifics */
.terms-section {
    margin-bottom: 30px;
}
.terms-section h2 {
    border-bottom: 1px solid #BDC3C7; /* Softer border */
    padding-bottom: 0.3em;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0; /* More padding */
    margin-top: 40px;
    background-color: #2C3E50; /* Dark Slate Blue/Gray for footer */
    color: #BDC3C7; /* Light gray text for footer */
    font-size: 0.9em;
}

footer a {
    color: #A9CCE3; /* Lighter, slightly desaturated blue for footer links */
    text-decoration: none;
}

footer a:hover {
    color: #FFFFFF; /* White on hover for contrast */
    text-decoration: underline;
}

/* Basic Responsive Adjustments (largely unchanged, but colors will apply) */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 5px;
        padding: 8px 0; /* Slightly more padding for touch */
        border-bottom: 1px dashed #EAECEE;
    }
    nav ul li:last-child {
        border-bottom: none;
    }

    .home-sections {
        flex-direction: column; /* Stack columns */
    }
}
