/*
    Kitty Kissed Photography
    Mobile polish / rescue layer

    Loaded after the main theme CSS so phones get a clean, usable layout
    without Nicole needing to redesign everything from scratch.
*/

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.navbar {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.25),
        0 2px 18px rgba(247, 180, 210, 0.08);
}

.contact-method,
.client-card,
.portfolio-card,
.service-card,
.fact,
.proof-card,
.client-session-card {
    overflow-wrap: anywhere;
}

.contact-method a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
        gap: 18px;
        padding: 18px 5%;
        text-align: center;
    }

    .logo img {
        max-width: min(220px, 78vw);
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .nav-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 10px 13px;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    section,
    .client-panel,
    .client-dashboard-hero,
    .client-gallery-hero,
    .client-soft-note {
        width: min(94%, 1100px);
        border-radius: 22px;
    }

    .hero {
        min-height: auto;
        padding: 60px 6%;
    }

    .hero h1,
    .about-hero h1,
    .portfolio-hero h1,
    .services-hero h1,
    .contact-hero h1,
    .client-hero h1,
    .client-dashboard-hero h1,
    .client-gallery-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3rem);
        line-height: 1.05;
    }

    .hero p,
    .about-hero p,
    .portfolio-hero p,
    .services-hero p,
    .contact-hero p,
    .client-hero p,
    .client-dashboard-hero p,
    .client-gallery-hero p {
        font-size: 1rem;
    }

    .hero-buttons,
    .gallery-actions,
    .client-panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary,
    .gallery-actions .btn-primary,
    .gallery-actions .btn-secondary,
    .client-panel-header .btn-secondary {
        display: block;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .about-preview,
    .about-card,
    .portfolio-note,
    .pricing-note,
    .contact-cta,
    .client-coming-soon,
    .client-soft-note {
        padding: 48px 7%;
    }

    .about-hero,
    .portfolio-hero,
    .services-hero,
    .contact-hero,
    .client-hero,
    .client-dashboard-hero,
    .client-gallery-hero {
        padding: 56px 7%;
    }

    .contact-options,
    .portfolio-grid,
    .services-grid,
    .client-access-grid,
    .facts-grid,
    .client-session-grid,
    .proof-grid {
        grid-template-columns: 1fr;
        padding: 34px 0;
    }

    .contact-options {
        display: grid;
    }

    .contact-method {
        width: 100%;
    }

    .portfolio-grid,
    .services-grid,
    .client-access-grid,
    .client-session-grid,
    .proof-grid {
        gap: 18px;
    }
}

@media (max-width: 520px) {
    .navbar {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo img {
        max-width: min(190px, 72vw);
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .nav-links li {
        min-width: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.72rem;
    }

    .client-login {
        grid-column: 1 / -1;
    }

    .hero {
        padding: 46px 5%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        margin: 8px auto;
        text-align: center;
    }

    .about-card,
    .portfolio-card,
    .service-card,
    .contact-method,
    .client-card,
    .client-session-card {
        padding: 28px 20px;
    }

    .portfolio-placeholder,
    .proof-placeholder {
        min-height: 170px;
        height: 170px;
    }

    .client-status-strip {
        grid-template-columns: 1fr;
        width: min(94%, 1000px);
    }

    .client-gallery-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .client-gallery-toolbar span {
        justify-content: center;
    }
}
