/*
Theme Name: Law Focus
Theme URI: http://lawfocusuk.com
Author: Your Agency
Author URI: http://youragency.com
Description: Premium Legal Advocacy Theme with Custom Post Types for Law Focus.
Version: 1.0
Text Domain: lawfocus
*/

/* Base Variables */
:root {
    --lf-primary: #002e5d;
    --lf-primary-light: #004b9a;
    --lf-primary-dark: #001833;
    --lf-accent: #ea580c;
    --lf-accent-hover: #c2410c;
    --lf-text-main: #334155;
    --lf-text-muted: #64748b;
    --lf-bg-light: #f8fafc;
    --lf-bg-white: #ffffff;
    --lf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- UI Logic CSS --- */
.view-section { opacity: 1; animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--lf-text-main); line-height: 1.6; background: #fff; -webkit-font-smoothing: antialiased; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="submit"], button, select, textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.custom-scrollbar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

/* Typography */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; font-family: 'Playfair Display', serif; color: var(--lf-primary-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
.lf-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0, 46, 93, 0.98); padding: 1.25rem 0;
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--lf-transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    display: inline-flex; align-items: center; text-decoration: none; 
    background: rgba(255, 255, 255, 0.95); padding: 8px 15px; 
    border-radius: 4px; transition: var(--lf-transition);
}
.logo:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.logo img { max-height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { 
    color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 1px; transition: var(--lf-transition);
    cursor: pointer; opacity: 0.8; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--lf-accent); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--lf-accent); opacity: 1; }
.nav-links a.active::after { width: 100%; }

.mobile-menu-btn { display: none; color: white; font-size: 1.5rem; cursor: pointer; border: none; background: transparent; }

/* Slider Styles */
.lions-hero-slider { position: relative; overflow: hidden; height: 100vh; background: #000; }
.lions-slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    z-index: 0; display: flex; align-items: center;
}
.lions-slide.active { opacity: 1; visibility: visible; z-index: 10; }

.lions-slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.1); transition: transform 10s ease-out;
}
.lions-slide.active .lions-slide-bg { transform: scale(1); }

.lions-video-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transform: scale(1.02);
}

.lions-slide-content {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1.2s ease-out 0.5s, transform 1.2s ease-out 0.5s;
    max-width: 850px; color: white; position: relative; z-index: 20;
}
.lions-slide.active .lions-slide-content { opacity: 1; transform: translateY(0); }
.lions-slide-content h1 { color: white; }

.lions-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 24, 51, 0.9), rgba(0, 24, 51, 0.3)); }

/* Components */
.page-header { background: var(--lf-primary); color: white; padding: 10rem 0 5rem; text-align: center; position: relative; }
.page-header h1 { color: white; font-size: 3.5rem; margin-bottom: 1rem; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }

.divi-section { padding-top: 6rem; padding-bottom: 6rem; }

.divi-card {
    background: white; border: 1px solid #f1f5f9; border-radius: 6px;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.03);
    transition: all 0.3s ease; padding: 3rem 2.5rem; height: 100%;
}
.divi-card:hover { box-shadow: 0 15px 35px 0 rgba(0,0,0,0.08); transform: translateY(-5px); border-color: #e2e8f0; }

.lf-btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 4px;
    text-decoration: none; font-weight: 600; transition: var(--lf-transition);
    cursor: pointer; border: none; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    text-align: center;
}
.lf-btn-accent { background: var(--lf-accent); color: #ffffff; box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3); }
.lf-btn-accent:hover { background-color: var(--lf-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4); }
.lf-btn-outline { border: 2px solid white; color: white; background: transparent; }
.lf-btn-outline:hover { background: white; color: var(--lf-primary-dark); }
.lf-btn-primary { background: var(--lf-primary); color: white; }
.lf-btn-primary:hover { background: var(--lf-primary-light); }

.section-tag { color: var(--lf-accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem; display: block; }
.section-title { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; }

/* Grids */
.lf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-different { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; }

@media (min-width: 992px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-different { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
}

.lf-feature-icon { font-size: 2.5rem; color: var(--lf-accent); margin-bottom: 1.5rem; display: block; }

/* specific elements */
.different-item { display: flex; gap: 2rem; margin-bottom: 3rem; align-items: flex-start; }
.different-number { font-size: 3.5rem; font-family: 'Playfair Display', serif; color: var(--lf-accent); line-height: 0.8; opacity: 0.2; font-weight: 900; min-width: 60px; }
.different-content h4 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--lf-primary-dark); }

.trust-badge {
    display: flex; align-items: center; gap: 1.25rem; padding: 2rem 1.5rem; 
    background: white; border: 1px solid #e2e8f0; border-radius: 6px; transition: var(--lf-transition);
}
.trust-badge:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--lf-accent); transform: translateY(-5px); }
.trust-badge i { color: var(--lf-accent); font-size: 2.5rem; }

/* FAQs */
.faq-container { max-width: 850px; margin: 0 auto; }
.faq-item { background: #fff; border-bottom: 1px solid #e2e8f0; margin-bottom: 1rem; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.faq-question {
    width: 100%; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; 
    cursor: pointer; border: none; background: none; text-align: left; font-family: 'Inter', sans-serif; 
    font-weight: 600; font-size: 1.1rem; color: var(--lf-primary-dark); transition: var(--lf-transition);
}
.faq-question:hover { color: var(--lf-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--lf-text-muted); font-size: 1rem; line-height: 1.8; padding: 0 2rem; opacity: 0; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 1.5rem; opacity: 1; }
.faq-icon { transition: transform 0.3s ease; color: var(--lf-accent); width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff3ed; }
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--lf-accent); color: white; }

/* Team Cards */
.team-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--lf-transition); }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.team-img { width: 100%; height: 350px; object-fit: cover; border-bottom: 3px solid var(--lf-accent); }
.team-info { padding: 2rem; text-align: center; }
.team-info h3 { margin-bottom: 0.25rem; font-size: 1.4rem; }
.team-role { color: var(--lf-accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: block; }

/* Forms */
.form-card { background: white; padding: 4rem 3rem; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--lf-primary-dark); text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 1px; }
input, select, textarea {
    width: 100%; padding: 1rem 1.2rem; border: 1px solid #cbd5e1; border-radius: 4px; 
    outline: none; background: #f8fafc; font-family: inherit; font-size: 1rem; transition: var(--lf-transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--lf-accent); background: white; box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Footer */
footer { background: var(--lf-primary-dark); color: #94a3b8; padding: 6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; }
.footer-logo img { max-height: 60px; margin-bottom: 1.5rem; background: white; padding: 10px; border-radius: 4px; }
.footer-heading { color: white; font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: var(--lf-transition); }
.footer-links a:hover { color: var(--lf-accent); padding-left: 5px; }
.footer-contact p { margin-bottom: 1rem; display: flex; gap: 1rem; align-items: flex-start; }
.footer-contact i { color: var(--lf-accent); margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 5rem; padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* Responsive */
@media screen and (max-width: 992px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .different-item { flex-direction: column; gap: 1rem; }
    .different-number { margin-bottom: -10px; }
}
@media screen and (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--lf-primary);
        flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav-links.show { max-height: 400px; }
    .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links a { display: block; padding: 1.5rem 2rem; }
    .nav-links a::after { display: none; }
    
    .page-header { padding: 8rem 0 4rem; }
    .page-header h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
    .lions-slide-content h1 { font-size: 3rem !important; }
    .form-card { padding: 2rem 1.5rem; }
}