/* =====================================================
   RESPONSIVE MEDIA QUERIES
   ===================================================== */

/* ---------- Extra Large Desktop (≤1440px) ---------- */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .process-steps {
        max-width: 1200px;
    }
    
}

/* ---------- Large Desktop (≤1366px) ---------- */
@media (max-width: 1366px) {
    .features-grid {
        gap: 60px;
    }

    .hero-grid {
        gap: 50px;
    }
}

/* ---------- Large Tablets & Small Laptops (≤1200px) ---------- */
@media (max-width: 1200px) {

    .container,
    .cre-container,
    .footer-container {
        max-width: 100%;
    }

    .hero-grid,
    .about-grid,
    .features-grid,
    .cre-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-image-wrap img {
        height: 300px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 60px;
    }

    .process-line {
        display: none;
    }
}

/* ---------- Medium Desktop (≤1024px) ---------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .nav-links {
        gap: 20px;
        font-size: 13px;
    }

    .about-content h2,
    .why-title h2,
    .plans-title h2,
    .benefits-title h2 {
        font-size: 40px;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Tablets (≤992px) ---------- */
@media (max-width: 992px) {

    /* Header */
    .main-nav {
        justify-content: flex-end;
        position: relative;
        overflow: visible;
    }

    .menu-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
        margin-right: 16px;
    }


    .nav .btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* Hero */
    .hero {
        padding: 90px 0 120px;
        text-align: center;
    }

    .hero-content {
        margin: auto;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 44px;
        line-height: 1.2;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        min-width: 160px;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Sections */
    section {
        padding: 70px 0;
    }

    /* Better section spacing for mobile */
    .about-section,
    .why-section,
    .plans-section,
    .benefits-section,
    .process-section,
    .features-section,
    .faq-section,
    .cre-exact,
    .gold-cta-section {
        padding: 60px 0;
    }

    .about-content h2,
    .why-title h2,
    .plans-title h2,
    .benefits-title h2,
    .features-left h2 {
        font-size: 36px;
    }

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

    /* Enhanced grid spacing */
    .stat-box {
        padding: 18px;
    }

    .about-stats {
        gap: 16px;
    }

    .plan-summary {
        padding: 14px;
        gap: 10px;
        font-size: 12px;
    }

    .plan-features {
        margin-bottom: 24px;
    }

    .plan-features li {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 16px 30px;
    }

    .features-right {
        margin-top: 40px;
    }

    .feature-row {
        gap: 20px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ---------- Mobiles (≤768px) ---------- */
@media (max-width: 768px) {

    body {
        font-size: 15px;
        line-height: 1.7;
    }

    .container {
        padding: 0 20px;
    }

    /* Header */
    .nav {
        height: auto;
        padding: 16px 0;
        justify-content: space-between;
        position: relative;
    }

    .logo {
        min-width: auto;
        margin-left: 20px;
        order: 2;
    }

    .main-nav {
        order: 3;
    }

    .logo img {
        height: 44px;
    }


    /* Hero */
    .hero {
        padding: 70px 0 90px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .hero-desc {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-actions {
        margin-top: 28px;
        gap: 14px;
    }

    .hero-features {
        margin-top: 32px;
        gap: 18px;
        font-size: 13px;
    }

    .hero-image-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 30px auto 0;
        max-width: 100%;
    }

    .hero-image-wrap img {
        height: 240px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Prevent image overflow */
    .hero-image-wrap,
    .about-card-header,
    .logo-wrap {
        overflow: hidden;
        text-align: center;
    }

    /* Better text wrapping */
    .hero-content,
    .about-content,
    .features-left {
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Section Titles */
    .about-content h2,
    .why-title h2,
    .plans-title h2,
    .benefits-title h2,
    .features-left h2,
    .faq-title,
    .cre-left h2,
    .gold-cta-card h2 {
        font-size: 32px;
        line-height: 1.25;
    }

    .process-header h2 {
        font-size: 36px;
    }

    /* Enhanced process section for mobile */
    .process-section {
        padding: 80px 0;
    }

    .process-header {
        margin-bottom: 60px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 60px;
        max-width: 400px;
    }

    .process-line {
        display: none;
    }

    /* Cards & Grids */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cre-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured {
        transform: none;
        margin: 20px 0;
    }

    .about-grid,
    .features-grid {
        gap: 40px;
    }

    .cre-container {
        gap: 40px;
    }

    .step {
        width: 100%;
        max-width: 350px;
        border-radius: 20px;
        transition: transform 0.3s ease;
    }

    .icon-circle {
        width: 100px;
        height: 100px;
        margin: 0 auto 30px;
    }

    .step-no {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: -8px;
        right: -8px;
    }

    .step h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .step p {
        font-size: 15px;
        max-width: 280px;
    }

    .process-steps {
        gap: 40px;
    }

    /* CTA */
    .gold-cta-card {
        padding: 50px 25px;
        margin: 0 10px;
    }

    .gold-cta-card h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 15px;
    }

    .features,
    .cta-buttons,
    .contact {
        flex-direction: column;
        gap: 16px;
    }

    /* Enhanced button responsiveness */
    .btn {
        min-width: 180px;
        padding: 16px 24px;
        font-size: 15px;
        white-space: nowrap;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        min-width: 140px;
        flex: 1;
        max-width: 200px;
    }

    .plan-btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 160px;
    }

    .cta-btn,
    .cre-btn {
        padding: 14px 26px;
        min-width: 150px;
    }

    /* FAQ */
    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px;
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 18px;
    }
}

/* ---------- Small Mobiles (≤480px) ---------- */
@media (max-width: 480px) {

    /* Global spacing improvements */
    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Better section spacing */
    .about-section,
    .why-section,
    .plans-section,
    .benefits-section,
    .process-section,
    .features-section,
    .faq-section,
    .cre-exact,
    .gold-cta-section {
        padding: 45px 0;
    }

    h1,
    h2 {
        line-height: 1.2;
    }

    /* Header */
    .nav {
        padding: 12px 0;
        justify-content: space-between;
    }

    .logo {
        margin-left: 16px;
        order: 2;
    }

    .logo img {
        height: 40px;
    }

    .logo strong {
        font-size: 15px;
    }

    .logo small {
        font-size: 11px;
    }

    .main-nav {
        order: 3;
    }

    .menu-toggle {
        margin-right: 16px;
    }

    /* Hero */
    .hero {
        padding: 70px 0 90px;
    }

    .hero h1 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-image-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 25px auto;
        max-width: 100%;
    }

    .hero-image-wrap img {
        height: 200px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Enhanced overflow prevention */
    .container {
        overflow-x: hidden;
    }

    /* Better responsive tables/content */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .plan-summary {
        overflow-x: auto;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Section Titles */
    .about-content h2,
    .why-title h2,
    .plans-title h2,
    .benefits-title h2,
    .features-left h2,
    .faq-title,
    .cre-left h2 {
        font-size: 28px;
    }

    .gold-cta-card h2 {
        font-size: 26px;
    }

    .process-header h2 {
        font-size: 32px;
    }

    /* About / Cards */
    .about-card {
        padding: 24px;
    }

    .plan-card {
        padding: 24px 18px;
    }

    .benefit-card,
    .why-card {
        padding: 18px;
    }

    .feature-box {
        padding: 20px;
    }

    .cre-card {
        padding: 18px;
    }

    .cre-right {
        padding: 24px;
    }

    .plan-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .benefit-card .icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* Small mobile process improvements */
    .process-section {
        padding: 60px 0;
    }

    .process-header {
        margin-bottom: 50px;
    }

    .process-steps {
        gap: 50px;
    }

    /* Process */
    .icon-circle {
        width: 90px;
        height: 90px;
        margin: 0 auto 25px;
    }

    .icon-circle svg {
        width: 30px;
        height: 30px;
    }

    .step-no {
        width: 32px;
        height: 32px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }

    .step h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 14px;
        max-width: 250px;
    }

    .step {
        max-width: 280px;
    }

    /* CTA */
    .gold-cta-card {
        padding: 40px 20px;
        margin: 0 5px;
    }

    /* Small mobile button improvements */
    .btn {
        font-size: 14px;
        min-width: 140px;
        padding: 14px 18px;
        box-sizing: border-box;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn,
    .hero-actions .btn-outline {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .plan-btn {
        font-size: 13px;
        padding: 12px 16px;
        min-width: 120px;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-buttons .btn {
        flex: 1;
        min-width: 100px;
        font-size: 13px;
    }

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

    .logo-wrap {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
        font-size: 13px;
    }

    .bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .bottom-links a {
        margin: 0;
    }

    .site-footer {
        padding: 50px 20px 0;
    }

    /* Enhanced mobile spacing */
    .why-title,
    .plans-title,
    .benefits-title,
    .faq-title {
        margin-bottom: 40px;
    }

    .about-grid,
    .features-grid,
    .cre-container {
        gap: 30px;
    }

    /* Better mobile margins */
    .hero-content,
    .about-content,
    .features-left {
        margin-bottom: 20px;
    }

    .footer-bottom {
        padding: 20px;
        font-size: 13px;
    }
}

/* =====================================================
   HEADER – MOBILE CTA VISIBILITY FIX
   ===================================================== */

/* Desktop (default) */
.nav-cta {
    margin-left: 40px;
}

/* Tablet & Mobile Navigation Fix */
@media (max-width: 992px) {

    /* Header layout */
    .nav {
        position: relative;
    }

    /* Show hamburger */
    .menu-toggle {
        display: flex;
        z-index: 1002;
        padding: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(15, 42, 82, 0.1);
    }

    /* HIDE CTA from header row */
    .nav>.nav-cta {
        display: none;
    }

    /* Mobile menu - Enhanced */
    .nav-links {
        position: fixed;
        top: 75px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 320px;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 18px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-top: none;
        display: none;
        z-index: 9999;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .nav-links li a:hover {
        background: #f8f9fa;
        color: var(--blue);
    }

    /* CTA INSIDE menu - Enhanced */
    .nav-links .nav-cta {
        display: block;
        margin-top: 20px;
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        border-radius: 16px;
        font-weight: 600;
        background: linear-gradient(135deg, var(--gold), var(--gold-soft));
        color: #000;
        border: none;
        transition: transform 0.3s ease;
    }

    .nav-links .nav-cta:hover {
        transform: translateY(-2px);
    }

    /* Enhanced mobile menu backdrop */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(181 181 181 / 30%);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }

    .voucher-wrapper {
        grid-template-columns: 1fr;
    }

    .voucher-right {
        grid-template-columns: 1fr 1fr;
    }

    .voucher-card.wide {
        grid-column: span 2;
    }
}




@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Small Mobile Navigation */
@media (max-width: 480px) {
    .nav-links {
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 9999;
    }

    .nav-links li a {
        padding: 14px 16px;
        font-size: 15px;
    }

    .nav-links .nav-cta {
        margin-top: 16px;
        padding: 14px 20px;
    }
}


/* Additional responsive improvements */

/* Fix container overflow on very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .gold-cta-card {
        padding: 30px 15px;
    }

    .gold-cta-card h2 {
        font-size: 24px;
    }

    .btn {
        font-size: 13px;
        padding: 12px 16px;
    }

    .nav-links {
        padding: 16px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-image-wrap img {
        height: 200px;
    }

    section {
        padding: 60px 0;
    }
}

/* Large screen improvements */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .about-content h2,
    .why-title h2,
    .plans-title h2,
    .benefits-title h2,
    .features-left h2,
    .faq-title,
    .cre-left h2 {
        font-size: 48px;
    }

    .process-header h2 {
        font-size: 58px;
    }
}

/* Animation */
@keyframes slideMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility classes for responsive design */
.text-center-mobile {
    @media (max-width: 768px) {
        text-align: center;
    }
}

.hidden-mobile {
    @media (max-width: 768px) {
        display: none;
    }
}

.visible-mobile {
    display: none;

    @media (max-width: 768px) {
        display: block;
    }
}

/* Fix for touch devices */
@media (hover: none) and (pointer: coarse) {

    .why-card:hover,
    .benefit-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

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

/* Print styles */
@media print {

    .menu-toggle,
    .nav-links,
    .hero-actions,
    .cta-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .voucher-right {
        grid-template-columns: 1fr;
    }

    .voucher-card.wide {
        grid-column: span 1;
    }

    .voucher-left h2 {
        font-size: 30px;
    }
}
@media (min-width: 1200px) {
    .faq-question {
        font-size: 20px;
    }
}