:root {
    --primary-teal: #199499;
    --primary-teal-dark: #127a7e;
    --rich-black: #1A1A1A;
    --clean-white: #FFFFFF;
    --off-white: #f9f9f9;
    --gray-light: #e0e0e0;
    --text-gray: #4a4a4a;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-logo: 'Cinzel', serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    color: var(--rich-black);
    background-color: var(--clean-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--rich-black);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: var(--off-white);
}

.bg-white {
    background-color: var(--clean-white);
}

.text-center {
    text-align: center;
}

/* Header */
.site-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
}

.monogram-svg {
    width: 100%;
    height: 100%;
}

.monogram-svg .frame {
    fill: none;
    stroke: var(--primary-teal);
    stroke-width: 3;
}

.monogram-svg .monogram-text {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 40px;
    fill: var(--rich-black);
    dominant-baseline: middle;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 2px;
}

.tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-teal-dark);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.main-nav a:not(.btn-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-teal);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-cta):hover::after,
.main-nav a.active::after {
    width: 100%;
}

.btn-cta {
    background-color: var(--primary-teal);
    color: white;
    padding: 10px 20px !important;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--primary-teal-dark);
    color: white;
}

.btn-cta::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.jpg'); /* Need to handle missing image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0; /* Header is fixed, but let's handle overlap */
}

/* Fallback background if image missing */
.hero-section {
    background-color: #f0f4f4; 
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85); /* Light overlay for high-end feel */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--rich-black);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-teal);
}

.btn-outline {
    background-color: transparent;
    color: var(--rich-black);
    border-color: var(--rich-black);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--rich-black);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--primary-teal);
}

.btn-white:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* About / Intro */
.lead-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-teal);
}

.text-center .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-teal);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.image-frame {
    position: relative;
    padding: 20px;
    border: 1px solid var(--gray-light);
}

.image-frame img {
    display: block;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-text, .col-image {
    padding: 0 15px;
    width: 50%;
}

.align-items-center {
    align-items: center;
}

/* Practice Areas */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-teal);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-teal);
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-teal);
    padding: var(--spacing-lg) 0;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background-color: var(--rich-black);
    color: white;
    padding: var(--spacing-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.logo-serif {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-list li, .footer-links li {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-teal);
}

/* Footer Credits */
.footer-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-credits p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.footer-credits a {
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--primary-teal);
}

.us-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header {
    margin-top: var(--header-height);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--primary-teal);
}

.member-title {
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.member-bio p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-text, .col-image {
        width: 100%;
    }
    
    .col-image {
        margin-top: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--rich-black);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle span:nth-child(1) { top: 0; }
    .mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-menu-toggle span:nth-child(3) { bottom: 0; }
    
    .mobile-menu-toggle.open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
    .mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.open span:nth-child(3) { top: 50%; transform: rotate(-45deg); bottom: auto; }
}