/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 1024px) {

    /* HERO */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-image img {

        height: 400px;

        object-position: center top;
    }

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

    /* TESTIMONIALS */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* ABOUT */
    .about-container {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    /* GENERAL */
    section {
        padding: 100px 0;
    }

    .container {
        width: 90%;
    }

    /* HEADER */
    .header-container {

        flex-direction: column;

        gap: 28px;
    }

    .nav {

        flex-wrap: wrap;

        justify-content: center;

        gap: 18px;
    }

    .logo {
        font-size: 2.2rem;
    }

    /* HERO */
    .hero {
        padding-top: 60px;
    }

    .hero-container {
        gap: 48px;
    }

    .hero-content::before {
        display: none;
    }

    .hero h1 {

        font-size: clamp(3.4rem, 16vw, 5rem);

        line-height: 0.95;
    }

    .hero-description {

        font-size: 1.05rem;

        line-height: 1.8;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }

    .hero-image img {

        height: 520px;

        border-radius: 24px;
    }

    /* PROBLEM */
    .problem-grid {

        grid-template-columns: 1fr;
    }

    .problem-section h2 {

        font-size: clamp(2.3rem, 10vw, 4rem);
    }

    .problem-closing {

        font-size: 1.8rem;
    }

    /* SERVICES */
    .services-grid {

        grid-template-columns: 1fr;
    }

    .service-card {

        min-height: auto;
    }

    /* ABOUT */
    .about-container {

        gap: 56px;
    }

    .about-image img {

        height: 520px;
    }

    /* TESTIMONIALS */
    .testimonial-card {

        min-height: auto;
    }

    .testimonial-text {

        font-size: 1.45rem;
    }

    /* FINAL CTA */
    .final-cta-section {

        padding: 140px 0;
    }

    .final-cta-content h2 {

        line-height: 1;
    }

    .final-cta-content h3 {

        font-size: 2.2rem;
    }

    /* FOOTER */
    .footer-top {

        flex-direction: column;

        gap: 48px;
    }

}


@media (max-width: 480px) {

    /* HEADER */
    .header {
        padding: 24px 0;
    }

    .nav {
        gap: 14px;
    }

    .nav a {
        font-size: 0.9rem;
    }

    /* HERO */
    .hero {

        padding: 40px 0 100px;
    }

    .hero-tag {

        font-size: 0.75rem;
    }

    .hero h1 {

        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    .hero-description {

        font-size: 1rem;
    }

    .hero-image img {

        height: 440px;
    }

    /* TITLES */
    h2 {

        font-size: clamp(2.3rem, 11vw, 4rem);
    }

    h3 {

        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    /* CARDS */
    .service-card,
    .testimonial-card,
    .problem-item {

        padding: 28px;
    }

    /* ABOUT */
    .about-image img {

        height: 440px;
    }

    /* FINAL CTA */
    .final-cta-content p {

        font-size: 1rem;
    }

    /* FOOTER */
    .footer {

        padding-top: 80px;
    }

}

/* ================================
   MOBILE NAVIGATION
================================ */

@media (max-width: 768px) {

    .header {
        padding: 28px 0;
    }

    .header-container {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
    }

    .logo {
        justify-self: center;
        font-size: 2.4rem;
    }

    .header .nav,
    .header-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        justify-self: start;
    }

    .mobile-menu {
        display: flex !important;
        flex-direction: column;
        gap: 24px;

        max-height: 0;
        overflow: hidden;

        padding: 0 5%;
        background-color: var(--bg-main);

        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .mobile-menu a {
        text-decoration: none;
        color: var(--text-main);
        font-size: 1.2rem;
        font-weight: 600;
    }

    .mobile-menu.open {
        max-height: 420px;
        padding: 32px 5% 40px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ================================
   ABOUT MOBILE REFINEMENT
================================ */

@media (max-width: 768px) {

    .about-content {
        max-width: 100%;
    }

    .about-detail-card {
        padding: 26px;
    }

    .about-detail-card h3 {
        font-size: 1.65rem;
    }

}

/* ================================
   NEWSLETTER MOBILE
================================ */

@media (max-width: 768px) {

    .newsletter-section {
        padding: 110px 0;
    }

    .newsletter-container {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .newsletter-form {
        padding: 28px;
    }

}

/* ================================
   THOUGHT LEADERSHIP MOBILE
================================ */

@media (max-width: 768px) {

    .thought-section {
        padding: 110px 0;
    }

    .thought-header {
        margin-bottom: 44px;
    }

    .thought-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .thought-card {
        padding: 30px;
    }

    .thought-card h3 {
        font-size: 1.75rem;
    }

}

/* ================================
   FOOTER MOBILE REFINEMENT
================================ */

@media (max-width: 768px) {

    .footer-top {
        align-items: flex-start;
    }

    .footer-socials {
        justify-content: flex-start;
        gap: 12px;
    }

    .footer-socials a {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 0 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

}

/* ================================
   MOBILE PREMIUM POLISH
================================ */

@media (max-width: 768px) {

    section {
        padding: 88px 0;
    }

    .hero {
        padding: 56px 0 88px;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.6rem);
        line-height: 0.98;
    }

    .hero-description {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 34px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image img,
    .about-image img {
        height: 420px;
        border-radius: 24px;
    }

    .service-card,
    .testimonial-card,
    .thought-card,
    .about-detail-card,
    .newsletter-form {
        border-radius: 24px;
    }

    .testimonial-text {
        font-size: 1.35rem;
        line-height: 1.5;
    }

    .newsletter-form .btn,
    .final-cta-content .btn {
        width: 100%;
    }

}

@media (max-width: 480px) {

    section {
        padding: 76px 0;
    }

    .hero {
        padding: 44px 0 76px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .hero-image img,
    .about-image img {
        height: 360px;
    }

    .problem-closing {
        font-size: 1.55rem;
    }

    .testimonial-text {
        font-size: 1.25rem;
    }

}

/* ================================
   ABOUT IMAGE MOBILE POSITION
================================ */

@media (max-width: 768px) {

    .about-image img {
        object-position: center 28%;
    }

}

@media (max-width: 480px) {

    .about-image img {
        object-position: center 24%;
    }

}