/**
 * AHC Healthcare Template - Responsive Styles
 * Using only max-width media queries for mobile-first responsiveness
 * Version: 1.0.0
 */

/* ============================================
   Tablet and Below (max-width: 1250px)
   ============================================ */

@media (max-width: 1250px) {
/*Inner pages*/
#address {
	width: 100%;
    }

#map iframe {
    height: 590px;
    }
}

@media (max-width: 1080px) {
/*Rate Us*/

.inner-wrap {
    padding: 30px 2% 60px;
    }

.inner-wrap h2 {
    font-size: 32px;
    }

.google-review img {
    width: 300px !important;
    }

/*Rate Us -- END*/

}

@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 15px;
    }

    .header-inner {
        padding: 12px 0;
    }

    .logo img {
        height: 50px;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .content-wrapper.has-both-sidebars {
        grid-template-columns: 1fr 250px;
    }

    .sidebar-left {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .hero-form-overlay {
        position: static;
        transform: none;
        margin: 20px auto;
        max-width: 500px;
    }
}

/* ============================================
   Mobile Landscape (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    html {
        font-size: 15px;
    }

    .header-inner {
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .logo-wrapper {
        order: 1;
    }

    .search-wrapper {
        order: 2;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .header-contact {
        order: 2;
    }

    .header-phone a {
        font-size: 1rem;
    }

    /* Mobile Navigation */
    .main-navigation {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .main-navigation.active {
        max-height: 1000px;
    }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 10px 0;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation a {
        padding: 15px 10px;
    }

    .main-navigation li ul {
        position: static;
        width: 100%;
        box-shadow: none;
        background: var(--bg-light);
        display: none;
    }

    .main-navigation li.open > ul {
        display: flex;
    }

    .main-navigation li ul a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Sections */
    .features-section,
    .services-section,
    .about-section,
    .testimonials-section,
    .insurance-section,
    .contact-info-section {
        padding: 50px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 30px 20px;
    }

    /* Content Layout */
    .content-wrapper.has-sidebar,
    .content-wrapper.has-both-sidebars {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 30px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-widgets {
        padding: 40px 0 30px;
    }

    /* Hero Form */
    .hero-form-overlay {
        padding: 20px;
    }
}

@media (max-width: 767px) {

.rabutton {
    max-width: 250px;
    bottom: 15px;
	left: 20px;
    }

.rabutton .buttonrs {
    min-width: 250px;
    font-size: 15px;
    }

.rabutton .buttonrs::before {
    min-width: calc(234px + 16px);
    min-height: calc(36px + 9px);
    }

/*Inner pages*/
.inner-pages .page-header h2 {
	font-size: 28px;
    }

#one {
	float: none;
	width: 100%;
	padding-right: 0;
    }

#two {
	float: none;
	width: 100%;
	margin-bottom: 20px;
    }

#map iframe {
    height: 450px;
    }
}

@media (max-width: 550px) {
/* Testimonial Page*/
.testimonial-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
	padding: 0 10px 15px;
	}

.testimonial-container .headline {
	margin: 15px 0;
	}

.testimonial-container .star {
	margin: 0 auto;
	}

.testimonial-container p {
	margin: 15px auto 0;
	}
}

/* ============================================
   Mobile Portrait (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .logo img {
        height: 40px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .header-phone a {
        font-size: 0.9rem;
    }

    .icon-phone::before {
        font-size: 0.875rem;
    }

    /* Sections */
    .features-section,
    .services-section,
    .about-section,
    .testimonials-section,
    .insurance-section,
    .contact-info-section {
        padding: 40px 0;
    }

    .feature-item {
        padding: 25px 15px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-widgets {
        padding: 30px 0 20px;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .copyright {
        padding: 15px 0;
        font-size: 0.875rem;
    }

    /* Hero Form */
    .hero-form-overlay {
        padding: 15px;
        max-width: 100%;
    }
}

/* ============================================
   Small Mobile (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .header-inner {
        gap: 10px;
    }

    .logo img {
        height: 35px;
    }

    .header-phone a {
        font-size: 0.85rem;
    }

    .main-navigation a {
        padding: 12px 10px;
    }

    .feature-item {
        padding: 20px 10px;
    }

    .btn {
        padding: 8px 16px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .top-bar,
    .site-footer,
    .sidebar,
    .breadcrumbs-section {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    .content-wrapper {
        grid-template-columns: 1fr !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }
}

/* ============================================
   Accessibility Improvements
   ============================================ */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    border: 1px solid var(--border-color);
    /*outline-offset: 2px;*/
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0052a3;
        --text-color: #000000;
        --border-color: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #646363;
        --text-light: #b0b0b0;
        /*--bg-light: #1a1a1a;*/
        --bg-light: #e5e5e5;
        /*--bg-white: #121212;*/
        --bg-white: #ffffff;
        --border-color: #333333;
    }

    .site-header {
        background: var(--bg-white);
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    }

    .feature-item {
        /*background: #1e1e1e; */
    }

    .sidebar {
        /*background: #1e1e1e; */
    }
}
