/* Commonwealth Experts Design System - Professional Legal Services */

/* CSS Variables (Design Tokens) */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222.2, 84%, 4.9%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(222.2, 84%, 4.9%);
    
    /* Orange theme for professional legal branding */
    --primary: hsl(24, 100%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(0, 0%, 96%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    
    /* Deep orange accent for CTA and highlights */
    --accent: hsl(16, 90%, 48%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(24, 100%, 50%);
    
    /* Hero section colors */
    --hero-bg: hsl(24, 100%, 50%);
    --hero-overlay: hsl(20, 100%, 40%);
    --hero-text: hsl(0, 0%, 100%);
    --hero-accent: hsl(16, 90%, 48%);
    
    /* Professional spacing and styling */
    --radius: 0.375rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Typography */
.hero-title {
    font-size: 3.75rem;
    font-weight: 300;
    color: var(--hero-text);
    line-height: 1.2;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--hero-text);
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.025em;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.body-text {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    text-align: center;
}

@media (min-width: 1024px) {
    .body-text {
        font-size: 1.125rem;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 2rem;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.close-icon {
    display: none;
}

.mobile-menu-btn.open .menu-icon {
    display: none;
}

.mobile-menu-btn.open .close-icon {
    display: block;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-mobile.show {
    display: flex;
}

.nav-link-mobile {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(25, 45, 85, 0.8), rgba(25, 45, 85, 0.8)), url('img/orange_sunset.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.hero-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--hero-accent);
    margin: 2rem auto;
}

/* About Section */
.about {
    padding: 8rem 0;
    background-color: var(--background);
}

.about-content {
    max-width: 64rem;
    margin: 0 auto;
}

.about-text {
    margin-top: 2rem;
}

/* For Experts Section */
.for-experts {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.for-experts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: stretch;
    min-height: 700px;
}

@media (min-width: 1024px) {
    .for-experts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.for-experts-image {
    order: 2;
    height: 100%;
}

@media (min-width: 1024px) {
    .for-experts-image {
        order: 1;
    }
}

.for-experts-image img {
    width: 100%;
    height: 100%;
    min-height: 700px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.for-experts-content {
    order: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .for-experts-content {
        order: 2;
        text-align: left;
    }
}

.for-experts-content .section-title {
    color: #000;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

.process-step {
    text-align: left;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: hsl(216, 85%, 12%);
    color: hsl(0, 0%, 100%);
}

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

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.contact-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Transitions */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hide elements visually but keep them accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
