/* styles.css */
:root {
    /* --primary-color: #1a365d; 
    --secondary-color: #2d3748; 
    --accent-color: #c5a365; 
    --bg-light: #f7fafc;
    --text-main: #1a202c; */

    --primary-color: #0f172a; /* Midnight Charcoal */
    --secondary-color: #1e293b; /* Deep Slate */
    --accent-color: #b49354; /* Antique Gold */
    --bg-light: #f8fafc;
    --text-main: #334155;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Adjust this value based on your header's height so it doesn't cover section titles */
    scroll-padding-top: 80px; 
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* .logo {
    background-color: #ffffff; 
    padding: 0.5rem 1.5rem; 
    border-radius: 4px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-color); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
} */

.logo img {
    max-width: 250px; 
    display: block; 
}

/* .logo {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

.logo img {
    max-width: 300px;
    display: block;
    filter: brightness(0) invert(1); 
} */

/* Header & Navigation */
header {
    position: sticky;
    color: white;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Smoothly animate changes to background and padding */
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.95); /* Midnight Charcoal with slight transparency */
    backdrop-filter: blur(8px); /* Premium frosted glass effect */
    padding: 1rem 5%; /* Shrinks the header slightly to save screen space */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content Area */
main {
    flex: 1;
}

.hero {
    /* The linear gradient creates an 85% opacity dark overlay over the image */
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('assets/hero.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 20px; /* Increased padding for a grander feel */
}

.hero h1 {
    font-size: 3.5rem; /* Slightly larger */
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-about {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                      url('assets/about-us.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 20px; /* Shorter than the home page hero */
}

.hero-about h1 {
    font-size: 2.8rem;
    margin: 0;
    color: #ffffff;
}

.hero-practice-areas {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                      url('assets/practice-areas.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 20px; /* Shorter than the home page hero */
}

.hero-practice-areas h1 {
    font-size: 2.8rem;
    margin: 0;
    color: #ffffff;
}

.hero-contact-us {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                      url('assets/contact-us.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 20px; /* Shorter than the home page hero */
}

.hero-contact-us h1 {
    font-size: 2.8rem;
    margin: 0;
    color: #ffffff;
}

/* .hero {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 6rem 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
} */

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
    border-radius: 2px; /* Sharper corners */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 1rem 2.5rem;
}

.btn:hover {
    background-color: #a38650;
}

/* Page Sections */
.section-container {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

/* Grid Layouts for Services */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    /* border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color); */

    border-radius: 2px;
    border-top: 4px solid var(--accent-color); /* Switch top border to gold */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px); /* Subtle, professional hover lift */
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 5%;
    margin-top: auto;
}

.trust-bar {
    background-color: var(--secondary-color);
    color: #94a3b8;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trust-bar .divider {
    margin: 0 1rem;
    color: var(--accent-color);
}

.content-card {
    max-width: 1000px; 
    margin: 0 auto; 
    background: white; 
    padding: 3rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.contact-form input {
    padding: 0.8rem; 
    border: 1px solid #ccc; 
    border-radius: 4px;
}
.contact-form button {
    border: none; 
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.98); /* Matching the scrolled header */
    color: white;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%); /* Hidden off-screen by default */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    gap: 2rem;
}

/* Class to slide it into view */
.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0; /* Prevents buttons from squishing on small screens */
}

/* A subtle outline button for 'Decline' */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Mobile responsiveness for the banner */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%; /* Pushes the menu right below the header */
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        
        /* Hide menu by pushing it up and making it transparent */
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        z-index: 999;
    }

    /* Match the frosted glass effect if the header is scrolled */
    header.scrolled nav ul {
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(8px);
    }

    /* The class added by JavaScript to show the menu */
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Animate Hamburger to 'X' */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.profile-card {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.profile-image {
    flex-shrink: 0;
    width: 260px;
}

.profile-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent-color); /* Ties into the gold branding */
    object-fit: cover;
}

.profile-content h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.profile-title {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.profile-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-content ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.profile-content p {
    margin-bottom: 1.5rem;
}

/* Contact Links (Email & Phone pills) */
.profile-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Mobile responsiveness for the profile card */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    .profile-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start; /* Keeps the icon at the top if text wraps */
    gap: 1rem;
}

.contact-list i {
    color: var(--accent-color); /* The Antique Gold */
    font-size: 1.1rem;
    margin-top: 0.3rem; /* visually centers the icon with the first line of text */
    width: 20px; /* Fixed width ensures all text starts at the exact same alignment */
    text-align: center;
    flex-shrink: 0; /* Prevents the icon from squishing on small screens */
}

.contact-list p {
    margin: 0;
    line-height: 1.6;
}

.contact-list a:hover {
    color: var(--accent-color) !important;
    transition: color 0.2s ease;
}

.footer-links {
    margin-top: 0.5rem; 
    color: #cbd5e1; 
    font-size: 0.85rem;    
}

.content-card ul {
    padding-left: 2rem; /* Pushes the bullets right, aligning them beautifully */
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-card li {
    margin-bottom: 0.5rem; /* Adds space between each bullet point */
}

.powered-by {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.powered-text {
    color: #94a3b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powered-by a {
    display: flex;
    align-items: center;
    opacity: 0.5; /* Keeps your logo subtle so it doesn't overpower the law firm's info */
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.powered-by a:hover {
    opacity: 1; /* Brightens on hover */
    transform: translateY(-1px);
}

.powered-by img {
    height: 22px; /* Adjust this value depending on if your logo is stacked or horizontal */
    
    /* NOTE: If your logo is already pure white, you can delete this filter line. 
       If your logo is colored or black, this filter forces it to look like a clean white/grey icon. */
    /* filter: brightness(0) invert(1);  */
}