/* Comprehensive Responsive Fixes for All Devices */

/* ========================================
   FOOTER COPYRIGHT - SLIM VERSION
======================================== */

/* Make copyright section slimmer with reduced padding */
.footer-bottom p {
    padding: 10px 0 !important;
    font-size: 13px !important;
    line-height: 1.3;
}

/* ========================================
   GENERAL RESPONSIVE FIXES
======================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive containers */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* ========================================
   CARDS & SECTIONS
======================================== */

/* Law Cards */
.law-card-area .low-card {
    padding: 20px 15px;
    margin-bottom: 15px;
}

.law-card-area .low-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.law-card-area .low-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

.law-card-area .low-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* Service Cards */
.our-service-card {
    padding: 30px 20px;
    margin-bottom: 30px;
    min-height: auto;
}

.our-service-card h3 {
    font-size: 20px;
    margin: 15px 0;
}

.our-service-card i {
    font-size: 50px;
}

.our-service-card p {
    font-size: 14px;
    line-height: 1.7;
}

/* Choose Cards */
.choose-card {
    /* Keep space for the absolutely-positioned icon (see style.css) */
    padding: 25px 20px 25px 100px;
    margin-bottom: 25px;
}

.choose-card h3 {
    font-size: 18px;
    margin: 12px 0;
}

.choose-card i {
    font-size: 45px;
}

/* On very small screens, stack icon above text to prevent overlap */
@media only screen and (max-width: 575px) {
    .choose-text .choose-card,
    .choose-card {
        padding-left: 20px !important;
        text-align: center;
    }

    .choose-text .choose-card i,
    .choose-card i {
        position: static !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        margin: 0 auto 12px;
    }
}

/* Attorney Cards */
.attorney-card {
    margin-bottom: 30px;
}

.attorney-card img {
    width: 100%;
    height: auto;
}

/* Case Study Cards */
.case-study-card {
    margin-bottom: 30px;
}

.case-study-card img {
    width: 100%;
    height: auto;
}

/* ========================================
   HERO SLIDER RESPONSIVE
======================================== */

.premium-hero {
    min-height: 500px;
    height: 100vh;
    max-height: 800px;
}

.premium-hero .slide-content {
    padding: 0 20px;
}

.premium-hero .slide-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}

.premium-hero .slide-content p {
    font-size: clamp(13px, 2vw, 15px);
}

/* ========================================
   TABLET DEVICES (768px - 991px)
======================================== */

@media only screen and (min-width: 768px) and (max-width: 991px) {
    
    /* Sections */
    .ptb-100 {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .pt-100 {
        padding-top: 70px;
    }
    
    .pb-100 {
        padding-bottom: 70px;
    }
    
    /* Typography */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    /* Cards */
    .law-card-area .low-card {
        padding: 25px 15px;
    }
    
    .our-service-card {
        padding: 35px 25px;
    }
    
    /* Hero Slider */
    .premium-hero {
        min-height: 550px;
        max-height: 700px;
    }
    
    .premium-hero .hero-arrow {
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   MOBILE DEVICES (576px - 767px)
======================================== */

@media only screen and (min-width: 576px) and (max-width: 767px) {
    
    /* Sections */
    .ptb-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .pt-100 {
        padding-top: 60px;
    }
    
    .pb-100 {
        padding-bottom: 60px;
    }
    
    /* Typography */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 14px;
    }
    
    /* Cards */
    .law-card-area .row {
        margin: 0;
    }
    
    .law-card-area .low-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .our-service-card {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .choose-card {
        /* Preserve room for the absolute icon */
        padding: 20px 15px 20px 100px;
    }
    
    /* Buttons */
    .default-btn-one,
    .default-btn-two {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Hero Slider */
    .premium-hero {
        min-height: 500px;
        max-height: 650px;
    }
    
    .premium-hero .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .premium-hero .hero-prev {
        left: 10px;
    }
    
    .premium-hero .hero-next {
        right: 10px;
    }
}

/* ========================================
   SMALL MOBILE DEVICES (max-width: 575px)
======================================== */

@media only screen and (max-width: 575px) {
    
    /* Sections */
    .ptb-100 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .pt-100 {
        padding-top: 50px;
    }
    
    .pb-100 {
        padding-bottom: 50px;
    }
    
    /* Typography */
    h1 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 18px;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 16px;
    }
    
    p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cards - Full Width on Mobile */
    .law-card-area .col-lg-3,
    .law-card-area .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .law-card-area .low-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .law-card-area .low-card h3 {
        font-size: 18px;
    }
    
    .law-card-area .low-card i {
        font-size: 35px;
        margin-bottom: 10px;
    }
    
    .law-card-area .low-card p {
        font-size: 13px;
    }
    
    /* Service Cards */
    .our-service-card {
        padding: 25px 15px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .our-service-card h3 {
        font-size: 18px;
    }
    
    .our-service-card i {
        font-size: 40px;
    }
    
    .our-service-card p {
        font-size: 13px;
    }
    
    /* Choose Cards */
    .choose-card {
        padding: 20px 15px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .choose-card h3 {
        font-size: 17px;
    }
    
    .choose-card i {
        font-size: 40px;
    }
    
    /* Buttons */
    .default-btn-one,
    .default-btn-two {
        padding: 10px 20px;
        font-size: 13px;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Hero Slider */
    .premium-hero {
        min-height: 450px;
        max-height: 600px;
    }
    
    .premium-hero .slide-content {
        padding: 0 15px;
    }
    
    .premium-hero .slide-content h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-bottom: 10px;
    }
    
    .premium-hero .slide-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .premium-hero .slide-content .badge-tag {
        font-size: 8px;
        padding: 3px 8px;
    }
    
    .premium-hero .hero-btns {
        flex-direction: column;
        gap: 8px;
    }
    
    .premium-hero .hero-btns a {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .premium-hero .hero-arrow {
        display: none;
    }
    
    .premium-hero .hero-dots {
        bottom: 15px;
    }
    
    .premium-hero .gold-line {
        display: none;
    }
    
    /* Section Titles */
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title span {
        font-size: 13px;
    }
    
    .section-title h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .section-title p {
        font-size: 13px;
    }
    
    /* About Section */
    .about-text ul li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    /* Fun Facts */
    .signle-fun-fact {
        margin-bottom: 25px;
        padding: 20px 10px;
    }
    
    .signle-fun-fact h3 {
        font-size: 32px;
    }
    
    .signle-fun-fact p {
        font-size: 13px;
    }
    
    .signle-fun-fact i {
        font-size: 40px;
    }
    
    /* Footer */
    .footer-area {
        padding-top: 50px;
        padding-bottom: 30px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .footer-widget h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-widget p,
    .footer-widget ul li {
        font-size: 13px;
    }
    
    .footer-socials li a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    
    /* Page Banner */
    .page-banner {
        padding: 80px 0 60px;
    }
    
    .page-banner h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .page-banner ul li {
        font-size: 13px;
    }
    
    /* Contact Form */
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    /* Testimonials */
    .testimonials-card {
        padding: 20px 15px;
    }
    
    .testimonials-card p {
        font-size: 13px;
    }
    
    /* Attorney Cards */
    .attorney-card {
        margin-bottom: 25px;
    }
    
    .attorney-card h3 {
        font-size: 18px;
    }
    
    /* Case Study */
    .case-study-card {
        margin-bottom: 25px;
    }
    
    .case-study-card h3 {
        font-size: 18px;
    }
}

/* ========================================
   EXTRA SMALL DEVICES (max-width: 375px)
======================================== */

@media only screen and (max-width: 375px) {
    
    /* Typography */
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 17px;
    }
    
    p {
        font-size: 12px;
    }
    
    /* Sections */
    .ptb-100 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    /* Cards */
    .law-card-area .low-card,
    .our-service-card,
    .choose-card {
        padding: 15px 10px;
    }
    
    /* Hero Slider */
    .premium-hero {
        min-height: 400px;
    }
    
    .premium-hero .slide-content h1 {
        font-size: 1.1rem;
    }
    
    .premium-hero .slide-content p {
        font-size: 11px;
    }
    
    /* Buttons */
    .default-btn-one,
    .default-btn-two {
        padding: 9px 15px;
        font-size: 12px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION FIXES
======================================== */

@media only screen and (max-height: 500px) and (orientation: landscape) {
    
    .premium-hero {
        min-height: 100vh;
        max-height: none;
    }
    
    .premium-hero .slide-content h1 {
        font-size: 1.3rem;
    }
    
    .premium-hero .slide-content p {
        font-size: 12px;
    }
    
    .premium-hero .hero-btns a {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .header-area,
    .footer-area,
    .go-top,
    .hero-arrow,
    .hero-dots,
    .search-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3D5198;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
    background: #3D5198;
    color: white;
    padding: 10px;
}

/* Ensure sufficient color contrast */
.text-muted {
    color: #6c6c6c !important;
}

/* Touch target sizes for mobile */
@media (max-width: 767px) {
    a, button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
