/* Global Styles */
:root {
    /* Brand palette - matching v2.lswlegal.com */
    --lsw-ebony: #0B0C10;        /* Deep Ebony: primary text/background accents */
    --lsw-royal-green: #0C6B58;  /* Royal Green: primary brand */
    --lsw-gold: #C7A043;         /* Gold Accent: highlights, callouts */
    --lsw-porcelain: #F7F7F5;    /* Porcelain: background */
    --lsw-sea-mist: #DCE7E2;     /* Sea Mist: dividers, tags */
    
    /* Supporting colors */
    --lsw-muted-navy: #37424A;
    --lsw-slate: #4A565E;
    --lsw-ceramic: #F4F2EF;
    --lsw-line: rgba(11, 12, 16, 0.14);
    
    /* Legacy variable mappings for compatibility */
    --primary-color: var(--lsw-royal-green);
    --secondary-color: var(--lsw-royal-green);
    --accent-color: var(--lsw-gold);
    --text-dark: var(--lsw-ebony);
    --text-light: var(--lsw-slate);
    --bg-light: var(--lsw-porcelain);
    --success-color: #48bb78;
    --warning-color: #ed8936;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    background: var(--lsw-porcelain);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Playfair Display', serif;
}

/* Brand Styling */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color) !important;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: -5px;
}

/* Navigation */
.top-bar {
    font-size: 0.875rem;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: #ffffff;
    background: linear-gradient(120deg, rgba(31, 53, 66, 0.95), rgba(12, 107, 88, 0.82));
    padding: 9rem 0 6.5rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container,
.hero-section .row,
.hero-section .col-lg-6 {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1,
.hero-content p,
.hero-content .lead {
    color: #ffffff;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: 260px;
    height: 200px;
    border-radius: 24px;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
}

.hero-card-composite {
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1200&q=80');
    transform: translate(10px, 10px) rotate(2deg);
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 7rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .hero-card {
        width: 220px;
        height: 160px;
    }
}

/* Cards and Components */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card {
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 600;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background: #b8941f;
    border-color: #b8941f;
    color: white;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Statistics */
.stats-section {
    background: var(--bg-light);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Accessibility */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}