/**
 * Sterling Law Partners - Professional Legal Website
 * Classic, trustworthy, corporate design
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    /* Professional Color Palette */
    --navy: #1a2744;
    --navy-light: #2d3e5f;
    --navy-dark: #0f1825;
    --gold: #b8926a;
    --gold-light: #d4b896;
    --gold-dark: #96754e;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #212529;

    /* Semantic */
    --text-primary: var(--black);
    --text-secondary: var(--gray);
    --bg-primary: var(--white);
    --bg-secondary: var(--off-white);
    --accent: var(--gold);

    /* Borders */
    --border-color: #dee2e6;
    --border-accent: var(--gold);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Sizing */
    --nav-height: 80px;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy);
}

.accent {
    color: var(--gold);
}

/* ============================================
   Layout
============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* ============================================
   Top Bar
============================================ */
.top-bar {
    background: var(--navy);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8125rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 24px;
}

.top-bar-contact span,
.top-bar-hours span {
    opacity: 0.9;
}

/* ============================================
   Navigation
============================================ */
.nav {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--navy);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 10px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
}

.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    border-radius: 4px;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--navy-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.hamburger {
    width: 18px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    left: 0;
    transition: all var(--transition-fast);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    background: var(--gold-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23b8926a" opacity="0.1" x="20" y="20" width="60" height="60"/></svg>');
    background-size: 200px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    max-width: 700px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--gold-light);
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   Trust Badges
============================================ */
.trust-badges {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.badges-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.badge-icon {
    width: 40px;
    height: 40px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.badge span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   Practice Areas
============================================ */
.practice {
    background: var(--bg-primary);
}

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

.practice-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.practice-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.practice-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--gold);
}

.practice-icon svg {
    width: 100%;
    height: 100%;
}

.practice-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.practice-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.practice-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--transition-fast);
}

.practice-link:hover {
    color: var(--gold-dark);
}

/* ============================================
   Attorneys
============================================ */
.attorneys {
    background: var(--bg-secondary);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.attorney-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.attorney-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.attorney-image {
    aspect-ratio: 1;
    background: var(--navy);
}

.attorney-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attorney-placeholder span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

.attorney-info {
    padding: 24px;
}

.attorney-info h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.attorney-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.attorney-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.attorney-contact {
    display: flex;
    gap: 16px;
}

.attorney-contact a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    transition: color var(--transition-fast);
}

.attorney-contact a:hover {
    color: var(--gold);
}

/* ============================================
   About
============================================ */
.about {
    background: var(--bg-primary);
}

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

.about-content .section-label,
.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 16px;
}

.about-feature .feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--gold);
}

.about-feature .feature-icon svg {
    width: 100%;
    height: 100%;
}

.about-feature strong {
    display: block;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.about-feature span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    aspect-ratio: 4/3;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray);
}

.about-image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.about-stat-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--navy);
    color: var(--white);
    padding: 24px 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-stat-box .stat-number {
    color: var(--gold);
    font-size: 2rem;
}

.about-stat-box .stat-text {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.9;
}

/* ============================================
   Testimonials
============================================ */
.testimonials {
    background: var(--navy);
    color: var(--white);
}

.testimonials .section-label {
    color: var(--gold);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1.25rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.testimonial-card blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--gold);
}

/* ============================================
   FAQ
============================================ */
.faq {
    background: var(--bg-secondary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--gray);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Contact
============================================ */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-label,
.contact-info .section-title {
    text-align: left;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-item .contact-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-item .contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-item span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
}

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

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-disclaimer {
    margin-bottom: 20px;
}

.form-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 0 24px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-name,
.footer-brand .logo-icon {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9375rem;
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links a,
.footer-links p {
    display: block;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    opacity: 0.6;
    margin-bottom: 4px;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attorneys-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 16px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

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

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

    .badges-grid {
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ============================================
   Reduced Motion
============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
