/* ==========================================================================
   Responsive Styles - Mobile First Approach
   أنماط الاستجابة الشاملة للموبايل - التواجد
   ========================================================================== */

/* ==========================================================================
   Global Mobile Foundations
   ========================================================================== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    inset: 0;
}

/* Prevent iOS zoom on input focus */
@media (max-width: 768px) {

    input.form-control,
    textarea.form-control,
    select.form-control,
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="url"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }

    .btn {
        white-space: normal;
        text-align: center;
    }

    .contact-form-wrapper,
    .quote-form-wrapper {
        padding: var(--space-5);
    }

    .page-hero .breadcrumbs {
        flex-wrap: wrap;
    }

    .about-main__grid {
        gap: var(--space-8);
    }

    .problem-solution-section {
        padding: var(--space-5);
    }

    .home-faq-section .faq-question {
        padding: var(--space-4) var(--space-5);
        font-size: 0.9375rem;
    }

    .home-faq-section .faq-answer-content {
        padding: var(--space-4) var(--space-5);
    }

    .partners-section,
    .agencies-section,
    .sp-section {
        padding: var(--space-10) 0;
    }

    .locations-section {
        padding: var(--space-6) 0 var(--space-4);
    }

    .locations-section__grid-floor {
        width: 100%;
    }

    .footer__main {
        padding: var(--space-10) 0 var(--space-8);
    }

    .map-section iframe {
        height: 280px;
    }

    .mobile-nav__close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-layout,
    .branch-layout {
        gap: var(--space-6);
    }

    .branch-info-card,
    .branch-other-card {
        padding: var(--space-5);
    }
}

@media (max-width: 480px) {
    .sp-marquee-item {
        width: 150px;
        padding: var(--space-2);
    }

    .partner-item {
        min-width: 120px;
        padding: var(--space-4) var(--space-5);
    }

    .quote-highlight-banner {
        padding: var(--space-6) var(--space-4);
    }

    .quote-highlight-banner .banner-text {
        font-size: 1.25rem;
    }

    .page-hero--about .page-hero__content h1 {
        font-size: var(--text-2xl);
    }

    .cta-actions .btn {
        width: 100%;
    }

    .error-search form {
        flex-direction: column;
    }

    .error-search input,
    .error-search button {
        width: 100%;
    }
}

/* ==========================================================================
   Global Responsive Layout — All Pages & Breakpoints
   ========================================================================== */

/* Fluid media & content overflow */
figure,
.wp-block-image,
.wp-block-embed,
.alignwide,
.alignfull {
    max-width: 100%;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-columns {
    flex-wrap: wrap;
}

/* Tablet: 2-column grids */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-premium__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-premium__visual {
        order: -1;
    }

    .about-premium__features {
        grid-template-columns: 1fr;
    }

    .about-premium__mini-stats {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .about-premium__header,
    .about-premium__hero {
        text-align: center;
    }

    .about-premium__content {
        text-align: center;
    }

    .about-premium__feature-card {
        text-align: right;
    }

    .about-premium__cta {
        width: 100%;
        justify-content: center;
    }

    .intro-premium {
        padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 2.5vw, 1.5rem);
    }

    .intro-premium__title {
        max-width: none;
    }

    .project-sidebar {
        position: static;
        top: auto;
    }

    .testimonials-intro {
        text-align: center;
        padding-right: 0;
        border-right: none;
        border-bottom: 4px solid var(--color-accent);
        padding-bottom: var(--space-4);
    }
}

/* Tablet & mobile shared */
@media (max-width: 768px) {
    .page-hero {
        text-align: center;
    }

    .page-hero h1,
    .page-hero h2,
    .page-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .page-hero .breadcrumbs {
        justify-content: center;
    }

    .page-hero::before {
        width: 100%;
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-right: 0;
        max-width: 100%;
    }

    .section-header::before {
        right: 50%;
        transform: translateX(50%);
        top: auto;
        bottom: -0.75rem;
        width: 48px;
        height: 3px;
    }

    .intro-premium {
        padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1rem, 2.5vw, 1.5rem);
    }

    .intro-premium__description {
        font-size: var(--text-base);
    }

    .hero-slide__content .container {
        padding-inline: var(--space-4);
    }

    .hero-slide__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--space-2);
    }

    .hero-slide__actions .btn,
    .hero-slide__cta {
        width: 100%;
        justify-content: center;
    }

    .hero-banners__counter {
        top: var(--space-3);
        left: var(--space-3);
    }

    .stats-section {
        padding: var(--space-12) 0;
    }

    .stat-item {
        padding: var(--space-6) var(--space-4);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .home-testimonials-section {
        padding: var(--space-12) 0;
    }

    .home-testimonials-section .testimonial-card-enhanced--marquee {
        width: 210px;
        padding: var(--space-3);
    }

    .home-testimonials-section .testimonial-avatar {
        width: 36px;
        height: 36px;
    }

    .home-testimonials-section .testimonial-info h3 {
        font-size: 0.8125rem;
    }

    .home-testimonials-section .testimonial-text-content {
        font-size: 0.6875rem;
    }

    .home-testimonials-section .testimonials-marquee__track {
        animation-duration: 28s;
    }

    .locations-map__pin-label {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notification {
        left: var(--space-4) !important;
        right: var(--space-4) !important;
        transform: translateY(-20px) !important;
        max-width: calc(100% - 2rem);
        text-align: center;
    }

    .notification.show {
        transform: translateY(0) !important;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .product-showcase-grid {
        grid-template-columns: 1fr;
    }

    .service-categories-grid,
    .service-categories-grid--home,
    .service-categories-grid--3cols {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .projects-grid--static {
        grid-template-columns: 1fr;
    }

    .projects-grid--static .project-card {
        grid-column: span 1 !important;
    }

    .videos-grid {
        grid-template-columns: 1fr !important;
    }

    .home-videos-section .videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .hero-slide__title {
        font-size: clamp(1.375rem, 6.5vw, 1.75rem);
    }

    .hero-slide__eyebrow-line {
        width: 28px;
    }

    .about-premium__badge--year {
        right: 0.75rem;
        top: 1rem;
    }

    .about-premium__badge--projects {
        left: 0.75rem;
        bottom: 1.25rem;
    }

    .partners-marquee-wrapper {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .agency-card__badge {
        font-size: 0.625rem;
        padding: 0.15rem 0.45rem;
    }

    .contact-grid {
        gap: var(--space-6);
    }

    .contact-form-wrapper {
        padding: var(--space-5);
    }

    .form-row {
        margin-bottom: var(--space-4);
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }

    .pagination .page-numbers {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small phones */
@media (max-width: 390px) {
    .hero-slide__desc {
        font-size: 0.875rem;
    }

    .locations-map__pin-icon {
        width: 22px;
        height: 22px;
    }

    .locations-map__pin-label {
        display: none;
    }

    .locations-map__pin:hover .locations-map__pin-label,
    .locations-map__pin:focus-visible .locations-map__pin-label,
    .locations-map__pin.is-active .locations-map__pin-label {
        display: block;
        position: absolute;
        bottom: calc(100% + 4px);
        max-width: 120px;
    }

    .locations-map__preview {
        width: min(220px, 84vw);
    }

    .locations-map__preview-media {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}

/* ==========================================================================
   Extra Large Devices (1200px and below)
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 var(--space-6);
    }

    /* Products layout adjustment */
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Large Devices (1024px and below)
   ========================================================================== */
@media (max-width: 1024px) {

    /* Typography */
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }

    /* Section padding */
    .section {
        padding: var(--space-16) 0;
    }

    /* Page Hero */
    .page-hero {
        padding: var(--space-16) 0;
    }

    .page-hero h1 {
        font-size: var(--text-3xl);
    }

    .page-hero p {
        font-size: var(--text-lg);
    }

    /* Hero Intro */
    .intro-premium__company {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .intro-premium__title {
        font-size: clamp(1.125rem, 4.5vw, 1.5rem);
    }

    /* Service Cards */
    .service-card__image,
    .main-service-card__image {
        width: 160px;
        height: 160px;
    }

    /* Products sidebar switch to top */
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
    }

    .sidebar-categories {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-categories a {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
    }

    /* Product detail grid */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail__image img {
        height: 350px;
    }

    /* Other categories grid */
    .other-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Medium Devices (768px and below) - Tablets
   ========================================================================== */
@media (max-width: 768px) {

    /* Root Typography adjustments */
    :root {
        --text-xl: 1.1875rem;
        --text-2xl: 1.375rem;
        --text-3xl: 1.625rem;
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
        --text-6xl: 2.75rem;
    }

    /* Container */
    .container {
        padding: 0 var(--space-4);
    }

    /* Section */
    .section {
        padding: var(--space-12) 0;
    }

    /* Section Header */
    .section-header {
        margin-bottom: var(--space-8);
    }

    .section-header__title {
        font-size: var(--text-2xl);
    }

    .section-header__description {
        font-size: var(--text-base);
    }

    /* Page Hero */
    .page-hero {
        padding: var(--space-12) 0;
    }

    .page-hero h1,
    .page-hero h2 {
        font-size: var(--text-2xl);
    }

    .page-hero p {
        font-size: var(--text-base);
    }

    /* Buttons - make them touch-friendly */
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-base);
        min-height: 44px;
    }

    .btn--lg {
        padding: var(--space-4) var(--space-6);
    }

    /* Hero Intro */
    .intro-premium {
        padding-top: clamp(1.25rem, 3vw, 2rem);
        padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
    }

    .intro-premium__company {
        font-size: clamp(1.625rem, 8vw, 2.25rem);
    }

    .intro-premium__title {
        font-size: clamp(1.0625rem, 5vw, 1.375rem);
    }

    .intro-premium__description {
        font-size: var(--text-base);
    }

    /* Agent Card */
    .hero-intro__agent-card {
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-5);
    }

    .agent-card__logo-wrapper {
        height: 80px;
        width: 80px;
        min-width: 80px;
    }

    .agent-card__name {
        font-size: var(--text-lg);
    }

    .category-card__body {
        padding: var(--space-4);
    }

    .category-card__title {
        font-size: var(--text-lg);
    }

    .category-card__description {
        font-size: var(--text-sm);
    }

    /* Service Cards */
    .service-card__image,
    .main-service-card__image {
        width: 140px;
        height: 140px;
    }

    /* Project Cards */
    .project-card__image {
        height: 200px;
    }

    .project-card__body {
        padding: var(--space-4);
    }

    /* News Cards */
    .news-card__image {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .news-card__body {
        padding: var(--space-4);
    }

    .news-card__title {
        font-size: var(--text-base);
    }

    /* About Section */
    .about-premium__company {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .about-premium__tagline {
        max-width: none;
    }

    .about-premium__title {
        font-size: var(--text-2xl);
    }

    .about-premium__lead {
        font-size: var(--text-lg);
    }

    .about-premium__text {
        font-size: var(--text-base);
    }

    /* Stats Section */
    .stat-number {
        font-size: var(--text-3xl);
    }

    .stat-label {
        font-size: var(--text-base);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--space-12) 0;
    }

    .cta-content h2 {
        font-size: var(--text-xl);
    }

    .cta-content p {
        font-size: var(--text-base);
    }

    /* Contact Grid */
    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-card__icon {
        margin: 0 auto;
    }

    /* Quote Form */
    .quote-form-wrapper {
        padding: var(--space-5);
    }

    /* Product Detail */
    .product-detail__image img {
        height: 280px;
    }

    .product-detail__content h2 {
        font-size: var(--text-xl);
    }

    .product-detail__description {
        font-size: var(--text-base);
    }

    /* Product Cards */
    .product-card__image {
        height: 180px;
    }

    .product-card__body {
        padding: var(--space-4);
    }

    /* Single Service/Problem layout */
    .service-main>div,
    .problem-main {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Problems Grid */
    .problem-icon {
        width: 180px;
        height: 180px;
    }

    .problem-title {
        font-size: 1.1rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    /* Vision Mission */
    .vision-mission__item {
        padding: var(--space-6);
    }

    .vision-mission__icon {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   Small Devices (576px and below) - Mobile Phones
   ========================================================================== */
@media (max-width: 576px) {

    /* Typography */
    :root {
        --text-sm: 0.875rem;
        --text-base: 0.9375rem;
        --text-lg: 1.0625rem;
        --text-xl: 1.125rem;
        --text-2xl: 1.3125rem;
        --text-3xl: 1.5rem;
        --text-4xl: 1.625rem;
        --text-5xl: 1.875rem;
    }

    /* Container minimal padding */
    .container {
        padding: 0 var(--space-3);
    }

    /* Section */
    .section {
        padding: var(--space-10) 0;
    }

    /* Section Header */
    .section-header__title {
        font-size: var(--text-xl);
    }

    .section-header__subtitle {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    /* Page Hero */
    .page-hero {
        padding: var(--space-10) 0;
    }

    .page-hero h1 {
        font-size: var(--text-xl);
    }

    .page-hero .breadcrumbs {
        font-size: var(--text-xs);
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Banners */
    .hero-banners__inner {
        min-height: clamp(380px, 70vw, 520px);
    }

    .hero-slide__content {
        align-items: center;
        padding-bottom: 5rem;
    }

    .hero-slide__panel {
        max-width: 100%;
        text-align: center;
    }

    .hero-slider__nav {
        display: none;
    }

    .hero-slider__dots {
        bottom: var(--space-4);
    }

    .hero-slider__dot {
        width: 28px;
        height: 3px;
    }

    .hero-slider__dot.active {
        width: 40px;
    }

    /* Hero Intro */
    .intro-premium {
        padding-top: clamp(1rem, 3vw, 1.5rem);
    }

    .intro-premium__company {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }

    .intro-premium__title {
        font-size: var(--text-base);
    }

    /* Agent Card */
    .hero-intro__agent-card {
        padding: var(--space-4);
        gap: var(--space-4);
    }

    .agent-card__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-4);
    }

    .agent-card__name {
        font-size: var(--text-base);
    }

    .agent-card__logo-wrapper {
        height: 60px;
        width: 60px;
        min-width: 60px;
    }

    .category-card__body {
        padding: var(--space-4);
    }

    .category-card__icon {
        width: 50px;
        height: 50px;
    }

    /* Service Cards */
    .service-card,
    .main-service-card {
        border-radius: var(--radius-xl);
    }

    .service-card__image,
    .main-service-card__image {
        width: 120px;
        height: 120px;
        margin-top: 1rem;
    }

    .main-service-card__body {
        padding: var(--space-4);
    }

    .main-service-card__body h2 {
        font-size: var(--text-lg);
    }

    /* Project Cards */
    .project-card__image {
        height: 180px;
    }

    .project-card__body h3 {
        font-size: var(--text-lg);
    }

    /* News Cards */
    .news-card__image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    /* Partners */
    .partners-grid {
        gap: var(--space-6);
    }

    .partner-item img {
        max-height: 80px;
        max-width: 150px;
    }

    .partner-name {
        font-size: var(--text-sm);
    }

    /* Stats */
    .stats-grid {
        gap: var(--space-4);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .stat-label {
        font-size: var(--text-sm);
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
    }

    /* About Section */
    .about-premium__company {
        font-size: var(--text-2xl);
    }

    .about-premium__tagline {
        font-size: var(--text-lg);
    }

    .about-premium__intro-desc {
        font-size: var(--text-sm);
    }

    .about-premium__logo {
        width: 90px;
        height: 90px;
    }

    .about-premium__title {
        font-size: var(--text-xl);
    }

    .about-premium__lead {
        font-size: var(--text-base);
    }

    .about-premium__feature-text {
        font-size: var(--text-sm);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--space-10) 0;
    }

    .cta-content h2 {
        font-size: var(--text-lg);
    }

    .cta-content p {
        font-size: var(--text-sm);
    }

    .cta-content .btn--white {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-base);
    }

    /* Forms */
    .form-control {
        padding: var(--space-3);
        font-size: var(--text-base);
    }

    .form-label {
        font-size: var(--text-sm);
    }

    /* Product Categories */
    .product-category-card__body {
        padding: var(--space-4);
    }

    .product-category-card__body h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }

    .product-category-card__footer {
        padding-top: var(--space-2);
    }

    /* Products Grid - single column on mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card__image {
        height: 140px;
    }

    .product-card__body {
        padding: var(--space-3);
    }

    .product-card__body h3 {
        font-size: var(--text-sm);
    }

    .product-card__body p {
        font-size: var(--text-xs);
    }

    /* Product Detail */
    .product-detail__image img {
        height: 220px;
    }

    .product-detail__content h2 {
        font-size: var(--text-lg);
    }

    .product-detail__description {
        font-size: var(--text-sm);
    }

    /* Sidebar Categories */
    .sidebar-categories {
        gap: 0.25rem;
    }

    .sidebar-categories a {
        padding: 0.5rem 0.75rem;
        font-size: var(--text-sm);
    }

    /* Service Page Components */
    .services-page .page-hero,
    .service-page .page-hero {
        padding: var(--space-16) 0 var(--space-10);
        min-height: auto;
    }

    .services-page .page-hero__content h1,
    .service-page .page-hero__content h1 {
        font-size: var(--text-xl);
    }

    .services-page .page-hero__content p,
    .service-page .page-hero__content p {
        font-size: var(--text-sm);
    }

    /* Feature List */
    .features-list {
        gap: 0.5rem;
    }

    .features-list li {
        padding: 0.75rem;
        font-size: var(--text-sm);
    }

    /* Why Grid */
    .why-item {
        padding: var(--space-4);
    }

    .why-item h4 {
        font-size: var(--text-base);
    }

    .why-item p {
        font-size: var(--text-xs);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-item,
    .gallery-item img {
        height: 120px;
    }

    /* Problem Page */
    .problem-hero {
        padding: 60px 0 40px;
    }

    .problem-hero h1 {
        font-size: var(--text-xl);
    }

    .problem-icon {
        width: 140px;
        height: 140px;
    }

    .problem-title {
        font-size: var(--text-base);
    }

    .problem-cta {
        padding: var(--space-4);
    }

    .problem-cta__content h4 {
        font-size: var(--text-base);
    }

    .problem-cta__content p {
        font-size: var(--text-sm);
    }

    /* Values Grid */
    .value-card {
        padding: var(--space-4);
    }

    .value-card__icon {
        width: 50px;
        height: 50px;
    }

    /* Vision Mission */
    .vision-mission__item {
        padding: var(--space-5);
    }

    .vision-mission__icon {
        width: 50px;
        height: 50px;
    }

    .vision-mission__item h3 {
        font-size: var(--text-lg);
    }

    /* Other categories */
    .other-categories-grid {
        grid-template-columns: 1fr;
    }

    .other-category-card {
        padding: 1rem 1.25rem;
    }

    /* Product Category Page Hero */
    .category-hero {
        padding: 1.25rem 0 1.75rem;
    }

    .category-hero__title {
        font-size: var(--text-xl);
    }

    .category-hero__desc {
        font-size: var(--text-sm);
    }
}

/* ==========================================================================
   Extra Small Devices (390px and below) - Small Phones
   ========================================================================== */
@media (max-width: 390px) {

    /* Container */
    .container {
        padding: 0 var(--space-2);
    }

    /* Hero Banners */
    .hero-banners__inner {
        min-height: clamp(340px, 65vw, 440px);
    }

    .hero-slide__title {
        font-size: 1.375rem;
    }

    /* Agent Card */
    .hero-intro__agent-card {
        padding: var(--space-3);
    }

    .agent-card__logo-wrapper {
        height: 50px;
        width: 50px;
        min-width: 50px;
    }

    /* Cards - smaller images for tiny screens */
    .service-card__image,
    .main-service-card__image {
        width: 100px;
        height: 100px;
    }

    /* Products Grid - single column for tiny screens */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card__image {
        height: 180px;
    }

    /* Problem icon for tiny screens */
    .problem-icon {
        width: 120px;
        height: 120px;
    }

    /* Stats - single column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        margin-bottom: var(--space-2);
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .card:hover,
    .service-card:hover,
    .project-card:hover,
    .news-card:hover,
    .product-card:hover,
    .testimonial-card:hover,
    .problem-card:hover {
        transform: none;
    }

    /* Make interactive elements larger for touch */
    .btn,
    .nav-menu>li>a,
    .mobile-menu li a {
        min-height: 44px;
    }

    /* Improve tap targets */
    .footer__links a,
    .sidebar-categories a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {

    .site-header,
    .mobile-nav,
    .whatsapp-float,
    .cta-section,
    .site-footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
   Home Page - Full-width card images on mobile
   ========================================================================== */
@media (max-width: 768px) {
    .general-services-section .category-card--general-service .category-card__image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 0 !important;
    }

    .news-section .news-card__image,
    .news-section .news-card__image.placeholder {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 576px) {
    .general-services-section .category-card--general-service .category-card__image {
        aspect-ratio: 4 / 3 !important;
    }

    .news-section .news-card__image,
    .news-section .news-card__image.placeholder {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   Orientation Specific Styles
   ========================================================================== */
@media (max-width: 896px) and (orientation: landscape) {

    /* Reduce hero height in landscape mobile */
    .hero-banners__inner {
        min-height: clamp(280px, 70vh, 400px);
    }

    .page-hero {
        padding: var(--space-8) 0;
    }

    /* Stats in horizontal row */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Safe Area Insets for Notched Devices (iPhone X+)
   ========================================================================== */
@supports (padding: max(0px)) {
    .top-bar .container,
    .site-header .container {
        padding-left: max(var(--space-6), env(safe-area-inset-left));
        padding-right: max(var(--space-6), env(safe-area-inset-right));
    }

    @media (max-width: 768px) {
        .container {
            padding-left: max(var(--space-4), env(safe-area-inset-left));
            padding-right: max(var(--space-4), env(safe-area-inset-right));
        }

        .top-bar .container,
        .site-header .container {
            padding-left: max(var(--space-4), env(safe-area-inset-left));
            padding-right: max(var(--space-4), env(safe-area-inset-right));
        }
    }

    @media (max-width: 576px) {
        .container {
            padding-left: max(var(--space-3), env(safe-area-inset-left));
            padding-right: max(var(--space-3), env(safe-area-inset-right));
        }
    }

    .site-footer {
        padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
    }

    .mobile-nav__content {
        padding-bottom: max(var(--space-4), env(safe-area-inset-bottom));
        padding-top: max(var(--space-4), env(safe-area-inset-top));
    }

    .whatsapp-float {
        left: max(20px, env(safe-area-inset-left) + 10px);
        bottom: max(20px, env(safe-area-inset-bottom) + 10px);
    }
}