/*
Theme Name: Boyd Litigation Group
Theme URI: https://www.boydlawtexas.com
Author: Sheldon
Description: Custom theme for Boyd Litigation Group - Professional Legal Services in Collin County, Texas
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: boyd-litigation
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --slate-dark: #2c3e50;
    --slate: #3d4f5f;
    --slate-medium: #5a6f7f;
    --slate-light: #8899a6;
    --copper: #b87333;
    --copper-light: #d4956b;
    --copper-dark: #8b5e3c;
    --copper-glow: #e8a665;
    --warm-white: #faf8f5;
    --warm-gray: #f0ece6;
    --text: #2c3e50;
    --text-light: #5a6a7a;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--warm-white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-dark); }

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

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-logo .firm-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.site-logo .firm-tagline {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--copper);
    font-weight: 500;
}

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
    color: var(--slate-medium);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--slate-dark);
    background: var(--warm-gray);
}

.nav-cta {
    background: var(--copper) !important;
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--copper-dark) !important;
    color: var(--white) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--slate-dark);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 6px 0;
    transition: all var(--transition);
}

/* === Hero === */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(184, 115, 51, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content { position: relative; z-index: 1; }

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper-light);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--copper-light);
}

.hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--copper-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 115, 51, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-photo {
    position: relative;
    z-index: 1;
}

.hero-photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(184, 115, 51, 0.2);
    border-radius: 16px;
    pointer-events: none;
}

/* === Stats Bar === */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid rgba(44, 62, 80, 0.06);
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    text-align: center;
    padding: 36px 24px;
    border-right: 1px solid rgba(44, 62, 80, 0.06);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--copper);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
    font-weight: 500;
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--slate-dark);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* === Practice Areas === */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.practice-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 1px solid rgba(44, 62, 80, 0.06);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.section-alt .practice-card {
    background: var(--warm-white);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 115, 51, 0.15);
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--copper);
    opacity: 0;
    transition: opacity var(--transition);
}

.practice-card:hover::before { opacity: 1; }

.practice-icon {
    width: 52px;
    height: 52px;
    background: rgba(184, 115, 51, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.practice-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--slate-dark);
    margin-bottom: 10px;
}

.practice-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* === About === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--slate-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.credential {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--warm-white);
    border-radius: var(--radius);
}

.section-alt .credential {
    background: var(--white);
}

.credential-icon {
    width: 36px;
    height: 36px;
    background: rgba(184, 115, 51, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.credential-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--slate);
}

.credential-text small {
    display: block;
    font-weight: 400;
    color: var(--slate-light);
    margin-top: 2px;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: rgba(184, 115, 51, 0.06);
    border-radius: 12px;
    z-index: -1;
}

/* === Areas Served === */
.areas-served {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.area-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--slate);
    font-size: 0.95rem;
}

.section-alt .area-badge {
    background: var(--warm-white);
}

.area-badge .area-icon {
    font-size: 1.1rem;
}

/* === Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    background: var(--slate-dark);
    border-radius: 12px;
    padding: 48px;
    color: var(--white);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-card > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    font-size: 0.95rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(184, 115, 51, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-detail-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-detail-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.contact-detail-text a {
    color: var(--copper-light);
}

.contact-detail-text a:hover {
    color: var(--copper-glow);
}

.contact-form-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.contact-form-wrap > p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 0.92rem;
}

/* Contact form */
.boyd-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.boyd-form .form-group {
    margin-bottom: 16px;
}

.boyd-form input,
.boyd-form textarea {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--warm-white);
    box-sizing: border-box;
}

.boyd-form input:focus,
.boyd-form textarea:focus {
    border-color: var(--copper);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.boyd-form textarea {
    resize: vertical;
}

.boyd-form .form-submit {
    width: 100%;
    padding: 14px 36px;
    font-size: 0.95rem;
    cursor: pointer;
}

.boyd-form .form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.boyd-form .form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
    text-align: center;
}

.boyd-form .form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.boyd-form .form-status.error {
    background: #fce4ec;
    color: #c62828;
}

.boyd-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 600px) {
    .boyd-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* === Footer === */
.site-footer {
    background: var(--slate-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .firm-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--copper-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
}

.footer-disclaimer {
    max-width: 600px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-inner { grid-template-columns: 1fr 340px; gap: 40px; }
    .practice-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(44, 62, 80, 0.08);
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-text { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-photo { max-width: 300px; margin: 40px auto 0; }

    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat { border-bottom: 1px solid rgba(44, 62, 80, 0.06); }

    .section { padding: 64px 0; }
    .practice-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image-wrap { order: -1; max-width: 400px; margin: 0 auto; }

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

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

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* === WordPress defaults === */
.wp-block-image img { border-radius: var(--radius); }
.entry-content { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
