/* ================================
   PENSION STUDIO - RESPONSIVE CSS
   ================================ */

/* ================================
   LARGE DESKTOP (1400px and up)
   ================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* ================================
   DESKTOP (1200px to 1399px)
   ================================ */
@media (max-width: 1399px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
    
    .col-lg-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ================================
   TABLET LANDSCAPE (992px to 1199px)
   ================================ */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .service-card.featured {
        transform: scale(1.02);
    }
}

/* ================================
   TABLET PORTRAIT (768px to 991px)
   ================================ */
@media (max-width: 991px) {
    /* Typography */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.3rem; }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .hero-image img {
        max-width: 80%;
        transform: rotate(0deg);
    }
    
    /* Navigation */
    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-light);
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem !important;
        border-radius: var(--radius-small);
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--light-teal);
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .page-section {
        padding: 60px 0;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Cards */
    .service-card.featured, .price-card.featured {
        transform: scale(1);
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 200px;
    }
    
    /* Disable animations for better performance */
    .shape-1, .shape-2 {
        display: none;
    }
}

/* ================================
   MOBILE LANDSCAPE (576px to 767px)
   ================================ */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 90%;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .page-section {
        padding: 50px 0;
    }
    
    /* Cards */
    .about-feature, .service-card, .feature-item, .price-card, 
    .team-member, .review-card, .coreinfo-item, .blog-card, .page-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.8rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 180px;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Reviews Swiper */
    .reviews-swiper {
        padding: 1rem 0;
    }
    
    .review-card {
        min-height: 150px;
        padding: 1.5rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: 1rem;
    }
}

/* ================================
   MOBILE PORTRAIT (575px and below)
   ================================ */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    body {
overflow-x: hidden;
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .breadcrumb-section {
        padding: 100px 0 15px;
    }
    
    .breadcrumb-image {
        height: 40px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .page-section {
        padding: 40px 0;
    }
    
    /* Cards */
    .about-feature, .service-card, .feature-item, .price-card, 
    .team-member, .review-card, .coreinfo-item, .blog-card, .page-item {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .service-image, .blog-image, .page-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Team */
    .team-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
        border-width: 3px;
    }
    
    /* Price */
    .service-price, .price {
        font-size: 1.3rem;
    }
    
    /* Form */
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-control {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 150px;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer h4, .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Reviews */
    .review-card {
        min-height: 120px;
        padding: 1.2rem;
    }
    
    /* FAQ */
    .accordion-button {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Services Grid - Stack on mobile */
    .services-section .row.g-4 > div {
        margin-bottom: 1.5rem;
    }
    
    /* Blog Grid */
    .blog-section .row.g-4 > div {
        margin-bottom: 1.5rem;
    }
}

/* ================================
   EXTRA SMALL MOBILE (400px and below)
   ================================ */
@media (max-width: 400px) {
    /* Typography */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    body {
overflow-x: hidden;
        font-size: 13px;
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Cards */
    .about-feature, .service-card, .feature-item, .price-card, 
    .team-member, .review-card, .coreinfo-item, .blog-card, .page-item {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    /* Form */
    .contact-form {
        padding: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 120px;
    }
    
    /* Team */
    .team-image {
        width: 80px;
        height: 80px;
    }
}

/* ================================
   HIGH DPI DISPLAYS
   ================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance shadows and borders for retina displays */
    .service-card, .price-card, .team-member, .review-card, 
    .coreinfo-item, .blog-card, .page-item {
        border-width: 0.5px;
    }
    
    .navbar {
        border-bottom: 0.5px solid rgba(46, 89, 132, 0.1);
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .navbar, .breadcrumb-section, .hero-shapes, 
    .footer, .btn-primary, .swiper-pagination {
        display: none !important;
    }
    
    .hero-section, section {
        padding: 20px 0 !important;
        background: white !important;
    }
    
    .service-card, .price-card, .team-member, 
    .review-card, .coreinfo-item, .blog-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* ================================
   ACCESSIBILITY & PERFORMANCE
   ================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-image img {
        transform: none !important;
    }
    
    .hero-image img:hover {
        transform: none !important;
    }
    
    .shape-1, .shape-2 {
        display: none !important;
    }
    
    .swiper {
        /* Disable autoplay if motion is reduced */
        --swiper-autoplay-delay: 999999ms;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card, .price-card, .team-member, 
    .review-card, .coreinfo-item, .blog-card {
        border: 2px solid;
    }
    
    .btn-primary {
        border: 2px solid;
    }
    
    .navbar-nav .nav-link::after {
        height: 3px;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    /* Note: This is prepared for future dark mode implementation */
    /* Currently maintaining light theme as per requirements */
}

/* ================================
   SWIPER RESPONSIVE OVERRIDES
   ================================ */

/* Mobile Swiper adjustments */
@media (max-width: 767px) {
    .swiper {
        padding-bottom: 40px;
    }
    
    .swiper-pagination {
        bottom: 0;
    }
    
    .swiper-slide {
        padding: 0 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover, .price-card:hover, .team-member:hover, 
    .blog-card:hover, .page-item:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .gallery-image:hover {
        transform: none;
        filter: none;
    }
    
    .hero-image img:hover {
        transform: rotate(2deg);
    }
    
    .btn-primary:hover {
        transform: none;
    }
} 