/* Summit Law Group - Premium Styles */

:root {
    /* Refined Color Palette */
    --color-navy: #0F172A;
    --color-navy-light: #1E293B;
    --color-navy-dark: #020617;
    --color-charcoal: #334155;
    --color-gold: #C5A059;
    --color-gold-hover: #D4AF37;
    --color-gold-light: rgba(197, 160, 89, 0.1);
    --color-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-text-dark: #1F2937;
    --color-text-muted: #64748B;

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px 0;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.7;
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    /* Increased padding */
}

/* Responsive Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .container {
        padding: 0 25px;
        /* Better spacing for mobile */
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy);
    border: 2px solid var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-navy);
    color: var(--color-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.text-gold {
    color: var(--color-gold);
}

/* Section Header Enhancement */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* Navigation Enhancement */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background-color: var(--color-navy-dark);
    padding: 20px 0;
    box-shadow: var(--shadow-xl);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--color-gold);
}

.nav-cta {
    padding: 10px 24px;
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-weight: 600;
    border-radius: 2px;
}

.nav-cta:hover {
    background-color: var(--color-white);
}

.menu-toggle {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Split Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-navy);
    color: var(--color-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('https://thumbs.dreamstime.com/b/legal-concept-themis-goddess-justice-law-legal-concept-themis-goddess-justice-law-406032817.jpg') no-repeat center/cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.6;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--color-gold-light);
    color: var(--color-gold);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    gap: 10px;
}

/* Mobile adjustments for Hero */
@media (max-width: 900px) {
    .hero::before {
        width: 100%;
        opacity: 0.3;
        clip-path: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 30px;
    }
}

/* Stats Section */
.stats-strip {
    background: var(--color-gold);
    padding: 40px 0;
    color: var(--color-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 40px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--color-navy);
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section Enhancement */
.about {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Practice & Team Grid Enhancements */
.practice {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.practice-card {
    padding: 50px;
    background: var(--color-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.practice-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-gold-light);
}

.practice-icon {
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 30px;
}

.practice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Our Team */
.team {
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.attorney-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.attorney-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.attorney-image {
    height: 350px;
    background-color: #eee;
    overflow: hidden;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.attorney-card:hover .attorney-image img {
    transform: scale(1.05);
}

.attorney-info {
    padding: 25px;
    text-align: center;
}

.attorney-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.attorney-title {
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.attorney-bio {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.attorney-contact {
    display: inline-block;
    color: var(--color-navy);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-gold);
}

/* Insights/Blog */
.insights {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: transparent;
}

.blog-image {
    height: 240px;
    background-color: #ddd;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-card p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 60px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive & Mobile Optimization */
@media (max-width: 900px) {

    /* Safe Area & Body */
    body {
        font-size: 15px;
        /* Slightly smaller body text */
    }

    /* Navigation */
    .navbar {
        padding: 15px 0;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-navy);
        padding: 40px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0;
        /* Clear grid gap if any */
        height: 100vh;
        /* Full screen feel */
        align-items: center;
        /* Center align items */
        justify-content: flex-start;
        padding-top: 60px;
        overflow-y: auto;
    }

    .nav-links.active li {
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav-links.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-links.active li a {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Typography & Spacing */
    .section-header h2 {
        font-size: 2.25rem;
    }

    :root {
        --section-padding: 60px 0;
        /* Compact sections */
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
        height: 300px;
    }

    .about-image img {
        height: 100%;
        object-fit: cover;
    }

    /* Cards */
    .practice-grid,
    .team-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .practice-card,
    .attorney-card,
    .blog-card {
        margin-bottom: 15px;
    }

    .attorney-image {
        height: 400px;
        /* Taller images for mobile impact */
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col h4::after {
        /* Optional: Center underline for footer headers if desired */
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--color-gold);
        margin: 10px auto;
    }

    .footer-links a:hover {
        padding-left: 0;
        /* Disable shift on hover for touch */
        color: var(--color-gold);
    }

    .footer-col p i {
        margin-right: 5px;
        margin-bottom: 10px;
        display: block;
        /* Stack icons */
        font-size: 1.2rem;
    }

    .footer-col .logo {
        justify-content: center;
    }
}

@media (min-width: 600px) and (max-width: 900px) {

    /* Tablet Tweaks */
    .practice-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
/* Button Refinement */
.btn {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-navy);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 0;
}

.btn-primary:hover {
    color: var(--color-gold);
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.active {
    opacity: 1;
    transform: translateY(0);
}