/* ===== COMPREHENSIVE RESPONSIVE DESIGN FOR MUNDRA LEGAL WEBSITE ===== */
/* Complete responsive framework covering all devices and breakpoints */

/* ===== GLOBAL RESPONSIVE FOUNDATION ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* ===== RESPONSIVE CONTAINER SYSTEM ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Container breakpoints */
@media (min-width: 320px) {
    .container { padding: 0 1rem; }
}

@media (min-width: 576px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 992px) {
    .container { padding: 0 2.5rem; }
}

@media (min-width: 1200px) {
    .container { padding: 0 3rem; }
}

@media (min-width: 1400px) {
    .container { padding: 0 2rem; }
}

/* ===== RESPONSIVE TYPOGRAPHY SYSTEM ===== */
/* Fluid typography that scales smoothly across all devices */

/* Primary Headings */
h1 {
    font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
    line-height: 1.1;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.8rem);
    line-height: 1.2;
    margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.2rem);
    line-height: 1.3;
    margin-bottom: clamp(0.6rem, 1vw, 1rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw + 0.2rem, 1.6rem);
    line-height: 1.4;
    margin-bottom: clamp(0.5rem, 0.8vw, 0.8rem);
}

h5 {
    font-size: clamp(1rem, 1.5vw + 0.2rem, 1.3rem);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

h6 {
    font-size: clamp(0.9rem, 1vw + 0.2rem, 1.1rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Body text and paragraphs */
p {
    font-size: clamp(0.9rem, 1.5vw + 0.2rem, 1.1rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Small text */
small {
    font-size: clamp(0.8rem, 1vw + 0.1rem, 0.9rem);
}

/* Large text */
.text-large {
    font-size: clamp(1.1rem, 2vw + 0.3rem, 1.4rem);
    line-height: 1.5;
}

/* Hero text specific sizing */
.hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 4rem) !important;
    line-height: 1.1 !important;
}

.hero-description {
    font-size: clamp(1rem, 2vw + 0.3rem, 1.3rem) !important;
    line-height: 1.6 !important;
}

/* Section titles */
.section-title {
    font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem) !important;
    line-height: 1.2 !important;
}

.section-description {
    font-size: clamp(1rem, 1.8vw + 0.2rem, 1.2rem) !important;
    line-height: 1.7 !important;
}

/* ===== RESPONSIVE IMAGES AND MEDIA ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive images with aspect ratios */
.img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.img-16x9 {
    aspect-ratio: 16/9;
}

.img-4x3 {
    aspect-ratio: 4/3;
}

.img-1x1 {
    aspect-ratio: 1/1;
}

/* Video responsiveness */
video {
    max-width: 100%;
    height: auto;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== RESPONSIVE TABLES ===== */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* Mobile table styling */
@media (max-width: 767px) {
    .table-mobile-stack {
        border: 0;
    }
    
    .table-mobile-stack thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    .table-mobile-stack tr {
        border: 1px solid #e2e8f0;
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .table-mobile-stack td {
        border: none;
        display: block;
        font-size: 0.9rem;
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f7fafc;
    }
    
    .table-mobile-stack td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.8rem;
        color: #4a5568;
    }
}

/* ===== RESPONSIVE GRID SYSTEMS ===== */

/* Services Grid */
.services-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Practice Areas Grid */
.practice-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .practice-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
}

/* Testimonials Grid */
.testimonials-slider {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Team Grid */
.team-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== RESPONSIVE BUTTONS AND INTERACTIVE ELEMENTS ===== */

/* Base button responsive styling */
.btn,
.service-card a,
button,
[type="button"],
[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: clamp(0.85rem, 1.5vw + 0.2rem, 1rem);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px; /* WCAG minimum touch target */
    min-width: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}

/* Button size variations */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 1.2vw + 0.1rem, 0.9rem);
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: clamp(1rem, 1.8vw + 0.2rem, 1.2rem);
    min-height: 52px;
}

/* Button groups responsive */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 576px) {
    .btn-group {
        flex-direction: row;
        width: auto;
        gap: 1rem;
    }
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
        gap: 1.2rem;
    }
}

/* ===== RESPONSIVE FORMS ===== */

/* Form base responsive styling */
.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-control,
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-size: clamp(0.9rem, 1.5vw + 0.2rem, 1rem);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    min-height: 44px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (min-width: 768px) {
    .form-control,
    input,
    textarea,
    select {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Form row responsive */
.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Consultation form responsive */
.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-container {
    padding: 2rem;
}

@media (min-width: 768px) {
    .form-container {
        padding: 3rem;
    }
}

/* ===== RESPONSIVE NAVIGATION ENHANCEMENTS ===== */

/* Mobile menu improvements */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 2rem;
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 9999;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(28, 41, 81, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(248, 250, 252, 0.9);
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(28, 41, 81, 0.05);
        border-radius: 8px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }

    .dropdown-column {
        min-width: auto;
        width: 100%;
    }

    .dropdown-link {
        font-size: 0.95rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(28, 41, 81, 0.05);
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ===== RESPONSIVE HERO SECTION ===== */

.hero {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 2rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 140px);
}

@media (min-width: 768px) {
    .hero-container {
        gap: 3rem;
    }
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

/* Hero credentials responsive */
.hero-credentials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 576px) {
    .hero-credentials {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
}

.credential {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .credential {
        padding: 1.2rem 0.8rem;
        min-height: 120px;
    }
}

/* ===== RESPONSIVE ABOUT SECTION ===== */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.about-features {
    margin: 2rem 0;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

@media (min-width: 576px) {
    .feature {
        flex-direction: row;
        text-align: left;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== RESPONSIVE SERVICE CARDS ===== */

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-content {
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .service-content {
        padding: 3rem 2rem 2rem;
    }
}

/* ===== RESPONSIVE CONTACT SECTION ===== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

@media (min-width: 576px) {
    .contact-item {
        flex-direction: row;
        text-align: left;
    }
}

/* ===== RESPONSIVE FOOTER ===== */

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2rem;
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        padding: 0 2rem;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Visibility utilities */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
    
    .hide-desktop {
        display: none;
    }
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* Text alignment utilities */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

.text-left-mobile {
    text-align: left;
}

@media (min-width: 768px) {
    .text-left-mobile {
        text-align: center;
    }
}

/* Flexbox utilities */
.flex-column-mobile {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .flex-row-desktop {
        flex-direction: row;
    }
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

@media (max-width: 767px) {
    .flex-wrap-mobile {
        flex-wrap: wrap;
    }
}

/* Spacing utilities */
.mt-mobile {
    margin-top: 1rem;
}

.mb-mobile {
    margin-bottom: 1rem;
}

.p-mobile {
    padding: 1rem;
}

@media (min-width: 768px) {
    .mt-desktop {
        margin-top: 2rem;
    }
    
    .mb-desktop {
        margin-bottom: 2rem;
    }
    
    .p-desktop {
        padding: 2rem;
    }
}

/* ===== RESPONSIVE TOUCH TARGETS ===== */
/* Ensure all interactive elements meet WCAG guidelines */

@media (max-width: 767px) {
    a, button, input, select, textarea, .clickable {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
    }
    
    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        min-height: 48px;
    }
    
    .dropdown-link {
        padding: 0.8rem 0;
        font-size: 1rem;
        min-height: 44px;
    }
    
    /* Social links */
    .social-link,
    .social-links a {
        min-width: 48px;
        min-height: 48px;
        font-size: 1.2rem;
    }
}

/* ===== ADVANCED RESPONSIVE BREAKPOINTS ===== */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .hero-credentials {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-credentials {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-credentials {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .practice-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== RESPONSIVE PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .hamburger,
    .nav-menu,
    button,
    .back-to-top,
    .floating-elements {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .service-card,
    .testimonial-card,
    .feature {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card,
    .testimonial-card,
    .feature,
    .credential {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .service-card,
    .testimonial-card,
    .feature,
    .credential {
        background: #2d3748;
        color: #f7fafc;
        border-color: #4a5568;
    }
    
    .nav-menu {
        background: rgba(45, 55, 72, 0.98);
    }
    
    .dropdown-menu {
        background: rgba(45, 55, 72, 0.9);
    }
}

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */

/* Disable animations on small screens to improve performance */
@media (max-width: 767px) {
    .floating-elements,
    .element {
        display: none;
    }
    
    .hero-overlay {
        background: none;
    }
    
    /* Reduce complex animations */
    .service-card:hover,
    .testimonial-card:hover,
    .feature:hover {
        transform: none;
    }
}

/* ===== RESPONSIVE ERROR HANDLING ===== */

/* Fallback fonts for better cross-device compatibility */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Graceful degradation for unsupported features */
.hero-container {
    display: block;
}

@supports (display: grid) {
    .hero-container {
        display: grid;
    }
}

.services-grid {
    display: block;
}

@supports (display: grid) {
    .services-grid {
        display: grid;
    }
}

/* ===== SERVICE PAGES RESPONSIVE FRAMEWORK IMPORT ===== */
/* Import specialized responsive framework for service pages */
@import url('./services-responsive.css');

/* ===== ENHANCED SERVICE PAGE RESPONSIVENESS ===== */
/* Additional service-specific responsive improvements */

/* Service Page Hero Sections - Ultra Responsive */
.service-hero,
.gst-hero,
.company-hero,
.trademark-hero,
.private-limited-hero,
.nbfc-hero,
.court-marriage-hero,
.property-registry-hero {
    min-height: 40vh;
    padding: calc(80px + 2rem) 0 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 576px) {
    .service-hero,
    .gst-hero,
    .company-hero,
    .trademark-hero,
    .private-limited-hero,
    .nbfc-hero,
    .court-marriage-hero,
    .property-registry-hero {
        min-height: 45vh;
        padding: calc(100px + 2rem) 0 3rem;
    }
}

@media (min-width: 768px) {
    .service-hero,
    .gst-hero,
    .company-hero,
    .trademark-hero,
    .private-limited-hero,
    .nbfc-hero,
    .court-marriage-hero,
    .property-registry-hero {
        min-height: 55vh;
        padding: calc(120px + 3rem) 0 4rem;
    }
}

@media (min-width: 1024px) {
    .service-hero,
    .gst-hero,
    .company-hero,
    .trademark-hero,
    .private-limited-hero,
    .nbfc-hero,
    .court-marriage-hero,
    .property-registry-hero {
        min-height: 65vh;
        padding: calc(120px + 4rem) 0 5rem;
    }
}

/* Service Page Two-Column Layout */
.service-two-column {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 768px) {
    .service-two-column {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .service-two-column {
        gap: 4rem;
    }
}

/* Service Page Feature Grids */
.service-features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .service-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .service-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .service-features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* Service Page Document Lists */
.service-document-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .service-document-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .service-document-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Service Page Process Steps */
.service-process-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .service-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Service Page Pricing Tables */
.service-pricing-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .service-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .service-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

/* Service Page FAQ Sections */
.service-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.service-faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .service-faq-item {
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
}

/* Enhanced Touch Targets for Mobile */
.service-card,
.service-button,
.service-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-card,
    .service-button,
    .service-link {
        min-height: auto;
        padding: 1rem 1.5rem;
    }
}

/* Service Page Image Optimization */
.service-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .service-image {
        border-radius: 16px;
    }
}

/* Service Hero Content Responsiveness */
.service-hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.service-hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Service Hero Button Groups */
.service-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .service-hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
        width: auto;
    }
}

/* Service Section Spacing */
.service-section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .service-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .service-section {
        padding: 5rem 0;
    }
}

/* Service Section Titles */
.service-section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .service-section-title {
        margin-bottom: 3rem;
    }
}

/* Service Page Breadcrumbs - Enhanced */
.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .service-breadcrumb {
        font-size: 1rem;
        margin-bottom: 2rem;
        flex-wrap: nowrap;
    }
}

/* Service Page Content Blocks */
.service-content-block {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .service-content-block {
        border-radius: 20px;
        padding: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .service-content-block {
        padding: 3rem;
        margin-bottom: 3rem;
    }
}

/* Service Page Statistics */
.service-stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .service-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.service-stat {
    text-align: center;
    padding: 1rem;
}

.service-stat-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .service-stat-label {
        font-size: 1rem;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .service-features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .service-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Accessibility Enhancements for Service Pages */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-button,
    .service-link {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .service-card,
    .service-content-block {
        border: 2px solid currentColor;
    }
}

/* Print Styles for Service Pages */
@media print {
    .service-hero-buttons,
    .service-cta-section {
        display: none;
    }
    
    .service-content-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .service-section {
        padding: 1rem 0;
    }
}
