/* Responsive Design System - Non-Navigation Styles Only */
/* Navigation styles have been moved to navigation.css */

/* Base responsive utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Override global image sizing for profile pictures and team photos */
.profile-photo-img,
.team-photo-img {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Specific sizing for profile photos in sidebar */
.profile-photo .profile-photo-img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
}

/* Specific sizing for team photos in team cards */
.team-photo .team-photo-img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* Responsive text sizing */
.responsive-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.responsive-text-large {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.responsive-text-medium {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.responsive-text-small {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* Responsive container system */
.responsive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive breakpoints */
@media (max-width: 575.98px) {
    .responsive-text {
        font-size: 0.875rem;
    }

    .responsive-text-large {
        font-size: 1.25rem;
    }

    .responsive-text-medium {
        font-size: 1rem;
    }

    .responsive-text-small {
        font-size: 0.75rem;
    }

    .container {
        padding: 0 0.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .responsive-text {
        font-size: 0.9rem;
    }

    .responsive-text-large {
        font-size: 1.3rem;
    }

    .responsive-text-medium {
        font-size: 1.1rem;
    }

    .responsive-text-small {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .responsive-text {
        font-size: 0.95rem;
    }

    .responsive-text-large {
        font-size: 1.4rem;
    }

    .responsive-text-medium {
        font-size: 1.15rem;
    }

    .responsive-text-small {
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .responsive-text {
        font-size: 0.98rem;
    }

    .responsive-text-large {
        font-size: 1.45rem;
    }

    .responsive-text-medium {
        font-size: 1.2rem;
    }

    .responsive-text-small {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .responsive-text {
        font-size: 1rem;
    }

    .responsive-text-large {
        font-size: 1.5rem;
    }

    .responsive-text-medium {
        font-size: 1.25rem;
    }

    .responsive-text-small {
        font-size: 0.875rem;
    }
}

/* Main navigation - only structural styles */
.main-nav {
    position: relative;
    z-index: 1000;
}

/* Hero section responsiveness */
.hero {
    padding: 3rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Service cards responsiveness */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Responsive breakpoints for content */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row !important;
    }

    .md\:w-1\/2 {
        width: 50% !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row !important;
    }

    .lg\:w-1\/3 {
        width: 33.333333% !important;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem 0.5rem;
    }

    .logo {
        max-width: 180px;
        padding-right: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .faq-container {
        padding: 1rem;
    }

    .category-button {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

/* Tablet Content */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-container {
        padding: 1.5rem;
    }
}

/* Desktop Content */
@media (min-width: 1025px) {
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-container {
        padding: 2rem;
    }
}

/* Responsive styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-button {
        flex: 0 1 calc(50% - 1rem);
        margin: 0.5rem;
    }
}

/* Services page responsiveness */
@media (max-width: 768px) {
    .services-container {
        padding: 1rem;
    }

    .service-detailed {
        margin: 1rem 0;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .service-title h2 {
        font-size: 1.3rem;
    }

    .service-title p {
        font-size: 0.9rem;
    }

    .service-content {
        padding: 1rem;
    }

    .service-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 0.8rem;
    }

    .pricing-table {
        font-size: 0.9rem;
        overflow-x: auto;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem;
    }

    .service-button {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-container {
        padding: 1.5rem;
    }

    .service-header {
        gap: 1.5rem;
    }

    .service-icon {
        width: 100px;
        height: 100px;
    }

    .service-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pricing-table {
        font-size: 0.95rem;
    }
}

@media (min-width: 1025px) {
    .services-container {
        padding: 2rem;
    }

    .service-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Contact page responsiveness */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }

    .contact-form-card {
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-form-card .form-group {
        margin-bottom: 1rem;
    }

    .contact-form-card .form-group input,
    .contact-form-card .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .contact-form-card .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .contact-form-card .form-group i {
        font-size: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .contact-form-card .form-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .contact-page-header {
        padding: 2rem 1rem;
    }

    .contact-page-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-page-header p {
        font-size: 1.1rem;
    }

    .contact-map-container {
        height: 300px;
        margin: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
    }
}

/* Tax updates responsiveness */
@media (max-width: 768px) {
    .tax-updates-section {
        padding: 1rem;
    }

    .update-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .update-banner .banner-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .update-banner .banner-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .update-banner .banner-content p {
        font-size: 1rem;
    }

    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .update-card {
        padding: 1rem;
    }

    .update-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .update-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .update-summary {
        font-size: 0.9rem;
    }

    .update-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .update-summary li {
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }

    .consultation-cta {
        padding: 1.5rem;
        text-align: center;
    }

    .consultation-cta h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .consultation-cta p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .consultation-cta .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Calculator responsiveness */
@media (max-width: 768px) {
    .calculator-section {
        padding: 1rem;
    }

    .calculator-intro {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .calculator-intro .intro-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .calculator-intro .intro-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .calculator-intro .intro-content p {
        font-size: 1rem;
    }

    .calculator-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .calculator-form {
        gap: 1rem;
    }

    .calculator-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .calculator-form .form-group {
        margin-bottom: 1rem;
    }

    .calculator-form label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-hint {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        color: #666;
    }

    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkbox-group input[type="checkbox"] {
        margin-right: 0.5rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    .calculate-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .result-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .result-amount {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .tax-breakdown {
        margin-top: 1rem;
    }

    .breakdown-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .calculator-cta {
        padding: 1.5rem;
        text-align: center;
    }

    .calculator-cta h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .calculator-cta p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Testimonial carousel responsiveness */
.testimonial-carousel {
    padding: 2rem;
}

.contact-form {
    padding: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.footer-content {
    padding: 2rem;
    text-align: center;
}

/* Modal and overlay responsiveness */
.modal {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.overlay {
    padding: 1rem;
}

/* Page header responsiveness */
.page-header {
    position: relative;
    padding: 1.5rem 1rem;
}

.nav-wrapper {
    margin-top: 1rem;
}

/* Mobile menu toggle visibility - handled by navigation.css */

/* Contact container responsiveness */
@media (max-width: 768px) {
    .contact-container {
        padding: 1rem;
    }

    .contact-form-card {
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .contact-form-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-form-card .form-group {
        margin-bottom: 1rem;
    }

    .contact-form-card .form-group input,
    .contact-form-card .form-group textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .contact-form-card .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .contact-form-card .form-group i {
        font-size: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .contact-form-card .form-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .contact-page-header {
        padding: 2rem 1rem;
    }

    .contact-page-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-page-header p {
        font-size: 1.1rem;
    }

    .contact-map-container {
        height: 300px;
        margin: 1rem 0;
        border-radius: 8px;
        overflow: hidden;
    }
}

/* Tax updates responsiveness */
@media (max-width: 768px) {
    .tax-updates-section {
        padding: 1rem;
    }

    .update-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .update-banner .banner-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .update-banner .banner-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .update-banner .banner-content p {
        font-size: 1rem;
    }

    .updates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .update-card {
        padding: 1rem;
    }

    .update-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .update-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .update-summary {
        font-size: 0.9rem;
    }

    .update-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .update-summary li {
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
    }

    .consultation-cta {
        padding: 1.5rem;
        text-align: center;
    }

    .consultation-cta h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .consultation-cta p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .consultation-cta .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Calculator responsiveness */
@media (max-width: 768px) {
    .calculator-section {
        padding: 1rem;
    }

    .calculator-intro {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .calculator-intro .intro-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .calculator-intro .intro-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .calculator-intro .intro-content p {
        font-size: 1rem;
    }

    .calculator-container {
        padding: 1rem;
        border-radius: 8px;
    }

    .calculator-form {
        gap: 1rem;
    }

    .calculator-form h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .calculator-form .form-group {
        margin-bottom: 1rem;
    }

    .calculator-form label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-hint {
        font-size: 0.8rem;
        margin-top: 0.25rem;
        color: #666;
    }

    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .checkbox-group input[type="checkbox"] {
        margin-right: 0.5rem;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }

    .calculate-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .result-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }

    .result-amount {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .tax-breakdown {
        margin-top: 1rem;
    }

    .breakdown-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .calculator-cta {
        padding: 1.5rem;
        text-align: center;
    }

    .calculator-cta h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .calculator-cta p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }
}