/* ========================================
   FRANK LAW GROUP - STYLESHEET
   Mobile-First Responsive Design
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --color-primary: #B22222;       /* Deep Red */
    --color-secondary: #4682B4;     /* Steel Blue */
    --color-tertiary: #FFD700;     /* Gold */
    --color-dark: #2F4F4F;         /* Dark Slate Gray */
    --color-light: #F8F8F8;        /* Off-White */
    
    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title.center {
    text-align: center;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 20px;
}

.title-underline.center {
    margin: 0 auto 20px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-primary);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--color-light);
    z-index: 1000;
    transition: var(--transition-medium);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header.sticky {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-medium);
}

.header.sticky .logo-img {
    height: 32px;
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-light);
    z-index: 999;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: var(--color-dark);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    text-align: center;
}

.mobile-nav-list {
    margin-bottom: 40px;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-dark);
    padding: 15px 0;
}

.mobile-cta {
    display: inline-block;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero,
.services-hero,
.insights-hero,
.contact-hero,
.about-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    overflow: hidden;
}

.hero-bg,
.services-hero-bg,
.insights-hero-bg,
.contact-hero-bg,
.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-bg {
    overflow: hidden;
}

.parallax-bg {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.9), rgba(47, 79, 79, 0.85));
    z-index: 0;
}

.hero .hero-content,
.services-hero .hero-content,
.insights-hero .hero-content,
.contact-hero .hero-content,
.about-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.about-hero .hero-title,
.about-hero .hero-subtitle {
    color: white;
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Services Hero - Dark overlay */
.services-hero::before,
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.85), rgba(47, 79, 79, 0.8));
    z-index: 0;
}

.services-hero .hero-title,
.services-hero .hero-subtitle,
.contact-hero .hero-title,
.contact-hero .hero-subtitle {
    color: white;
}

/* ========================================
   BUTTONS (CTA)
   ======================================== */
.cta-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-light);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
}

.cta-primary:active {
    transform: translateY(0) scale(0.98);
}

.cta-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.cta-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.cta-tertiary {
    display: inline-block;
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.cta-tertiary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.cta-tertiary:hover {
    color: var(--color-secondary);
}

.cta-tertiary:hover::after {
    width: 100%;
}

/* CTA Pulse Animation */
.cta-pulse {
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(178, 34, 34, 0);
    }
}

/* ========================================
   FIRM INTRODUCTION
   ======================================== */
.firm-intro {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.firm-intro-grid {
    display: grid;
    gap: 40px;
}

.firm-intro-text p {
    font-size: 1.1rem;
    color: #555;
}

.firm-intro-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========================================
   KEY SERVICES OVERVIEW
   ======================================== */
.key-services {
    padding: var(--section-padding);
    background-color: #fff;
}

.services-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-medium);
    border: 1px solid #eee;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.service-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.service-desc {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   OUR APPROACH
   ======================================== */
.our-approach {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.process-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    max-width: 300px;
}

.process-icon img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.process-title {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.process-desc {
    color: #666;
    font-size: 0.95rem;
}

.process-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-tertiary), var(--color-secondary));
}

/* ========================================
   WHY CHOOSE US
   ======================================== */
.why-choose-us {
    padding: var(--section-padding);
    background-color: #fff;
}

.why-choose-grid {
    display: grid;
    gap: 40px;
}

.benefits-list {
    margin-top: 30px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #555;
}

.benefit-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-choose-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.testimonial-slides {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 700;
    color: var(--color-primary);
}

.author-role {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background-color: var(--color-primary);
}

.testimonial-dot:hover {
    transform: scale(1.2);
}

/* ========================================
   PRIMARY CTA BLOCK
   ======================================== */
.primary-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--color-primary), #8B0000);
    text-align: center;
}

.cta-headline {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}

.cta-subtext {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ========================================
   RECENT INSIGHTS
   ======================================== */
.recent-insights {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.insights-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.insight-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #eee;
}

.insight-title {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.insight-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* ========================================
   CONTACT SNIPPET
   ======================================== */
.contact-snippet {
    padding: var(--section-padding);
    background-color: #fff;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    color: var(--color-tertiary);
    font-size: 1.5rem;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
}

.contact-link:hover {
    color: var(--color-primary);
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */
.firm-philosophy {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
}

/* Our Values */
.our-values {
    padding: var(--section-padding);
    background-color: #fff;
}

.values-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
}

.value-icon img {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.value-title {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.value-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Meet the Team */
.meet-the-team {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.team-grid {
    display: grid;
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.team-photo img {
    width: 100%;
    border-radius: 8px;
    transition: var(--transition-medium);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(47, 79, 79, 0.9), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

.team-card:focus .team-overlay {
    transform: translateY(0);
}

.team-name {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.team-title {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.team-bio {
    padding: 20px;
    background-color: #fff;
    font-size: 0.95rem;
    color: #666;
    display: none;
}

.team-card:focus .team-bio {
    display: block;
}

/* Firm History / Timeline */
.firm-history {
    padding: var(--section-padding);
    background-color: #fff;
}

.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-primary);
    display: none;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-bottom: 15px;
}

.timeline-year {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.timeline-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Community Involvement */
.community-involvement {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.community-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* About CTA */
.about-cta {
    padding: 80px 20px;
    background-color: var(--color-secondary);
    text-align: center;
}

.about-cta .cta-headline {
    color: white;
}

/* ========================================
   SERVICES PAGE STYLES
   ======================================== */
.service-philosophy {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.service-detail {
    padding: var(--section-padding);
    background-color: #fff;
}

.service-detail-alt {
    background-color: var(--color-light);
}

.service-detail-grid {
    display: grid;
    gap: 40px;
}

.service-detail-grid.reverse .service-detail-content {
    order: 2;
}

.service-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.list-icon {
    color: var(--color-tertiary);
    flex-shrink: 0;
}

.service-detail-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Holistic Approach */
.holistic-approach {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--color-secondary), #2F4F4F);
}

.holistic-approach .section-title {
    color: white;
}

.holistic-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* General CTA */
.general-cta {
    padding: 80px 20px;
    background-color: var(--color-primary);
    text-align: center;
}

.general-cta .cta-headline {
    color: white;
}

/* ========================================
   INSIGHTS PAGE STYLES
   ======================================== */
.featured-article {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.featured-label {
    display: inline-block;
    background-color: var(--color-tertiary);
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.featured-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content {
    padding: 30px;
}

.featured-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.featured-excerpt {
    color: #555;
    margin-bottom: 20px;
}

/* Article Categories */
.article-categories {
    padding: var(--section-padding);
    background-color: #fff;
}

.categories-grid {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    background-color: var(--color-light);
    border-radius: 8px;
    border: 1px solid #eee;
    transition: var(--transition-medium);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.category-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1rem;
    color: var(--color-primary);
}

/* All Articles List */
.all-articles {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.articles-list {
    margin-top: 40px;
}

.article-item {
    border-bottom: 1px solid #eee;
}

.article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.article-link:hover {
    padding-left: 10px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-dark);
}

.article-date {
    font-size: 0.9rem;
    color: #999;
    flex-shrink: 0;
    margin-left: 20px;
}

/* Insights CTA */
.insights-cta {
    padding: var(--section-padding);
    background-color: var(--color-secondary);
}

.insights-cta .cta-headline,
.insights-cta .cta-subtext {
    color: white;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta-buttons .cta-secondary {
    border-color: white;
    color: white;
}

.cta-buttons .cta-secondary:hover {
    background-color: white;
    color: var(--color-secondary);
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */
.contact-details {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.contact-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-card .contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-card-title {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.contact-card-text {
    color: #666;
}

/* Office Hours */
.office-hours {
    padding: var(--section-padding);
    background-color: #fff;
}

.hours-content {
    margin-top: 30px;
}

.hours-line {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form-section {
    padding: var(--section-padding);
    background-color: var(--color-light);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-instructions {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.form-submit {
    align-self: center;
    margin-top: 10px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: #d4edda;
    border-radius: 8px;
    margin-top: 20px;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

/* Location Map */
.location-map {
    padding: var(--section-padding);
    background-color: #fff;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-image {
    width: 100%;
    height: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-tertiary);
    margin-bottom: 15px;
}

.footer-about {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
}

.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-tertiary);
}

.footer-address {
    font-style: normal;
    margin-bottom: 20px;
}

.footer-address p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-address a {
    color: rgba(255,255,255,0.7);
}

.footer-address a:hover {
    color: var(--color-tertiary);
}

.footer-hours p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.footer-cta {
    margin-top: 20px;
    color: var(--color-tertiary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--color-tertiary);
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Legal Wisdom - Footer Delight */
.legal-wisdom {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wisdom-icon {
    font-size: 1.2rem;
    color: var(--color-tertiary);
}

.wisdom-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.legal-wisdom:hover .wisdom-tooltip,
.legal-wisdom:focus .wisdom-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Reveal Classes */
.reveal-image {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-cta {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .reveal-image,
    .reveal-left {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    
    .hero,
    .services-hero,
    .insights-hero,
    .contact-hero,
    .about-hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    /* Services Grid - 2 columns */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Steps - Horizontal */
    .process-steps {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 40px;
    }
    
    .process-connector {
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--color-tertiary), var(--color-secondary));
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Contact Methods */
    .contact-methods {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Footer Grid - 2 columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    /* Show desktop nav */
    .nav {
        display: block;
    }
    
    .header-cta {
        display: inline-block;
    }
    
    .hamburger {
        display: none;
    }
    
    /* Hero Section */
    .hero,
    .services-hero,
    .insights-hero,
    .contact-hero,
    .about-hero {
        min-height: 85vh;
        padding: 120px 20px 100px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* Firm Introduction */
    .firm-intro-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    /* Services Grid - 4 columns */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Why Choose Us */
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    /* Values Grid - 4 columns */
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Team Grid - 2 columns */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 40px auto 0;
    }
    
    /* Timeline */
    .timeline::before {
        display: block;
    }
    
    .timeline-item {
        flex-direction: row;
        gap: 40px;
        text-align: left;
        align-items: flex-start;
    }
    
    .timeline-marker {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    /* Service Detail Grid */
    .service-detail-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
    }
    
    .service-detail-grid.reverse .service-detail-content {
        order: 0;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer Grid - 3 columns */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    /* Categories Grid - 6 columns */
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    /* Insights Grid */
    .insights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Featured Card */
    .featured-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-image img {
        height: 100%;
    }
    
    /* Article Item */
    .article-link {
        display: flex;
    }
}

/* Custom Scrollbar (Desktop) */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--color-dark);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 5px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary);
    }
}

/* Selection Color */
::selection {
    background-color: rgba(70, 130, 180, 0.3);
}
