/* ==========================================================================
   LegalMark Media - Brand Stylesheet
   ========================================================================== */

/* CSS Custom Properties (Brand Kit) */
:root {
    /* Primary Colors */
    --legal-navy: #081627;
    --judicial-gold: #D8A548;
    --pure-white: #FFFFFF;
    
    /* Secondary Colors */
    --slate-gray: #94A0AD;
    --soft-ivory: #FAF7F2;
    --deep-steel: #1E2A38;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', Arial, sans-serif;
    
    /* Spacing (8pt system) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Section Padding */
    --section-padding: 100px;
    --section-padding-compact: 60px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--legal-navy);
    background-color: var(--pure-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--legal-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--legal-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--judicial-gold);
}

strong {
    font-weight: 600;
}

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-intro {
    font-size: 1.125rem;
    color: var(--slate-gray);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--legal-navy);
    color: var(--judicial-gold);
}

.btn-primary:hover {
    background-color: var(--deep-steel);
    color: var(--judicial-gold);
}

.btn-secondary {
    background-color: var(--judicial-gold);
    color: var(--legal-navy);
}

.btn-secondary:hover {
    background-color: #c4943e;
    color: var(--legal-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background-color: var(--legal-navy);
    color: var(--pure-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    padding: var(--space-lg);
}

.logo {
    width: 180px;
    height: auto;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--pure-white);
    margin-bottom: var(--space-lg);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--slate-gray);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ==========================================================================
   Shift Section
   ========================================================================== */

.shift {
    background-color: var(--soft-ivory);
    padding: var(--section-padding) 0;
}

.shift h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.shift-content {
    max-width: 800px;
    margin: 0 auto;
}

.shift-text .lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--judicial-gold);
    margin-bottom: var(--space-lg);
}

.shift-text p {
    font-size: 1.125rem;
    color: var(--deep-steel);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services {
    background-color: var(--pure-white);
    padding: var(--section-padding) 0;
}

.services h2 {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background-color: var(--soft-ivory);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(8, 22, 39, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background-color: var(--legal-navy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--judicial-gold);
}

.service-card h3 {
    font-family: var(--font-sans);
    color: var(--legal-navy);
}

.service-card p {
    color: var(--deep-steel);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */

.why-us {
    background-color: var(--legal-navy);
    padding: var(--section-padding) 0;
}

.why-us h2 {
    color: var(--pure-white);
    text-align: center;
}

.why-us .section-intro {
    color: var(--slate-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.why-card {
    background-color: var(--deep-steel);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--judicial-gold);
}

.why-card h3 {
    font-family: var(--font-sans);
    color: var(--judicial-gold);
    margin-bottom: var(--space-sm);
}

.why-card p {
    color: var(--slate-gray);
    margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
    background-color: var(--deep-steel);
    padding: var(--section-padding-compact) 0;
    text-align: center;
}

.cta h2 {
    color: var(--pure-white);
    margin-bottom: var(--space-md);
}

.cta p {
    color: var(--slate-gray);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--legal-navy);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.footer-logo {
    width: 140px;
    margin-bottom: var(--space-md);
}

.footer-email {
    margin-bottom: var(--space-md);
}

.footer-email a {
    color: var(--judicial-gold);
    font-weight: 500;
}

.footer-email a:hover {
    color: var(--pure-white);
}

.copyright {
    color: var(--slate-gray);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
        --section-padding-compact: 50px;
    }
    
    .hero-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .shift-text .lead {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
    
    .service-card,
    .why-card {
        padding: var(--space-lg);
    }
}
