/* Base Styles */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout constraints */
header, main, footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Logo */
header {
    text-align: center;
    border-bottom: 2px solid #000000;
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative; /* Added */
    z-index: 999;       /* Added: Keeps menu above everything else */
    background-color: #ffffff; /* Ensures background is opaque */
}

#logo-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    text-decoration: underline;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative; 
    padding: 60px 20px 200px 20px; /* Less padding on top, more on bottom */
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    border: 2px solid #000000; 
    overflow: hidden; 
    display: flex;
    align-items: flex-start; /* This pins the overlay to the top */
    justify-content: center;
    min-height: 450px; /* Keeps the video large enough to look good */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 0; 
}

.hero-overlay {
    position: relative;
    z-index: 1; 
    background-color: rgba(0, 0, 0, 0.85); 
    display: inline-block;
    padding: 30px 40px; /* Slightly tighter padding */
    border: 2px solid #ffffff; 
    max-width: 800px;
    margin: 0 auto;
}

.hero-overlay h1 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: none;
    text-transform: uppercase;
}

.hero-overlay p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* NEW: The fading text block */
.rotating-text {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    display: block; 
    color: #ffffff;
    transition: opacity 0.5s ease-in-out;
    min-height: 35px; /* Prevents the box from jittering when text changes */
}

/* Content & Typography */
h1, h2, h3 {
    color: #000000;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h2 {
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
}

section {
    margin-bottom: 50px;
}

.service-category {
    margin-left: 20px;
    margin-bottom: 30px;
}

ul {
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
}

/* Links */
a {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    border-top: 2px solid #000000;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
}

address {
    font-style: normal;
    margin-bottom: 15px;
}

.phone {
    font-size: 1.1rem;
}

/* Contact Section & Form */
.contact-section {
    margin-bottom: 50px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-form div,
.brytuslaw-contact-form div {
    margin-bottom: 15px;
}

.contact-form label,
.brytuslaw-contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.brytuslaw-contact-form input[type="text"],
.brytuslaw-contact-form input[type="email"],
.brytuslaw-contact-form input[type="tel"],
.brytuslaw-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form textarea,
.brytuslaw-contact-form textarea {
    resize: vertical;
}

/* Global Button Component (.btn) */
.btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff !important; /* Forces white text even if it's a link */
    padding: 10px 20px;
    border: 2px solid #000000;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none !important; /* Removes link underlines */
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000 !important;
}

/* Form Submission Status Messages */
.status-success {
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #000000;
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.status-error {
    padding: 15px;
    margin-bottom: 20px;
    border: 3px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 2px solid #000000;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #000000;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    text-transform: none;
    font-weight: normal;
    font-size: 0.95rem;
    border-bottom: 1px solid #000000;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #000000;
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Attorney Directory & Profile Styles */
.attorney-profile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #000000;
    padding-bottom: 20px;
}

.attorney-profile:last-child {
    border-bottom: none;
}

.attorney-image img {
    max-width: 150px;
    height: auto;
    border: 2px solid #000000;
}

.bio-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid #000000;
    padding-bottom: 20px;
}

.bio-header .bio-image img {
    max-width: 250px;
    height: auto;
    border: 3px solid #000000;
}

.bio-content h3 {
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
    margin-top: 1.5em;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    .attorney-profile, .bio-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Service Grid Layout */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    border: 1px solid #000000;
    padding: 20px;
    background-color: #f9f9f9;
}

.service-item h4 {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 1px solid #000000;
    padding-bottom: 5px;
    text-align: center;
}

/* Pricing Packages */
.package-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    border: 2px solid #000000;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.package-card h2 {
    text-align: center;
    border-bottom: none;
}

.package-card:hover {
    background-color: #f0f0f0;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.details {
    list-style: none;
    padding: 0;
}

/* Exclusions & Custom Sections */
.exclusion-box {
    margin-top: 40px;
    padding: 20px;
    background-color: #000000;
    color: #ffffff;
}

.exclusion-box h3 {
    color: #ffffff;
    margin-top: 0;
    text-align: center;
}

.custom-section {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #000000;
    background-color: #f4f4f4;
    text-align: center;
}

.custom-section h3 {
    text-align: center;
    border-bottom: none;
}

/* General Headings for this page */
#general-counsel h1, 
#general-counsel h3 {
    text-align: center;
}