/* ========================================
   RINGLAB MEDIA - RESPONSIVE STYLES
   ======================================== */

/* ========================================
   TABLET STYLES (768px - 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding-top: 200px !important;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .about-grid {
        gap: 3rem;
    }

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

    /* Core Values - 2 columns on tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team - 2 columns on tablet */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Events - stay 2 columns */
}

/* ========================================
   MOBILE STYLES (< 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(44, 62, 80, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--color-white);
        font-size: 1.2rem;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
        margin-left: 0;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: var(--color-white);
    }

    /* Hero Section - accounting for 70px logo + 32px padding = 102px navbar height */
    .hero {
        min-height: 100vh;
        padding: 240px 0 4rem !important;
    }

    /* Hide floating elements on mobile */
    .floating-shapes,
    .floating-icons {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .title-line-1 {
        font-size: 2rem;
    }

    .title-line-2 {
        font-size: 2.2rem !important;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle .highlight-item {
        font-size: 2.25rem;
    }

    /* Hero Categories - Remove bullets and stack vertically on mobile */
    .hero-categories {
        flex-direction: column !important;
        gap: 0.75rem !important;
        text-align: center;
    }

    .hero-categories span[style*="font-size:2rem"] {
        display: none !important;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-box {
        padding: 1rem 1.25rem;
        min-width: 90px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Section Spacing */
    section {
        padding: 3rem 0 !important;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
        text-align: left;
    }

    .service-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .service-features {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .feature-bullet {
        font-size: 0.85rem;
    }

    .industries-list {
        gap: 0.5rem;
    }

    .industry-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .industry-tag.primary {
        font-size: 0.9rem;
    }

    /* Statistics Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    /* Offers Section */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .offer-card {
        padding: 1.5rem;
    }

    .offer-details {
        gap: 1rem;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-content .section-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-features {
        gap: 1rem;
    }

    .feature-item {
        gap: 0.75rem;
    }

    .feature-icon {
        width: 25px;
        height: 25px;
        font-size: 0.85rem;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.9rem;
    }

    /* Dual CTA Section */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-benefits li {
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact-info {
        gap: 2rem;
    }

    .contact-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-item h4 {
        font-size: 1.3rem;
    }

    .contact-item > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Core Values Section */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .member-image {
        height: 250px;
    }

    /* Events Section */
    .next-event-card {
        min-height: 350px;
    }

    .next-event-content {
        padding: 2rem;
    }

    .next-event-title {
        font-size: 2rem;
    }

    .next-event-meta {
        gap: 1rem;
    }

    .next-event-description {
        font-size: 1rem;
    }

    .next-event-image-mobile {
        display: block !important;
    }

    .next-event-image-container {
        display: none !important;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 1.5rem;
    }

    .event-header-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .event-image-side {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .event-image-side img {
        height: 200px !important;
        width: 100% !important;
    }

    .event-title {
        font-size: 1.2rem;
    }

    /* FAQ Section */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    /* Chat Widget */
    .chat-window {
        width: 300px;
        max-height: 400px;
    }

    .chat-body {
        max-height: 250px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }
}

/* ========================================
   SMALL MOBILE STYLES (< 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero {
        padding-top: 220px !important;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .title-line-1 {
        font-size: 1.5rem;
    }

    .title-line-2 {
        font-size: 1.7rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-subtitle .highlight-item {
        font-size: 1.875rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .stat-box {
        padding: 0.75rem 1rem;
        min-width: 80px;
        flex: 1;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .nav-menu {
        width: 85%;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Core Values Section */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .value-title {
        font-size: 1.1rem;
    }

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .member-image {
        height: 200px;
    }

    .member-name {
        font-size: 1.3rem;
    }

    /* Events Section */
    .next-event-card {
        min-height: 300px;
    }

    .next-event-content {
        padding: 1.5rem;
    }

    .next-event-title {
        font-size: 1.6rem;
    }

    .next-event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .next-event-description {
        font-size: 0.95rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-card {
        padding: 1.25rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    /* FAQ Section */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    /* Chat Widget */
    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
    }

    .chat-window {
        width: calc(100vw - 2rem);
        right: -1rem;
        max-height: 350px;
    }

    .chat-body {
        max-height: 200px;
        padding: 1rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* ========================================
   HEIGHT-BASED ADJUSTMENTS (only for very small heights)
   ======================================== */
/* Specific fix for 768x858 and similar screens */
@media (min-width: 481px) and (max-width: 768px) and (min-height: 800px) and (max-height: 900px) {
    .hero {
        padding-top: 240px !important;
    }
}

@media (max-width: 480px) and (max-height: 450px) {
    .hero {
        padding-top: 170px !important;
    }
}

@media (max-width: 480px) and (max-height: 350px) {
    .hero {
        padding-top: 150px !important;
    }
}

/* ========================================
   LANDSCAPE MOBILE ADJUSTMENTS
   ======================================== */
@media (max-height: 350px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 130px 0 3rem !important;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-menu {
        padding: 2rem 0;
    }

    .nav-menu .nav-link {
        font-size: 1rem;
    }
}

/* ========================================
   LARGE DESKTOP (> 1440px)
   ======================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .service-card {
        padding: 3rem;
    }

    .stat-number {
        font-size: 4rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .hero-cta,
    .cta-card .btn,
    .contact-buttons {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        page-break-inside: avoid;
    }

    * {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   ACCESSIBILITY - HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }

    .service-card,
    .cta-card {
        border: 2px solid var(--color-dark);
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.5rem;
    }

    .service-card:hover,
    .cta-card:hover,
    .btn:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }
}
