/*
 * GoodWin Law Partners - Elite Digital Flagship v3.0
 * Design System: Unrivaled Prestige
 */

:root {
    --color-primary: #101010; /* Deeper, richer black */
    --color-secondary: #E0C189; /* Softer, more elegant gold */
    --color-background: #FFFFFF;
    --color-background-light: #F9F9F9;
    --color-text: #EAEAEA;
    --color-text-dark: #222222;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --transition-smooth: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.4s ease;
}

/* --- Base & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { width: 90%; max-width: 1400px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; color: var(--color-text-dark); }
a { color: var(--color-secondary); text-decoration: none; transition: var(--transition-fast); }
a:hover { filter: brightness(1.15); }

/* --- Preloader --- */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--color-primary); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 1s ease; }
.preloader.loaded { opacity: 0; pointer-events: none; }
.loader-logo { font-family: var(--font-heading); font-size: 3rem; color: var(--color-secondary); animation: fadeInOut 2s infinite; }
@keyframes fadeInOut { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Header --- */
.main-header { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 0; z-index: 1000; transition: all 0.5s var(--transition-smooth); }
.main-header.scrolled { background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 1rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; color: var(--color-background); }
.main-nav ul { list-style: none; display: flex; }
.main-nav li { margin-left: 3rem; }
.main-nav a { color: var(--color-text); font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; position: relative; padding: 10px 0; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--color-secondary); transition: width var(--transition-fast); }
.main-nav a:hover { color: var(--color-background); }
.main-nav a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition-smooth); border: 2px solid; text-align: center; }
.btn-primary { background: var(--color-secondary); color: var(--color-primary); border-color: var(--color-secondary); }
.btn-primary:hover { background: transparent; color: var(--color-secondary); transform: scale(1.05); }
.btn-outline { border-color: var(--color-secondary); color: var(--color-secondary); }
.btn-outline:hover { background: var(--color-secondary); color: var(--color-primary); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.5rem; }

/* --- Hero Section --- */
.hero { position: relative; height: 100vh; display: flex; align-items: center; text-align: center; }
.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; background-image: url('https://images.unsplash.com/photo-1590012351625-f0e8f491b6f3?q=80&w=2670&auto=format&fit=crop'); background-size: cover; background-position: center; animation: zoompan 25s infinite alternate; }
@keyframes zoompan { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.6) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1000px; padding: 0 1rem; }
.hero-title { font-size: clamp(3rem, 6vw, 5.5rem); color: var(--color-background); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--color-text); line-height: 1.8; max-width: 750px; margin: 0 auto 2.5rem auto; }

/* --- General Content & Animations --- */
.content-section { padding: 8rem 0; }
.eyebrow { font-weight: 700; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; }
.section-title { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.2; margin-bottom: 1rem; }
.section-intro { font-size: 1.1rem; color: #555; }
.animate-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth); }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* --- Expertise Section --- */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.expertise-card { background: var(--color-background); padding: 3rem; text-align: center; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); transition: var(--transition-smooth); position: relative; overflow: hidden; }
.expertise-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.card-icon { height: 60px; width: 60px; margin: 0 auto 2rem auto; background-color: var(--color-primary); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.card-icon i { color: var(--color-secondary); font-size: 1.8rem; }
.card-title { font-size: 1.8rem; color: var(--color-text-dark); margin-bottom: 1rem; }

/* --- FAQ Section --- */
.bg-light { background-color: var(--color-background-light); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-item summary { font-size: 1.25rem; font-weight: 700; padding: 2rem 1rem; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%) rotate(0deg); font-size: 2rem; color: var(--color-secondary); transition: transform var(--transition-fast); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-content { padding: 0 1rem 2rem 1rem; line-height: 1.8; }

/* --- AI Assistant Section --- */
.ai-section { background: linear-gradient(135deg, #161616 0%, #0a0a0a 100%); color: var(--color-text); }
.ai-section .section-title, .ai-section .section-intro { color: var(--color-background); }
.ai-interface { background: var(--color-primary); padding: 3rem; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); max-width: 900px; margin: 0 auto; }
.ai-input-wrapper { display: flex; gap: 1rem; }
#ai-query-input { flex-grow: 1; background: #222; border: 1px solid #444; border-radius: 5px; padding: 1rem; font-size: 1rem; color: var(--color-background); }
#ai-query-input:focus { outline: none; border-color: var(--color-secondary); }
.ai-response-area { margin-top: 2rem; padding: 2rem; background: rgba(0,0,0,0.2); border-radius: 5px; min-height: 100px; line-height: 1.7; }
.ai-response-area p { color: var(--color-text); }
.typing-indicator { display: flex; align-items: center; }
.typing-indicator span { height: 8px; width: 8px; background: var(--color-secondary); border-radius: 50%; margin: 0 4px; animation: typing 1s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }
.ai-disclaimer { font-size: 0.8rem; text-align: center; margin-top: 2rem; opacity: 0.6; }

/* --- Footer --- */
.main-footer { background: var(--color-primary); color: #999; padding: 4rem 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; text-align: left; margin-bottom: 3rem; }
.footer-title { font-family: var(--font-heading); color: var(--color-background); font-size: 1.3rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--color-secondary); }
.footer-phone { font-size: 1.5rem; color: var(--color-secondary); font-weight: 700; }
.footer-bottom { border-top: 1px solid #222; padding-top: 2rem; text-align: center; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .main-nav, .btn-outline { display: none; } /* Simplified for demo */
}
@media (max-width: 768px) {
    .doctrine-container { grid-template-columns: 1fr; }
    .doctrine-image-container { display: none; }
    .ai-input-wrapper { flex-direction: column; }
    .btn { width: 100%; }
}
