/* California Crime Victim Attorney 
   Master Production Stylesheet - Obsidian & Gold 
   Focus: Typography, Vertical Rhythm, and Image Standardization
*/

:root {
    /* Color Palette */
    --primary-gold: #c5a059;
    --gold-hover: #b08d4a;
    --gold-light: #f4eee0;
    --obsidian: #000000;
    --slate-charcoal: #1a1c1e;
    
    /* Text Colors */
    --text-main: #222222;
    --text-muted: #555555;
    --text-light: #ffffff;
    
    /* Backgrounds */
    --bg-light: #ffffff;
    --bg-alt: #fcfbf9;
    
    /* Spacing & Borders */
    --max-width: 1200px;
    --border-color: #e5e5e5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 1. Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.8; /* Improved readability for legal copy */
    color: var(--text-main);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--obsidian);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

strong {
    color: var(--obsidian);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

/* 3. Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: clamp(60px, 10vw, 100px) 0; /* Consistent vertical spacing */
}

.bg-gray {
    background: var(--bg-alt);
}

/* 4. Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid var(--primary-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--obsidian);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.logo span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--obsidian);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
}

/* 5. Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gold);
    color: white !important;
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    border: 2px solid var(--obsidian);
    color: var(--obsidian);
}

.btn-outline:hover {
    background: var(--obsidian);
    color: white !important;
}

/* 6. Hero Section */
.hero {
    padding: clamp(80px, 15vw, 140px) 0;
    background: var(--obsidian);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 7. Grid System & Image Handling */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center; /* Consistent centering */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Standardized Image Handling */
.constrained-img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image isn't distorted */
    object-position: top center;
    display: block;
    border-left: 8px solid var(--primary-gold);
    box-shadow: 20px 20px 0 var(--bg-alt);
    transition: var(--transition);
}

.card img {
    width: 100%;
    height: 240px; /* Standard height for cards */
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* 8. Component Styling */
.card {
    background: white;
    padding: 50px 40px;
    border-top: 5px solid var(--primary-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.contact-form-card {
    background: white;
    padding: 50px;
    border-left: 6px solid var(--primary-gold);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px var(--gold-light);
}

/* 9. Footer */
footer {
    background: var(--obsidian);
    color: #b3b3b3;
    padding: 80px 0 40px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 1px;
}

.footer-links h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #b3b3b3;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.disclaimer {
    border-top: 1px solid #333;
    padding-top: 40px;
    text-align: justify;
    line-height: 1.8;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 10. Responsive Design */
@media (max-width: 1024px) {
    .split {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .section { padding: 60px 0; }
    
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .constrained-img {
        height: 400px;
        margin-bottom: 20px;
    }
    
    .nav-links {
        display: none; /* In production, add a mobile burger menu here */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 30px 20px;
    }
}

/* Custom Utilities for Internal Pillars */
.bio-title {
    display: block;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}