/* ==========================================================================
   PKCS Theme - Responsive Styles
   Mobile-first approach
   Breakpoints: 1024px (Tablet), 768px (Mobile), 480px (Small Mobile)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

    /* Hero */
    .hero__title {
        font-size: 2.4rem;
    }

    .hero__svg--hex {
        width: 350px;
        height: 350px;
        right: -30px;
    }

    /* Grids: 3-col to 2-col */
    .services-grid,
    .why-choose__grid,
    .blog-preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Industry Focus: 3-col to 2-col */
    .mission-vision__grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Two-column layouts to single column */
    .about-teaser__grid,
    .about-intro__grid,
    .service-detail__grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* About intro image */
    .about-intro__image {
        min-height: 280px;
    }

    .about-intro__image img {
        min-height: 280px;
    }

    /* Footer grid: 2x2 on tablet */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .footer__main {
        padding: 60px 0 36px;
    }

    /* Stats */
    .stats__grid {
        gap: 24px;
    }

    /* Footer newsletter */
    .footer__newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Sections reduce padding */
    .about-intro,
    .founder-section,
    .mission-vision {
        padding: 60px 0;
    }

    /* Founder grid adjust */
    .founder__grid {
        grid-template-columns: 250px 1fr;
        gap: 36px;
    }

    .founder__image {
        width: 250px;
        height: 250px;
    }
}

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

    /* Header: hide desktop nav, show hamburger */
    .header__nav,
    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        background-attachment: scroll;
    }

    .hero__content {
        padding-top: 100px;
    }

    .hero__tagline {
        font-size: 0.7rem;
        letter-spacing: 3px;
        margin-bottom: 14px;
    }

    .hero__title {
        font-size: 1.85rem;
        line-height: 1.25;
        margin-bottom: 18px;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero__buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero vectors - scale down and reposition for mobile */
    .hero__svg--hex {
        width: 280px;
        height: 280px;
        right: -60px;
        top: auto;
        bottom: -20px;
        transform: rotate(15deg);
    }

    .hero__svg--circles {
        width: 150px;
        left: -40px;
        top: 15%;
    }

    .hero__svg--dots {
        width: 120px;
        right: 20px;
        top: 80px;
    }

    .hero__svg--leaf {
        display: none;
    }

    .hero__svg--lines {
        display: none;
    }

    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.75rem;
    }

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

    /* All grids to single column */
    .services-grid,
    .why-choose__grid,
    .blog-preview__grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Industry Focus: single column on mobile */
    .mission-vision__grid--3col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mission/Vision: single column */
    .mission-vision__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Stats */
    .stats__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    /* Inner page header */
    .page-header {
        padding: 110px 0 36px;
    }

    .page-header__title {
        font-size: 1.85rem;
    }

    .page-header__subtitle {
        font-size: 0.95rem;
    }

    /* ---- About Page Mobile ---- */

    /* About intro */
    .about-intro {
        padding: 48px 0;
    }

    .about-intro__grid {
        gap: 32px;
    }

    .about-intro__image {
        min-height: 220px;
        border-radius: 8px;
    }

    .about-intro__image img {
        min-height: 220px;
    }

    .about-intro__content h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .about-intro__content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    /* Industry Focus cards */
    .mv-card {
        padding: 28px 24px;
    }

    .mv-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .mv-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Founder section */
    .founder-section {
        padding: 48px 0;
    }

    .founder__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .founder__image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .founder__content h3 {
        font-size: 1.35rem;
    }

    .founder__title {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .founder__content p {
        font-size: 0.9rem;
        text-align: left;
    }

    .founder__credentials {
        text-align: left;
        margin: 16px 0;
    }

    .founder__credentials li {
        font-size: 0.9rem;
        padding: 6px 0 6px 18px;
    }

    .founder__credentials li::before {
        width: 6px;
        height: 6px;
        top: 14px;
    }

    /* Mission & Vision section */
    .mission-vision {
        padding: 48px 0;
    }

    /* ---- Services Page Mobile ---- */

    .services-detail,
    .services-detail.service-detail--reverse {
        padding: 48px 0;
    }

    .service-detail__grid {
        gap: 24px;
    }

    .service-detail__content h2 {
        font-size: 1.4rem;
    }

    .service-detail__content p {
        font-size: 0.9rem;
    }

    .service-detail__list li {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .service-detail__visual img {
        min-height: 220px;
        border-radius: 8px;
    }

    /* ---- Footer ---- */
    .footer__main {
        padding: 48px 0 32px;
    }

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

    .footer__col {
        text-align: center;
    }

    /* Footer first column - logo, desc, social */
    .footer__col--about {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer__logo {
        display: flex;
        justify-content: center;
    }

    .footer__logo .custom-logo {
        max-height: 36px;
    }

    .footer__desc {
        text-align: center;
        font-size: 0.85rem;
        margin-top: 12px;
        max-width: 320px;
    }

    /* LinkedIn icon - bigger, centered, tap-friendly */
    .footer__social {
        margin-top: 16px;
        justify-content: center;
    }

    .footer__social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        transition: background 0.3s ease, color 0.3s ease;
    }

    .footer__social a:hover {
        background: var(--color-accent);
        color: #fff;
    }

    .footer__social a svg {
        width: 22px;
        height: 22px;
    }

    /* Footer headings */
    .footer__heading {
        margin-bottom: 14px;
        font-size: 0.95rem;
    }

    /* Footer links */
    .footer__links li {
        margin-bottom: 8px;
    }

    .footer__links a {
        font-size: 0.85rem;
    }

    /* Footer contact info centered */
    .footer__contact {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__contact li {
        font-size: 0.85rem;
    }

    .footer__contact a {
        font-size: 0.85rem;
    }

    /* Newsletter bar */
    .footer__newsletter {
        padding: 32px 0;
    }

    .footer__newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer__newsletter h4 {
        font-size: 1rem;
    }

    .footer__newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .footer__newsletter-form input {
        width: 100%;
    }

    /* Bottom bar */
    .footer__bottom {
        padding: 16px 0;
    }

    .footer__bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .footer__bottom p {
        font-size: 0.75rem;
    }

    .footer__bottom a {
        font-size: 0.75rem;
    }

    /* ---- Contact Page ---- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    /* ---- Blog / Post cards ---- */
    .post-card__title {
        font-size: 1.1rem;
    }

    .post-card__excerpt {
        font-size: 0.9rem;
    }

    /* ---- CTA Section ---- */
    .cta-section {
        padding: 48px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    /* ---- Resource cards ---- */
    .resource-card {
        padding: 28px 24px;
    }

    /* 404 */
    .error-404__title {
        font-size: 5rem;
    }
}

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

    /* Hero */
    .hero__title {
        font-size: 1.55rem;
    }

    .hero__tagline {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .hero__subtitle {
        font-size: 0.88rem;
    }

    .hero__svg--hex {
        width: 220px;
        height: 220px;
        right: -80px;
    }

    .hero__svg--dots {
        width: 90px;
        right: 10px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Cards tighter */
    .service-card,
    .pillar-card {
        padding: 28px 20px;
    }

    .mv-card {
        padding: 24px 20px;
    }

    /* About intro image smaller */
    .about-intro__image {
        min-height: 180px;
    }

    .about-intro__image img {
        min-height: 180px;
    }

    .about-intro__content h2 {
        font-size: 1.35rem;
    }

    /* Founder even smaller */
    .founder__image {
        width: 160px;
        height: 160px;
    }

    .founder__content h3 {
        font-size: 1.2rem;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 1.5rem;
    }

    .page-header__title {
        font-size: 1.6rem;
    }

    /* Stats */
    .stat-item__number {
        font-size: 2rem;
    }

    /* Footer newsletter form */
    .footer__newsletter-form {
        flex-direction: column;
    }

    .footer__newsletter-form input {
        width: 100%;
    }

    /* Container tighter */
    .container {
        padding: 0 16px;
    }

    /* Service detail images */
    .service-detail__visual img {
        min-height: 180px;
    }
}
