/* K7 Law San Diego - Professional Criminal Defense Attorney Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    touch-action: pan-y;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    touch-action: pan-y;
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 60px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 80px;
    }
}

@media (min-width: 1400px) {
    .container {
        padding: 0 120px;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 60px;
    }
}

@media (min-width: 1200px) {
    .header-container {
        padding: 0 80px;
    }
}

@media (min-width: 1400px) {
    .header-container {
        padding: 0 120px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo:link,
.logo:visited,
.logo:active,
.logo:hover {
    text-decoration: none !important;
}

.logo-k7 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.logo-law {
    font-size: 32px;
    font-weight: 300;
    color: #666;
    letter-spacing: -1px;
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c41e3a;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #c41e3a;
}

.phone-icon {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 769px) {
    .hero {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(196, 30, 58, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .hero-text {
        padding: 0 60px;
    }
}

@media (min-width: 1200px) {
    .hero-text {
        padding: 0 80px;
    }
}

@media (min-width: 1400px) {
    .hero-text {
        padding: 0 120px;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.title-main {
    display: block;
    color: white;
}

.title-sub {
    display: block;
    color: #c41e3a;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #c41e3a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: white;
    opacity: 0.8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 180px;
    justify-content: center;
}

.btn-primary {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

.btn-primary:hover {
    background: #a0172e;
    border-color: #a0172e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Darker button for light backgrounds (contact section) */
.contact-cta .btn-secondary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.contact-cta .btn-secondary:hover {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 72px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 56px;
    }
    
    .stat-label {
        font-size: 16px;
    }
}

@media (min-width: 1400px) {
    .hero-title {
        font-size: 84px;
    }
    
    .hero-subtitle {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 64px;
    }
    
    .stat-label {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 60px;
    }
}

/* Section Styles - Full Width */
section {
    padding: 100px 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Full width sections on desktop only */
@media (min-width: 769px) {
    section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 56px;
    }
    
    .section-subtitle {
        font-size: 24px;
    }
}

@media (min-width: 1400px) {
    .section-title {
        font-size: 64px;
    }
    
    .section-subtitle {
        font-size: 28px;
    }
    
    section {
        padding: 120px 0;
    }
}

/* Practice Areas */
.practice-areas {
    background: #f8f9fa;
}

.practice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .practice-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1400px) {
    .practice-grid {
        gap: 40px;
    }
}

.practice-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Cards start hidden for GSAP scroll animation */
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    will-change: opacity, transform;
    /* Fallback: Auto-animate after 2 seconds if JS doesn't run */
    animation: fallbackFadeIn 0.8s ease-out forwards;
    animation-delay: 2s;
}

@media (max-width: 768px) {
    .practice-card {
        /* Visible immediately on mobile */
        opacity: 1;
        transform: none;
    }
}

/* Hover effect - Apple style subtle lift (only when not animating) */
.practice-card:hover {
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.practice-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #c41e3a;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.practice-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.practice-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.practice-features {
    list-style: none;
    text-align: center;
}

.practice-features li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
    display: inline-block;
    text-align: left;
}

.practice-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c41e3a;
    font-weight: bold;
}

/* Why Choose Us */
.why-choose {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 20px;
    will-change: opacity, transform;
}

/* Hide initially on desktop only for GSAP scroll animation */
@media (min-width: 769px) {
    .feature-item {
        opacity: 0;
        transform: translate3d(40px, 30px, 0);
    }
}

/* Visible immediately on mobile */
@media (max-width: 768px) {
    .feature-item {
        opacity: 1;
        transform: none;
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: #c41e3a;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Process Section */
.process {
    background: #f8f9fa;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        gap: 60px;
    }
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    will-change: opacity, transform;
}

/* Hide initially on desktop only for GSAP scroll animation */
@media (min-width: 769px) {
    .step {
        opacity: 0;
        transform: translate3d(50px, 40px, 0);
    }
}

/* Visible immediately on mobile */
@media (max-width: 768px) {
    .step {
        opacity: 1;
        transform: none;
    }
}

.step-number {
    font-size: 36px;
    font-weight: 800;
    color: #c41e3a;
    opacity: 0;
    flex-shrink: 0;
    line-height: 1;
    transform: translate3d(-20px, 0, 0) scale(0.5);
    will-change: opacity, transform;
}

/* Visible state on mobile */
@media (max-width: 768px) {
    .step-number {
        opacity: 0.3;
        transform: none;
    }
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.step-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* Old testimonial animation removed - testimonials section not in use */

.testimonial-content p {
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.author-location {
    font-size: 14px;
    color: #666;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-align: center;
}

@media (min-width: 1024px) {
    .contact-text h2 {
        text-align: left;
    }
}

.contact-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
}

@media (min-width: 1024px) {
    .contact-text p {
        text-align: left;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    align-items: center;
}

@media (min-width: 1024px) {
    .contact-info {
        align-items: flex-start;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #c41e3a;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 1024px) {
    .contact-cta {
        justify-content: flex-start;
    }
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 600px;
    overflow: hidden;
}

.contact-form iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 3px;
}

/* Map Section */
.map-section {
    background: white;
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    .map-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}

@media (min-width: 1400px) {
    .map-section {
        padding: 80px 0;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .footer-logo {
        justify-content: flex-start;
    }
}

.footer-logo .logo-k7 {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.footer-logo .logo-law {
    font-size: 28px;
    font-weight: 300;
    color: #999;
}

.footer-tagline {
    font-size: 16px;
    color: #c41e3a;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.footer-description {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-top: 8px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-tagline {
        text-align: left;
    }
    
    .footer-description {
        text-align: left;
    }
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section li {
    margin-bottom: 8px;
    text-align: center;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c41e3a;
}

@media (min-width: 768px) {
    .footer-section h4 {
        text-align: left;
    }
    
    .footer-section ul {
        text-align: left;
    }
    
    .footer-section li {
        text-align: left;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
    margin: 0;
    width: 100%;
    text-align: center;
}

.footer-privacy {
    color: #c41e3a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy:hover {
    color: #a0172e;
}

.footer-separator {
    margin: 0 4px;
}

.footer-credit-text {
    color: #999;
}

.footer-credit-link {
    color: #c41e3a !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit-link:visited {
    color: #c41e3a !important;
}

.footer-credit-link:hover {
    color: #a0172e;
}

/* Animations - Apple-style animations */

/* Fallback keyframe animations for elements that fail to animate via JS */
@keyframes fallbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fallbackFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Icons always visible */
.practice-icon {
    opacity: 1;
}

/* Feature Items - One-time fade on page load */
.feature-item {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Fallback: Auto-animate after 2 seconds if JS doesn't run */
    animation: fallbackFadeInScale 0.6s ease-out forwards;
    animation-delay: 2s;
}

.feature-item.page-load-fade {
    animation: appleFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Feature icon animation (Apple style) */
@keyframes feature-icon-spin {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0) scale3d(0, 0, 1) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0deg);
    }
}

.feature-item.animate-feature-in {
    /* Override fallback animation when JS runs successfully */
    animation: none;
    opacity: 1;
    transform: scale(1);
}

.feature-item.animate-feature-in .feature-icon {
    animation: feature-icon-spin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

/* Ensure icon starts hidden on desktop only */
@media (min-width: 769px) {
    .feature-item:not(.animate-feature-in) .feature-icon {
        opacity: 0;
    }
}

/* Step Items - One-time fade on page load */
.step {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    /* Fallback: Auto-animate after 2 seconds if JS doesn't run */
    animation: fallbackFadeInScale 0.6s ease-out forwards;
    animation-delay: 2s;
}

.step.page-load-fade {
    animation: appleFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Step number animation */
@keyframes step-number-pop {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0) scale3d(0.3, 0.3, 1);
    }
    to {
        opacity: 0.3;
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }
}

.step.animate-step-in {
    /* Override fallback animation when JS runs successfully */
    animation: none;
    opacity: 1;
    transform: scale(1);
}

.step.animate-step-in .step-number {
    animation: step-number-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.1s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .practice-card,
    .feature-item,
    .step {
        /* Elements visible immediately on mobile for better UX */
        opacity: 1;
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .feature-item.animate-feature-in,
    .step.animate-step-in,
    .feature-item.animate-feature-in .feature-icon,
    .step.animate-step-in .step-number {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .practice-card {
        opacity: 1;
        transform: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-4 {
    margin-top: 24px;
}

/* GoHighLevel Override Styles - Specific selectors to prevent leaks */
.header,
.hero,
section,
.practice-areas,
.why-choose,
.process,
.contact,
.footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force full-width on GHL */
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any GHL container constraints */
.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* Force full-width sections - only on desktop */
@media (min-width: 769px) {
    section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }
}

/* Mobile: sections should not exceed viewport */
@media (max-width: 768px) {
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Ensure hero is full-width - only on desktop */
@media (min-width: 769px) {
    .hero {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
    }
}

/* Mobile: hero should not exceed viewport */
@media (max-width: 768px) {
    .hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Enhanced Mobile Optimization */
@media (max-width: 480px) {
    .contact {
        padding-bottom: 140px;
    }
    .header-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .practice-card {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 20px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .contact-form iframe {
        height: auto !important;
        min-height: 1050px !important;
    }
    
    .hero-stats {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 16px;
        min-width: 140px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .logo-k7, .logo-law {
        font-size: 28px;
    }
    
    .phone-link {
        font-size: 14px;
    }
    
    .phone-icon {
        width: 16px;
        height: 16px;
    }
    
    .footer-copyright {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-credit-text {
        width: 100%;
        text-align: center;
    }
}

/* Tablet Optimization */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 25px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    section {
        padding: 80px 0;
    }
}

/* Print styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
    }
}
