/* ============================================
   Qais Yasir — RESPONSIVE.CSS
   Single authoritative responsive file.
   Load LAST — after style.css and homepage.css
   ============================================ */

/* ============================================
   GLOBAL RESETS
   ============================================ */

html, body {
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Font stacks — work without Google Fonts (local file) */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3,
.section-header h2,
.service-hero h1,
.hero h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ============================================
   FLUID TYPOGRAPHY
   ============================================ */

.hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.2;
}

.service-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

/* ============================================
   BUTTON SYSTEM — complete, consistent
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Primary — gold on navy */
.btn-primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.35);
    color: var(--primary);
}

/* Hero outline — visible on dark hero background */
.btn-hero-outline {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.16);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Dark outline — for use on white/light backgrounds */
.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Block utility */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Sidebar buttons always block */
.sidebar-box .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* Pricing buttons always block */
.pricing-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
}

/* ============================================
   HERO — LAYOUT & IMAGE FRAME
   ============================================ */

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin-top: 18px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-image-wrap {
    position: relative;
    display: inline-block;
}

/* Photo frame */
.profile-photo-frame {
    width: 300px;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(212,175,55,0.35);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.07);
    position: relative;
}

.profile-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Fallback initials when photo missing */
.profile-photo-frame.no-photo::after,
.profile-photo-frame:not(:has(img)):after {
    content: 'QY';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Experience badge — bottom left */
.hero-image-badge {
    position: absolute;
    bottom: -14px;
    left: -18px;
    background: var(--accent);
    color: var(--primary);
    padding: 16px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(212,175,55,0.45);
    z-index: 2;
}

.hero-image-badge .badge-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.hero-image-badge .badge-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-top: 3px;
}

/* GDPR badge — top right */
.hero-image-badge-2 {
    position: absolute;
    top: -14px;
    right: -18px;
    background: white;
    color: var(--primary);
    padding: 12px 14px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    z-index: 2;
    min-width: 80px;
}

.hero-image-badge-2 i {
    font-size: 1.1rem;
    color: var(--primary);
}

/* ============================================
   NAV
   ============================================ */

.nav-links .cta-btn {
    padding: 9px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================
   GRIDS — fluid, no overflow
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Remove scale — causes clipping at mid-widths */
.pricing-card.featured {
    transform: none;
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(212,175,55,0.2);
}
.pricing-card.featured:hover {
    transform: translateY(-5px);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.software-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.software-item {
    flex: 0 1 150px;
    min-width: 120px;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: flex-start;
}

.process-step {
    flex: 1 1 180px;
    max-width: 220px;
    min-width: 140px;
    text-align: center;
    padding: 0 16px;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 28px;
    flex-shrink: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.btn-cta-primary,
.btn-cta-secondary,
.btn-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-cta-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-cta-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-cta-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
}
.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: white;
}

.btn-cta-whatsapp {
    background: #25D366;
    color: white;
}
.btn-cta-whatsapp:hover {
    background: #1fb558;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   FLOATING WHATSAPP — one, fixed, bottom-right
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 3px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
}

.cookie-banner a { color: var(--accent); }

.cookie-accept, .cookie-decline {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    border: none;
    transition: all 0.2s;
}
.cookie-accept { background: var(--accent); color: var(--primary); }
.cookie-accept:hover { background: var(--accent-hover); }
.cookie-decline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
}
.cookie-decline:hover { color: white; border-color: white; }

/* ============================================
   BREAKPOINT: 1024px — tablets landscape
   ============================================ */

@media (max-width: 1024px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.9rem; }
    .nav-links .cta-btn { padding: 8px 14px; font-size: 0.82rem; }

    .hero-content { gap: 40px; }
    .profile-photo-frame { width: 260px; height: 310px; }

    .about-grid,
    .service-detail-grid,
    .contact-grid { grid-template-columns: 1fr; }

    .about-image { position: static; max-width: 280px; margin: 0 auto; }
    .service-sidebar { position: static; }

    .cta-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .cta-text p { margin-left: auto; margin-right: auto; }
    .cta-bullets { align-items: center; }
    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: unset;
    }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================
   BREAKPOINT: 768px — tablets portrait / phones
   ============================================ */

@media (max-width: 768px) {

    /* Nav */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 12px 16px 18px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        gap: 2px;
        z-index: 999;
        border-top: 2px solid var(--accent);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 0.95rem;
        width: 100%;
    }
    .nav-links a:hover { background: var(--bg-alt); }
    .nav-links .cta-btn {
        width: 100%;
        text-align: center;
        margin-top: 6px;
        padding: 12px 20px;
        font-size: 0.95rem;
        display: flex;
        justify-content: center;
    }
    .mobile-menu { display: block; }

    /* Hero */
    .hero { padding: 100px 0 60px; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-image { order: 1; justify-content: center; }
    .hero-text { order: 2; }

    .profile-photo-frame {
        width: 200px;
        height: 240px;
        border-radius: 14px;
    }
    .hero-image-badge {
        left: -10px;
        bottom: -10px;
        padding: 12px 14px;
    }
    .hero-image-badge .badge-number { font-size: 1.4rem; }
    .hero-image-badge-2 {
        right: -10px;
        top: -10px;
        padding: 9px 11px;
        font-size: 0.62rem;
        min-width: 68px;
    }

    .hero-badges { justify-content: center; gap: 10px; }
    .badge { font-size: 0.8rem; padding: 6px 12px; }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-hero-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    .hero-note { justify-content: center; }

    /* Trust bar */
    .trust-content { justify-content: center; gap: 12px; }
    .trust-divider { display: none; }
    .trust-item {
        font-size: 0.82rem;
        flex: 0 1 calc(50% - 10px);
        justify-content: center;
    }

    /* Sections */
    .section { padding: 52px 0; }
    .section-header { margin-bottom: 36px; }

    /* Grids */
    .who-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Process */
    .process-grid { flex-direction: column; align-items: center; }
    .process-connector {
        width: 2px;
        height: 24px;
        padding-top: 0;
        background: linear-gradient(180deg, var(--accent), var(--border));
        margin: 0 auto;
    }
    .process-step { max-width: 100%; width: 100%; padding: 14px 0; }

    /* Software */
    .software-logos { gap: 12px; }
    .software-item {
        flex: 0 1 calc(33% - 10px);
        min-width: 95px;
        padding: 14px 10px;
    }

    /* CTA */
    .cta-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .cta-text h2 { font-size: 1.7rem; }
    .cta-bullets { align-items: center; }
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-cta-whatsapp {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom p { font-size: 0.78rem; }

    /* WhatsApp float — slightly smaller */
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   BREAKPOINT: 480px — small phones
   ============================================ */

@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .hero { padding: 90px 0 50px; }

    .profile-photo-frame {
        width: 165px;
        height: 200px;
        border-radius: 12px;
    }
    .hero-image-badge {
        left: -8px;
        bottom: -8px;
        padding: 10px 12px;
    }
    .hero-image-badge .badge-number { font-size: 1.2rem; }
    .hero-image-badge-2 { display: none; }

    .who-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .software-item {
        flex: 0 1 calc(50% - 8px);
        min-width: 90px;
    }

    .trust-item { flex: 0 1 calc(50% - 8px); font-size: 0.78rem; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links { text-align: center; }
    .footer-links ul { padding: 0; }

    .section-header h2 { font-size: 1.45rem; }
    .service-hero { padding: 95px 0 38px; }
    .pricing-card { padding: 24px 18px; }
    .sidebar-box { padding: 18px; }
    .faq-question { font-size: 0.88rem; }
}

/* ============================================
   BREAKPOINT: 360px — very small phones
   ============================================ */

@media (max-width: 360px) {
    .profile-photo-frame { width: 145px; height: 175px; }
    .badge { font-size: 0.72rem; padding: 5px 10px; }
    .btn { font-size: 0.88rem; padding: 11px 18px; }
    .software-item { padding: 10px 6px; font-size: 0.78rem; }
    .software-item small { font-size: 0.68rem; }
}


/* ============================================
   HERO BADGES — equal width grid
   ============================================ */

.hero-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 440px;
}

.badge-equal {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 16px;
    font-size: 0.83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center badges on mobile */
@media (max-width: 768px) {
    .hero-badges-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 340px;
        margin: 0 auto;
    }
    .badge-equal {
        justify-content: center;
        text-align: center;
        font-size: 0.78rem;
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .hero-badges-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
    }
    .badge-equal {
        justify-content: flex-start;
        font-size: 0.82rem;
    }
}

/* ============================================
   PROFILE PHOTO PLACEHOLDER
   Shows "QY" initials until real photo is added
   ============================================ */

.profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    position: absolute;
    top: 0;
    left: 0;
}

.profile-initials {
    width: 100px;
    height: 100px;
    background: rgba(212,175,55,0.15);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
}

.profile-placeholder-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.6;
}

.profile-placeholder-text code {
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--accent);
}

/* About page photo placeholder */
.about-photo-placeholder {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   DOUBLE WHATSAPP FIX — nuclear option
   Only ONE floating button allowed, always bottom-right
   The CTA section WhatsApp is a normal inline button (not fixed)
   ============================================ */

/* Ensure CTA whatsapp button is NEVER fixed/absolute */
.btn-cta-whatsapp {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    border-radius: 10px !important;
    width: auto !important;
    height: auto !important;
}

/* The ONE true floating button */
a.whatsapp-float {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    z-index: 998 !important;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5) !important;
    text-decoration: none !important;
    transition: transform 0.3s ease !important;
}

a.whatsapp-float:hover {
    transform: scale(1.1) !important;
    color: white !important;
}

@media (max-width: 768px) {
    a.whatsapp-float {
        bottom: 16px !important;
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
}


/* ============================================
   ABOUT PAGE — photo wrap and fallback
   ============================================ */

.about-photo-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: var(--bg-alt);
    min-height: 200px;
}

.about-photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius, 8px);
}

.about-photo-fallback {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: var(--radius, 8px);
    padding: 40px 20px;
}

.about-initials-circle {
    width: 90px;
    height: 90px;
    background: rgba(30, 58, 95, 0.08);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.about-photo-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.7;
}

.about-photo-hint code {
    background: rgba(30,58,95,0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* CTA button wrapper under photo */
.about-cta-wrap {
    margin-top: 20px;
    text-align: center;
}
