/* 
   Egon A. Oswald - Professional Legal Website
   Theme: Deep Navy, Gold, Clean White
*/

:root {
    --primary-color: #0a192f;
    /* Deep Navy */
    --secondary-color: #c5a059;
    /* Rich Gold */
    --accent-color: #172a45;
    /* Lighter Navy for backgrounds */
    /* Lighter Navy for backgrounds */
    --text-dark: #1c1c1d;
    --text-light: #f8f9fa;
    --text-muted: #8892b0;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --border-color: #e6e6e6;

    --font-heading: 'Playfair Display',
        serif;
    --font-body: 'Lato',
        sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-gray);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 30px;
}

.divider.align-left {
    margin: 15px 0 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 30px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 100px;
    /* Adjust based on new logo size needs */
}

.logo-text h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    font-weight: 700;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: #e0e0e0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Practice Areas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    z-index: 2;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.image-caption {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    max-width: 100%;
}

.about-text h2 {
    margin-bottom: 10px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.awards-strip {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.awards-strip h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badges img {
    height: 150px;
    width: auto;
    opacity: 0.95;
    transition: var(--transition);
}



.badges img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 50px;
    background: var(--primary-color);
    color: var(--white);
}

.contact-info h2,
.contact-info h4 {
    color: var(--white);
}

.contact-info p {
    color: #a8b2d1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.info-item .icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item a {
    color: var(--white);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.footer-brand h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #a8b2d1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-visuals {
        margin-bottom: 50px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .image-caption {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .main-nav a {
        display: block;
        width: 100%;
    }

    .btn-nav {
        display: inline-block;
        width: auto;
        color: var(--primary-color);
    }

    .mobile-menu-btn {
        display: block;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}