/**
 * Responsive Stylesheet
 * Handles all media queries for different screen sizes
 */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
  .container {
    width: min(1100px, 90%);
  }
  
  .hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
  }
  
  .about-grid {
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
 
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-media {
    order: -1;
  }
  
  .forms-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .info-card {
    grid-column: 1 / -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .hero-nav {
    width: 44px;
    height: 44px;
  }
  
  .hero-nav.prev { left: 1rem; }
  .hero-nav.next { right: 1rem; }
  
  .testimonial blockquote::before,
  .testimonial blockquote::after {
    display: none;
  }
}

/* Large Mobile */
@media (max-width: 768px) {
  .section {
    padding: clamp(2rem, 6vw, 3rem) 0;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn {
    min-width: 200px;
    justify-content: center;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .forms-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .page-hero {
    padding: 3rem 0;
    text-align: center;
  }
  
  .cta-box {
    padding: 2rem 1rem;
  }
  
  .testimonial {
    padding: 1rem;
  }
  
  .t-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Mobile Navigation */
@media (max-width: 720px) {
  .brand-text {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--nav-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid transparent;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--gold);
  }
  
  .hero-nav {
    display: none;
  }
  
  .hero-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  .card i {
    display: block;
    text-align: center;
  }
  
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    width: min(100%, 95%);
    padding-inline: 0.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    min-height: 50vh;
  }
  
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 180px;
  }
  
  .card {
    padding: 1.25rem;
    text-align: center;
  }
  
  .card i {
    font-size: 1.75rem;
     display: block;
    text-align: center;
    
  
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 1.5rem;
  }
  
  .about-text h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  
  .pill-list {
    gap: 0.5rem;
  }
  
  .pill-list span {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .testimonial blockquote {
    font-size: 1.1rem;
  }
  
  .avatar {
    width: 50px;
    height: 50px;
  }
  
  .cta-box {
    padding: 1.5rem 1rem;
  }
  
  .cta-box h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
  
  .page-hero {
    padding: 2rem 0;
  }
  
  .page-hero h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  
  .form-card {
    padding: 1.5rem;
  }
  
  .form-card h2 {
    font-size: 1.1rem;
  }
  
  .form-card input,
  .form-card select,
  .form-card textarea {
    padding: 0.625rem;
    font-size: 0.9rem;
  }
  
  .footer-grid {
    padding: 2rem 0;
    gap: 1.5rem;
  }
  
  .footer h4 {
    font-size: 1rem;
  }
  
  .social {
    justify-content: center;
  }
  
  .social a {
    width: 36px;
    height: 36px;
  }
  
  .nav-container {
    padding: 0.5rem 0;
  }
  
  .brand-logo {
    height: 36px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 160px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .cta-box {
    padding: 1.25rem 0.75rem;
  }
  
  .nav-links {
    padding: 1.5rem 1rem;
  }
  
  .nav-link {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* Landscape Mobile */
@media (max-width: 812px) and (max-height: 450px) and (orientation: landscape) {
  .hero {
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .hero-ctas {
    flex-direction: row;
    gap: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
  }
  
  .section {
    padding: 1.5rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand-logo,
  .footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-slide {
    transition: none;
  }
  
  .reveal-up {
    opacity: 1;
    transform: none;
  }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* This is left empty as the site uses light theme with dark nav/footer */
  /* Can be populated later if full dark mode is desired */
}

/* Print Styles */
@media print {
  .navbar,
  .hero-nav,
  .hero-indicators,
  .scroll-progress,
  .hamburger {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero h1 {
    font-size: 24pt;
  }
  
  .section-title {
    font-size: 18pt;
  }
}

/* About Page Responsive Styles */
@media (max-width: 1000px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about.section {
    padding: 3rem 0;
  }
  
  .about-text h3 {
    font-size: 1.75rem;
  }
  
  .about-text p {
    font-size: 1rem;
  }
}

/* Services Page Responsive Styles */
@media (max-width: 1000px) {
  .forms-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .service-header h3 {
    font-size: 1.25rem;
  }
  
  .service-header {
    padding: 1rem;
  }
  
  .service-content.active {
    padding: 1rem;
  }
  
  .form-section {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* About Page - Center Alignment for Smaller Screens */
@media (max-width: 1000px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text h3 {
    text-align: center;
  }
  
  .about-text p {
    text-align: center;
  }
  
  .mission-vision {
    text-align: center;
  }
  
  .mission-vision h4 {
    justify-content: center;
  }
  
  .mission-vision p {
    text-align: center;
  }
  
  .pill-list {
    justify-content: center;
  }
}

/* Extra center alignment for very small screens */
@media (max-width: 768px) {
  .about.section {
    padding: 3rem 0;
  }
  
  .about-text h3 {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .about-text p {
    font-size: 1rem;
    text-align: center;
  }
  
  .attorney-image {
    margin: 0 auto;
    display: block;
  }
}

/* Circular Images Responsive Adjustments */
@media (max-width: 1000px) {
  .about-photo {
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .about-photo {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .about-photo {
    max-width: 220px;
  }
}

/* CTA Responsive Improvements */
@media (max-width: 1000px) {
  .cta-box {
    padding: 3rem 2rem;
  }
  
  .cta-box h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .cta-box.with-icon {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .cta-box {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  
  .cta-box h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: 1rem;
  }
  
  .cta-box p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-box .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .cta-box {
    padding: 2rem 1rem;
  }
  
  .cta-box h2 {
    font-size: 1.25rem;
  }
  
  .cta-box p {
    font-size: 0.95rem;
  }
  
  .cta-box .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Contact Page Responsive Improvements */
@media (max-width: 1000px) {
  .forms-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-section {
    padding: 2.5rem;
  }
  
  .form-section h2 {
    font-size: 1.8rem;
  }
  
  .calendly-wrapper {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .forms-section {
    padding: 3rem 0;
  }
  
  .form-section {
    padding: 2rem;
    border-radius: 16px;
  }
  
  .form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .form-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .submit-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
  
  .calendly-wrapper {
    min-height: 400px;
  }
  
  .info-card .contact-list li {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .business-hours {
    padding: 1rem;
  }
  
  .business-hours h4 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .form-section {
    padding: 1.5rem;
  }
  
  .form-section h2 {
    font-size: 1.3rem;
  }
  
  .submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .calendly-wrapper {
    min-height: 350px;
  }
}

/* Services Page Responsive Improvements */
@media (max-width: 1000px) {
  .services-detailed {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .service-header {
    padding: 1.5rem;
  }
  
  .service-header h3 {
    font-size: 1.5rem;
    gap: 1rem;
  }
  
  .service-header h3 i {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .service-content.active {
    padding: 2rem 1.5rem;
  }
  
  .service-features {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .services-detailed {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .service-header {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .service-header h3 {
    font-size: 1.25rem;
    text-align: left;
  }
  
  .service-header h3 i {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .service-header i.fa-chevron-down {
    align-self: flex-end;
  }
  
  .service-content.active {
    padding: 1.5rem 1.25rem;
  }
  
  .service-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .service-content ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .service-content ul li::before {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }
  
  .service-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .service-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .service-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-detailed {
    gap: 1rem;
  }
  
  .service-header {
    padding: 1rem;
  }
  
  .service-header h3 {
    font-size: 1.1rem;
  }
  
  .service-header h3 i {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .service-header i.fa-chevron-down {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .service-content.active {
    padding: 1.25rem 1rem;
  }
  
  .service-pricing {
    padding: 1rem;
  }
  
  .service-pricing .price {
    font-size: 1.5rem;
  }
}

/* FAQ Responsive Improvements */
@media (max-width: 1000px) {
  .faq {
    max-width: 100%;
    padding: 1rem;
  }
  
  .faq-intro h3 {
    font-size: 1.8rem;
  }
  
  .faq-intro p {
    font-size: 1rem;
  }
  
  .faq-q {
    padding: 1.5rem 1.75rem;
    font-size: 1rem;
  }
  
  .faq-item.open .faq-a {
    padding: 1.75rem;
  }
  
  .faq-categories {
    gap: 0.75rem;
  }
  
  .faq-category {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .faq-stats {
    gap: 2rem;
  }
  
  .faq-stat .number {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .faq {
    padding: 0.5rem;
  }
  
  .faq-intro {
    margin-bottom: 2rem;
  }
  
  .faq-intro h3 {
    font-size: 1.5rem;
  }
  
  .faq-intro p {
    font-size: 0.95rem;
  }
  
  .faq-q {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .faq-q .question-text {
    padding-right: 0;
  }
  
  .faq-q .faq-icon {
    align-self: flex-end;
  }
  
  .faq-item.open .faq-a {
    padding: 1.5rem;
  }
  
  .faq-a p {
    font-size: 0.95rem;
  }
  
  .faq-search {
    margin-bottom: 2rem;
  }
  
  .faq-search input {
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .faq-search i {
    right: 1.25rem;
    font-size: 1rem;
  }
  
  .faq-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .faq-categories::-webkit-scrollbar {
    height: 4px;
  }
  
  .faq-categories::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 2px;
  }
  
  .faq-categories::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
  }
  
  .faq-stats {
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .faq-stat .number {
    font-size: 1.75rem;
  }
  
  .faq-stat .label {
    font-size: 0.85rem;
  }
  
  .faq-cta {
    padding: 2rem 1.5rem;
  }
  
  .faq-cta h3 {
    font-size: 1.4rem;
  }
  
  .faq-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .faq-cta .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .faq {
    padding: 0.25rem;
  }
  
  .faq-intro h3 {
    font-size: 1.3rem;
  }
  
  .faq-q {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .faq-item.open .faq-a {
    padding: 1.25rem;
  }
  
  .faq-a p {
    font-size: 0.9rem;
  }
  
  .faq-search input {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .faq-category {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .faq-stats {
    gap: 1rem;
  }
  
  .faq-stat .number {
    font-size: 1.5rem;
  }
  
  .faq-cta {
    padding: 1.5rem 1rem;
  }
  
  .faq-cta h3 {
    font-size: 1.2rem;
  }
  
  .faq-cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* Performance and Accessibility Responsive Rules */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .hero-slide,
  .card,
  .service-item,
  .faq-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Optimize touch targets */
  .btn,
  .nav-link,
  .faq-q,
  .submit-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve readability on mobile */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Reduce complex animations on mobile */
  @media (prefers-reduced-motion: no-preference) {
    .hero-overlay,
    .cta-box::before,
    .service-item::before {
      animation-duration: 4s;
    }
  }
}

/* Responsive About & Contact */
@media (max-width: 768px) {
  .about-section,
  .contact-section {
    padding: 50px 15px;
  }
  
  .about-section h2,
  .contact-section h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .about-section p,
  .contact-section .contact-info p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
  }
  
  .contact-form {
    width: 100%;
    padding: 0 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
  
  .contact-form button {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .about-section h2,
  .contact-section h2 {
    font-size: 1.4rem;
  }
  
  .about-section p,
  .contact-section .contact-info p {
    font-size: 0.95rem;
  }
}

/* About Section Responsive */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .about-image {
    margin-top: 20px;
  }
}

/* FAQ Responsive */
@media (max-width: 768px) {
  .faq-section h2 {
    font-size: 1.6rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
}