/*
Theme Name: Jan Chambers
Theme URI: https://janchambers.com
Author: Jan Chambers
Author URI: https://janchambers.com
Description: A premium WordPress theme for Jan Chambers Law Firm, converted from HTML. Features editable text and images through WordPress admin, custom post types for team members, and theme customizer options.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jan-chambers
Tags: law-firm, dark-theme, gold-accent, custom-post-types, customizer
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --bg: #121212;
    --card: #1c1c1c;
    --card-hover: #222222;
    --text: #f5f5f5;
    --muted: #9a9a9a;
    --accent: #d4af37;
    --accent-light: #e8c85a;
    --accent-dark: #b8941f;
    --accent-soft: rgba(212, 175, 55, .12);
    --accent2: #8b7355;
    --accent2-soft: rgba(139, 115, 85, .12);
    --border: rgba(212, 175, 55, .10);
    --border-light: rgba(212, 175, 55, .18);
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--accent-light);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 18, 18, .97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
}

.site-branding img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, .15));
}

.site-branding .site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--accent);
}

.main-navigation .nav-cta a {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #121212 !important;
    padding: .6rem 1.4rem;
    font-weight: 600;
    border-radius: 2px;
    font-size: .9rem;
    transition: all .3s ease;
}

.main-navigation .nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, .25);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #121212;
    padding: .85rem 2.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: all .3s ease;
    letter-spacing: .3px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, .15);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, .25);
    color: #121212;
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: .85rem 2rem;
    background: transparent;
    font-weight: 500;
    transition: all .3s ease;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: #121212;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: radial-gradient(800px 400px at 50% 0%, rgba(212, 175, 55, .08), transparent 60%), var(--bg);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
    font-weight: 600;
}

.page-hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -.01em;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.page-hero .divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    margin: 1.5rem auto 0;
}

/* ============================================
   CONTAINERS & SECTIONS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .eyebrow {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
    font-weight: 600;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    margin: 1.25rem auto 0;
}

.card-hover {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    border-color: var(--accent-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--border-light);
    background: var(--card-hover);
}

/* ============================================
   HOME HERO
   ============================================ */
.home-hero {
    padding: 5rem 1.5rem 4rem;
    background: radial-gradient(1000px 500px at 85% -5%, rgba(212, 175, 55, .08), transparent 60%), var(--bg);
}

.home-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.home-hero .eyebrow {
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.home-hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.home-hero h1 span {
    color: var(--accent);
}

.home-hero .lead {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.home-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
}

.hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, .35), transparent);
}

.hero-image-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    color: #fff;
    z-index: 2;
}

.hero-image-caption .badge {
    display: inline-block;
    background: var(--accent);
    color: #121212;
    padding: .25rem .75rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: .5rem;
}

.hero-image-caption .text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--card);
    border: 1px solid var(--border-light);
    padding: 1.25rem 1.75rem;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
    z-index: 10;
}

.hero-badge .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-badge .label {
    color: var(--muted);
    font-size: .85rem;
}

/* ============================================
   PRINCIPLES / FEATURES
   ============================================ */
.principles-section {
    padding: 5rem 1.5rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.principle-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    border-top: 3px solid var(--accent);
}

.principle-card.accent2 {
    border-top-color: var(--accent2);
}

.principle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 4px;
    color: var(--accent);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.principle-card.accent2 .principle-icon {
    background: var(--accent2-soft);
    color: var(--accent2);
}

.principle-card h4 {
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.principle-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
    padding: 4rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item .label {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .4rem;
}

/* ============================================
   TEAM GRID
   ============================================ */
.team-section {
    padding: 5rem 1.5rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.team-card {
    background: var(--bg);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    border-top: 3px solid var(--accent);
    text-decoration: none;
    display: block;
}

.team-card.accent2 {
    border-top-color: var(--accent2);
}

.team-card .photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--card);
}

.team-card .photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    color: var(--muted);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.team-card .info {
    padding: 1.25rem;
    text-align: center;
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: .25rem;
    color: var(--text);
}

.team-card .position {
    color: var(--accent);
    font-weight: 600;
    margin: 0;
    font-size: .82rem;
    font-family: 'Cormorant Garamond', serif;
}

.team-card.accent2 .position {
    color: var(--accent2);
}

.team-section .view-all {
    text-align: center;
}

/* ============================================
   CLIENTS
   ============================================ */
.clients-section {
    padding: 5rem 1.5rem;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.client-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.client-card img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(20%);
}

.client-card .client-name {
    color: var(--muted);
    font-weight: 500;
    text-align: center;
}

.clients-section .view-all {
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 3.5rem 1.5rem 2rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    opacity: .95;
}

.footer-brand p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
    margin: 0;
}

.footer-col h5 {
    color: var(--text);
    margin: 0 0 1rem;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.footer-col a,
.footer-col span {
    color: var(--muted);
    text-decoration: none;
    display: block;
    margin-bottom: .5rem;
    font-size: .9rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 4rem 1.5rem;
}

.page-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.page-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.page-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 .75rem;
}

.page-content ul,
.page-content ol {
    color: var(--muted);
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: .5rem;
}

/* ============================================
   PRACTICE AREAS
   ============================================ */
.practice-section {
    padding: 5rem 1.5rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.practice-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 4px;
    border-top: 3px solid var(--accent);
}

.practice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.practice-card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    padding: 5rem 1.5rem;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 4px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item .details h4 {
    font-size: 1rem;
    margin-bottom: .25rem;
    font-family: 'Source Sans 3', sans-serif;
}

.contact-item .details p,
.contact-item .details a {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 4px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    border-radius: 2px;
    margin-bottom: 1rem;
    transition: border-color .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   SINGLE TEAM MEMBER
   ============================================ */
.single-team-section {
    padding: 4rem 1.5rem;
}

.single-team-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.team-profile-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.team-profile-photo {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.team-profile-photo img {
    width: 100%;
    display: block;
}

.team-profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.team-profile-info .position {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-profile-meta {
    display: grid;
    gap: .75rem;
    margin-bottom: 2rem;
}

.team-profile-meta .item {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.team-profile-meta .label {
    color: var(--muted);
    font-size: .85rem;
    min-width: 80px;
}

.team-profile-meta .value {
    color: var(--text);
    font-size: .95rem;
}

.team-profile-meta .value a {
    color: var(--accent);
}

.team-profile-bio h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.team-profile-bio p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-size: .95rem;
}

.back-link:hover {
    color: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width: 820px) {
    .home-hero h1,
    .page-hero h1 {
        font-size: 2.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image img {
        height: 300px;
    }

    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .team-profile-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-profile-photo {
        max-width: 300px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }
}
