/* ========================================
   MAIN.CSS - Global Professional Lawyer Website Styles
   ======================================== */

/* CSS Variables for Professional Lawyer Color Scheme */
:root {
    /* Primary Colors - Deep Navy & Charcoal */
    --primary-dark: #0a1929;
    --primary-darker: #050d16;
    --secondary-dark: #1a2332;
    --background-main: #0f1419;
    --background-secondary: #1a1f2e;
    --background-card: #151b24;
    
    /* Gold Accents - Professional Legal Aesthetics */
    --gold-primary: #d4af37;
    --gold-secondary: #c9a961;
    --gold-dark: #b8860b;
    --gold-light: #e5c77a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #a8b2c1;
    --text-dim: #7a8599;
    
    /* Border Colors */
    --border-gold: rgba(212, 175, 55, 0.3);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-main);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: "Novecento Sans", "Open Sans", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 1px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: 0.8px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--gold-primary);
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--gold-light);
}

/* ========================================
   Utility Classes
   ======================================== */

#site-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--background-main) 50%, var(--primary-darker) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.text-gold {
    color: var(--gold-primary);
}

/* ========================================
   Animations & Keyframes
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn var(--transition-slow) ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.7s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.7s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.animate-delay-5 {
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

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

.button,
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: "Novecento Sans", "Open Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-primary);
    transition: left var(--transition-normal);
    z-index: -1;
}

.button:hover,
.btn:hover,
.button:focus,
.btn:focus {
    color: var(--primary-dark);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.button:hover::before,
.btn:hover::before {
    left: 0;
}

.button:active,
.btn:active {
    transform: translateY(0);
}

.button.primary {
    background: var(--gold-primary);
    color: var(--primary-dark);
}

.button.primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* ========================================
   Cards & Sections
   ======================================== */

.card {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

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

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

@media (max-width: 1200px) {
    :root {
        --spacing-xl: 50px;
        --spacing-xxl: 60px;
    }
}

@media (max-width: 992px) {
    :root {
        --spacing-lg: 32px;
        --spacing-xl: 40px;
        --spacing-xxl: 50px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-xxl: 40px;
    }
    
    .button,
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   Accessibility
   ======================================== */

:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
