/* ==========================================================
   HOMIE DESIGN SYSTEM
   RESPONSIVE.CSS
   Version: 1.0
========================================================== */


/* ==========================================================
   LARGE DESKTOP
   ต่ำกว่า 1400px
========================================================== */

@media (max-width: 1399.98px) {

    :root {
        --container: 1140px;
        --hero-height: 680px;
    }

    .hero-title-small {
        font-size: 96px;
    }

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

    .hero-cards {
        max-width: 410px;
        padding-left: 20px;
    }
}


/* ==========================================================
   NOTEBOOK
   ต่ำกว่า 1200px
========================================================== */

@media (max-width: 1199.98px) {

    :root {
        --container: 960px;
        --section-padding: 88px;
        --hero-height: 640px;
    }

    .homie-navbar .nav-link {
        margin: 0 4px;
        font-size: 13px;
    }

    .quote-button {
        padding: 0 18px;
        font-size: 13px;
    }

    .hero-content {
        max-width: 650px;
    }

    .hero-title-small {
        font-size: 82px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-description {
        max-width: 570px;
    }

    .hero-cards {
        max-width: 385px;
        padding-left: 8px;
    }

    .hero-card h5 {
        font-size: 14px;
    }

    .hero-card p {
        font-size: 11px;
    }

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

    .portfolio-grid,
    .news-grid {
        gap: 20px;
    }

    .about-visual {
        padding-right: 20px;
    }
}


/* ==========================================================
   TABLET / SMALL NOTEBOOK
   ต่ำกว่า 992px
========================================================== */

@media (max-width: 991.98px) {

    :root {
        --container: 720px;
        --section-padding: 76px;
        --navbar-height: 76px;
        --hero-height: auto;
    }

    .container-custom {
        width: min(100% - 32px, var(--container));
    }


    /* Top Bar */

    .top-bar__location {
        display: none;
    }


    /* Navbar */

    .homie-navbar {
        min-height: 76px;
        padding: 11px 0;
    }

    .homie-brand__mark {
        font-size: 28px;
    }

    .homie-brand__house {
        width: 31px;
        height: 31px;
        font-size: 16px;
    }

    .homie-brand__sub {
        font-size: 8px;
    }

    .homie-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 16px 18px 20px;
        border: 1px solid rgba(0, 30, 55, 0.08);
        border-radius: var(--radius-md);
        background: var(--background);
        box-shadow: var(--shadow-lg);
    }

    .homie-navbar .nav-link {
        margin: 0;
        padding: 11px 0;
        font-size: var(--font-size-sm);
    }

    .homie-navbar .nav-link::after {
        display: none;
    }

    .quote-button {
        width: 100%;
        min-height: 45px;
    }


    /* Hero */

    .hero-section {
        min-height: auto;
        padding: 66px 0 80px;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    .hero-section::after {
        display: none;
    }

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

    .hero-title-small {
        font-size: 88px;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-description {
        max-width: 720px;
    }

    .hero-cards {
        max-width: 720px;
        margin: 45px 0 0;
        padding-left: 0;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero-card > div:last-child {
        width: 100%;
    }


    /* Services */

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* Statistics */

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

    .statistics-item:nth-child(2)::after {
        display: none;
    }

    .statistics-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }


    /* About */

    .about-section {
        padding: 72px 0;
    }

    .about-visual {
        max-width: 720px;
        margin: 0 auto;
    }

    .about-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .about-visual__main,
    .about-visual__main img {
        height: 480px;
        min-height: 480px;
    }


    /* Portfolio */

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* News */

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* Contact CTA */

    .contact-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }


    /* Footer */

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   TABLET PORTRAIT / MOBILE LANDSCAPE
   ต่ำกว่า 768px
========================================================== */

@media (max-width: 767.98px) {

    :root {
        --container: 540px;
        --section-padding: 68px;
        --section-padding-mobile: 56px;
    }


    /* Top Bar */

    .top-bar {
        min-height: 36px;
    }

    .top-bar__left {
        gap: 15px;
    }

    .top-bar__left a:nth-child(2) {
        display: none;
    }


    /* Hero */

    .hero-section {
        padding: 56px 0 74px;
    }

    .hero-title-small {
        margin-bottom: 12px;
        font-size: clamp(62px, 18vw, 86px);
        letter-spacing: -3px;
    }

    .hero-title {
        gap: 0 9px;
        font-size: clamp(43px, 11vw, 58px);
    }

    .hero-line {
        gap: 8px;
        font-size: 18px;
        line-height: 1.8;
    }

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

    .hero-card .icon {
        width: 61px;
        height: 61px;
        font-size: 25px;
    }

    .hero-card h5 {
        font-size: 14px;
    }

    .hero-card p {
        font-size: 12px;
    }


    /* About */

    .about-content h2 {
        font-size: 38px;
    }

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


    /* Portfolio */

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card,
    .portfolio-card img {
        min-height: 330px;
    }


    /* News */

    .news-grid {
        grid-template-columns: 1fr;
    }


    /* Grid Utilities */

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================
   MOBILE
   ต่ำกว่า 576px
========================================================== */

@media (max-width: 575.98px) {

    :root {
        --container: 100%;
        --section-padding: 56px;
        --section-padding-mobile: 52px;
        --topbar-height: 34px;
        --navbar-height: 70px;
    }

    .container,
    .container-custom {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }


    /* Top Bar */

    .top-bar {
        min-height: 34px;
        font-size: 12px;
    }

    .top-bar__container {
        justify-content: center;
    }

    .top-bar__social {
        display: none;
    }

    .top-bar__left {
        justify-content: center;
    }


    /* Navbar */

    .homie-navbar {
        min-height: 70px;
        padding: 9px 0;
    }

    .homie-brand__mark {
        font-size: 25px;
    }

    .homie-brand__house {
        width: 29px;
        height: 29px;
        font-size: 14px;
    }

    .homie-brand__sub {
        margin-top: 4px;
        font-size: 7px;
        letter-spacing: 1px;
    }


    /* Hero */

    .hero-section {
        padding: 46px 0 66px;
    }

    .hero-title-small {
        font-size: clamp(56px, 18vw, 76px);
    }

    .hero-title {
        gap: 0 7px;
        font-size: clamp(36px, 11vw, 49px);
        letter-spacing: -1px;
    }

    .hero-title > span:last-child {
        margin-top: 5px;
    }

    .hero-line {
        margin-top: 20px;
        padding-bottom: 12px;
        gap: 7px;
        font-size: 16px;
    }

    .hero-line i {
        width: 4px;
        height: 4px;
    }

    .hero-description {
        margin-top: 17px;
        font-size: 14px;
        line-height: 1.75;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
    }

    .hero-cards {
        gap: 13px;
        margin-top: 38px;
    }

    .hero-card {
        min-height: 68px;
        align-items: stretch;
    }

    .hero-card .icon {
        width: 57px;
        height: auto;
        min-height: 65px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        box-shadow: none;
    }

    .hero-card > div:last-child {
        min-height: 65px;
        margin-left: 0;
        padding: 12px 13px;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

    .hero-card h5 {
        font-size: 13px;
    }

    .hero-card p {
        margin-top: 3px;
        font-size: 11px;
    }


    /* Services */

    .services-section {
        margin-top: -22px;
        padding: 38px 0 48px;
        border-radius: 25px 25px 0 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 21px 16px;
    }

    .service-card p {
        min-height: auto;
    }

    .service-card > a {
        opacity: 1;
        transform: none;
    }


    /* Statistics */

    .statistics-bar {
        grid-template-columns: 1fr;
    }

    .statistics-item {
        min-height: 96px;
        justify-content: flex-start;
        padding-left: 42px;
    }

    .statistics-item:not(:last-child)::after {
        top: auto;
        right: 20px;
        bottom: 0;
        left: 20px;
        width: auto;
        height: 1px;
    }

    .statistics-item:nth-child(2)::after {
        display: block;
    }

    .statistics-item:nth-child(-n+2) {
        border-bottom: 0;
    }


    /* About */

    .about-section {
        padding: 55px 0;
    }

    .about-visual {
        padding: 0 18px 28px 0;
    }

    .about-visual__main,
    .about-visual__main img {
        height: 330px;
        min-height: 330px;
    }

    .about-experience {
        min-width: 175px;
        min-height: 95px;
        gap: 11px;
        padding: 14px 16px;
        border-width: 6px;
    }

    .about-experience strong {
        font-size: 37px;
    }

    .about-experience span {
        font-size: 12px;
    }

    .about-content h2 {
        font-size: 34px;
    }

    .about-content__lead {
        font-size: 16px;
    }

    .about-content__description {
        font-size: 14px;
    }

    .about-button {
        width: 100%;
    }


    /* Portfolio */

    .portfolio-section {
        padding: 55px 0;
    }

    .portfolio-card,
    .portfolio-card img {
        min-height: 290px;
    }


    /* News */

    .news-section {
        padding: 55px 0;
    }

    .news-card__image {
        height: 210px;
    }


    /* Contact CTA */

    .contact-cta {
        padding: 58px 0;
    }

    .contact-cta h2 {
        font-size: 30px;
    }


    /* Footer */

    .site-footer {
        padding-top: 40px;
    }

    .site-footer__contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }


    /* Utilities */

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn-homie {
        width: 100%;
    }

    .py-section {
        padding-block: var(--section-padding-mobile);
    }
}


/* ==========================================================
   VERY SMALL MOBILE
   ต่ำกว่า 400px
========================================================== */

@media (max-width: 399.98px) {

    .top-bar__left {
        gap: 8px;
    }

    .hero-title-small {
        font-size: 53px;
    }

    .hero-title {
        font-size: 34px;
    }

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

    .hero-card .icon {
        width: 51px;
        font-size: 21px;
    }

    .hero-card h5 {
        font-size: 12px;
    }

    .hero-card p {
        font-size: 10px;
    }

    .about-experience {
        min-width: 158px;
    }

    .about-experience strong {
        font-size: 32px;
    }
}

/* ==========================================================
   PREMIUM REFINEMENT — RESPONSIVE OVERRIDES
========================================================== */


/* Notebook */
@media (max-width: 1399.98px) {

    .hero-section {
        min-height: 760px;
    }

    .hero-section .min-vh-100 {
        min-height: 760px !important;
    }

    .homie-brand__mark {
        font-size: 34px;
    }

    .homie-brand__house {
        width: 39px;
        height: 39px;
        font-size: 19px;
    }

    .homie-brand img,
    .homie-brand__image {
        height: 55px;
    }
}


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

    .site-header {
        position: relative;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    .hero-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .homie-brand {
        min-width: auto;
    }

    .homie-brand img,
    .homie-brand__image {
        height: 52px;
    }
}


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

    .homie-brand__mark {
        font-size: 28px;
    }

    .homie-brand__house {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .homie-brand__sub {
        font-size: 8px;
    }

    .homie-brand img,
    .homie-brand__image {
        max-width: 205px;
        height: 57px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(1, 17, 33, 0.64) 0%,
                rgba(1, 17, 33, 0.84) 60%,
                rgba(1, 17, 33, 0.90) 100%
            );
    }

    .hero-card:hover {
        transform: none;
    }

    .hero-card > div:last-child {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

/* ==========================================================
   PHASE 2 — PORTFOLIO RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .portfolio-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 280px;
    }

    .portfolio-card--large {
        grid-column: span 2;
        grid-row: auto;
    }
}


@media (max-width: 575.98px) {

    .portfolio-heading {
        gap: 22px;
        margin-bottom: 28px;
    }

    .portfolio-heading__button {
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .portfolio-card,
    .portfolio-card--large {
        grid-column: auto;
        grid-row: auto;
        min-height: 320px;
    }

    .portfolio-card img {
        min-height: 320px;
    }

    .portfolio-card__overlay {
        padding: 20px;
    }

    .portfolio-card__content {
        padding-right: 0;
    }

    .portfolio-card__content h3 {
        font-size: 18px;
    }

    .portfolio-card__link {
        position: static;
        margin-top: 14px;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   PHASE 2 — NEWS RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .news-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-card:last-child {
        grid-column: span 2;
        max-width: calc(50% - 12px);
        margin-right: auto;
        margin-left: auto;
    }
}


@media (max-width: 575.98px) {

    .news-heading {
        gap: 22px;
        margin-bottom: 28px;
    }

    .news-heading__button {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .news-card__image {
        height: 220px;
    }

    .news-card__body {
        padding: 20px;
    }

    .news-card__body h3 {
        font-size: 18px;
    }

    .news-card__body p {
        min-height: auto;
    }
}

/* ==========================================================
   PHASE 2 — CONTACT CTA RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .contact-cta {
        padding: 72px 0;
    }

    .contact-cta__inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .contact-cta__actions {
        max-width: 520px;
    }
}


@media (max-width: 575.98px) {

    .contact-cta {
        padding: 58px 0;
    }

    .contact-cta__inner {
        gap: 30px;
    }

    .contact-cta__content h2 {
        font-size: 32px;
    }

    .contact-cta__content > p {
        font-size: 14px;
    }

    .contact-cta__contact-list {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-top: 24px;
    }

    .contact-cta__actions {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .contact-cta__button {
        min-height: 52px;
    }

    .contact-cta__decoration--one {
        right: -260px;
    }
}

/* ==========================================================
   PHASE 2 — PREMIUM FOOTER RESPONSIVE
========================================================== */

@media (max-width: 1199.98px) {

    .footer-grid {
        grid-template-columns:
            minmax(240px, 1.2fr)
            minmax(150px, 0.7fr)
            minmax(180px, 0.85fr)
            minmax(230px, 1fr);
        gap: 34px;
    }
}


@media (max-width: 991.98px) {

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 46px 36px;
    }

    .footer-company__description {
        max-width: 440px;
    }
}


@media (max-width: 575.98px) {

    .site-footer {
        padding-top: 58px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 39px;
        padding-bottom: 44px;
    }

    .footer-company__description {
        max-width: none;
    }

    .footer-column__title {
        margin-bottom: 20px;
    }

    .footer-quote-button {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 19px 0;
    }

    .footer-bottom__links {
        flex-wrap: wrap;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 43px;
        height: 43px;
    }
}

/* ==========================================================
   PHASE 3 — ABOUT PAGE RESPONSIVE
========================================================== */

@media (max-width: 1199.98px) {

    .about-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-process-grid::before {
        display: none;
    }

    .about-process-step:nth-child(4),
    .about-process-step:nth-child(5) {
        grid-column: span 1;
    }
}


@media (max-width: 991.98px) {

    .inner-hero {
        min-height: 370px;
    }

    .inner-hero__content {
        padding: 62px 0;
    }

    .about-story-visual {
        max-width: 720px;
        margin: 0 auto;
    }

    .about-story-content {
        max-width: 720px;
        margin: 0 auto;
    }

    .about-direction-grid {
        grid-template-columns: 1fr;
    }

    .about-direction-card {
        min-height: auto;
    }

    .about-strength-content {
        margin-bottom: 10px;
    }

    .about-services-grid {
        grid-template-columns: 1fr;
    }

    .about-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inner-contact-cta__content {
        align-items: flex-start;
        flex-direction: column;
    }
}


@media (max-width: 767.98px) {

    .about-strength-grid {
        grid-template-columns: 1fr;
    }

    .about-process-grid {
        grid-template-columns: 1fr;
    }

    .about-process-step {
        min-height: auto;
    }
}


@media (max-width: 575.98px) {

    .inner-hero {
        min-height: 330px;
    }

    .inner-hero__content {
        padding: 52px 0;
    }

    .inner-hero h1 {
        font-size: 44px;
    }

    .inner-hero__content > p {
        font-size: 14px;
    }

    .breadcrumb-homie {
        font-size: 12px;
    }

    .about-story-section,
    .about-direction-section,
    .about-strength-section,
    .about-services-section,
    .about-process-section {
        padding: 56px 0;
    }

    .about-story-visual {
        padding: 0 18px 28px 0;
    }

    .about-story-visual__main,
    .about-story-visual__main img {
        height: 345px;
        min-height: 345px;
    }

    .about-story-visual__experience {
        min-width: 175px;
        min-height: 94px;
        gap: 10px;
        padding: 14px 16px;
        border-width: 6px;
    }

    .about-story-visual__experience strong {
        font-size: 37px;
    }

    .about-story-visual__experience span {
        font-size: 12px;
    }

    .about-story-content__lead {
        font-size: 16px;
    }

    .about-story-content > p:not(.about-story-content__lead) {
        font-size: 14px;
    }

    .about-story-signature {
        align-items: flex-start;
    }

    .about-direction-card {
        padding: 28px 22px;
    }

    .about-direction-card__number {
        font-size: 58px;
    }

    .about-service-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .about-service-item > i {
        display: none;
    }

    .inner-contact-cta {
        padding: 58px 0;
    }

    .inner-contact-cta__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .inner-contact-cta__actions .btn-homie {
        width: 100%;
    }
}

/* ==========================================================
   PHASE 3 — COMPANY TIMELINE RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .timeline-heading {
        margin-bottom: 50px;
    }

    .company-timeline {
        gap: 48px;
    }

    .company-timeline::before,
    .company-timeline__progress {
        left: 29px;
    }

    .timeline-item {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
        min-height: auto;
    }


    /* Center */

    .timeline-item--left .timeline-item__center,
    .timeline-item--right .timeline-item__center {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: stretch;
        align-items: flex-start;
        padding-top: 20px;
    }


    /* Content */

    .timeline-item--left .timeline-item__content,
    .timeline-item--right .timeline-item__content {
        grid-column: 2;
        grid-row: 1;
    }


    /* Visual */

    .timeline-item--left .timeline-item__visual,
    .timeline-item--right .timeline-item__visual {
        grid-column: 2;
        grid-row: 2;
        margin-top: 16px;
    }


    .timeline-item__dot {
        width: 52px;
        height: 52px;
        border-width: 6px;
    }

    .timeline-image,
    .timeline-image img {
        height: 300px;
        min-height: 300px;
    }


    /* Animation direction */
    .timeline-item--left .timeline-item__content,
    .timeline-item--right .timeline-item__content,
    .timeline-item--left .timeline-item__visual,
    .timeline-item--right .timeline-item__visual {
        transform: translateY(28px);
    }

    .timeline-item.is-visible .timeline-item__content,
    .timeline-item.is-visible .timeline-item__visual {
        transform: translateY(0);
    }
}


@media (max-width: 575.98px) {

    .company-timeline-section {
        padding: 56px 0;
    }

    .timeline-heading {
        margin-bottom: 38px;
    }

    .company-timeline {
        gap: 38px;
    }

    .company-timeline::before,
    .company-timeline__progress {
        left: 23px;
    }

    .timeline-item {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
    }

    .timeline-item__dot {
        width: 43px;
        height: 43px;
        border-width: 5px;
        font-size: 15px;
    }

    .timeline-item--left .timeline-item__center,
    .timeline-item--right .timeline-item__center {
        padding-top: 18px;
    }

    .timeline-card {
        padding: 22px 19px;
        border-radius: var(--radius-md);
    }

    .timeline-card__year {
        font-size: 23px;
    }

    .timeline-card h3 {
        margin-top: 15px;
        font-size: 18px;
    }

    .timeline-card p {
        font-size: 12px;
    }

    .timeline-image {
        min-height: 220px;
        border-radius: var(--radius-md);
    }

    .timeline-image img {
        height: 220px;
        min-height: 220px;
    }
}

/* ==========================================================
   ABOUT TIMELINE MOBILE SPACING
========================================================== */

@media (max-width: 575.98px) {

    .company-timeline-section {
        padding-top: 38px;
    }

    .timeline-heading {
        margin-bottom: 36px;
    }
}

/* ==========================================================
   PHASE 3 — ABOUT TEAM
   CORPORATE RESPONSIVE
========================================================== */


/* ==========================================================
   NOTEBOOK
========================================================== */

@media (max-width: 1199.98px) {

    .team-feature,
    .team-feature--image-right {
        gap: 40px;
    }

    .team-feature__image,
    .team-feature__image img {
        height: 390px;
        min-height: 390px;
    }

    .team-feature__content h3 {
        font-size: 34px;
    }

    .team-feature__lead {
        font-size: 16px;
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    .about-team-section {
        padding: 72px 0 80px;
    }

    .about-team-list {
        gap: 62px;
    }

    .team-feature,
    .team-feature--image-right {
        grid-template-columns: 1fr;
        gap: 27px;
    }


    /* Image always first */

    .team-feature--image-left .team-feature__visual,
    .team-feature--image-right .team-feature__visual {
        grid-column: 1;
        grid-row: 1;
    }

    .team-feature--image-left .team-feature__content,
    .team-feature--image-right .team-feature__content {
        grid-column: 1;
        grid-row: 2;
    }

    .team-feature__image,
    .team-feature__image img {
        height: 450px;
        min-height: 450px;
    }

    .team-feature__content {
        padding-left: 24px;
    }

    .team-feature__content::before {
        left: 0;
    }

    .team-feature__description {
        max-width: 760px;
    }

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

    .team-feature__point {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}


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

@media (max-width: 767.98px) {

    .about-team-section {
        padding: 58px 0 65px;
    }

    .about-team-heading {
        margin-bottom: 38px;
    }

    .about-team-list {
        gap: 50px;
    }

    .team-feature__image,
    .team-feature__image img {
        height: 350px;
        min-height: 350px;
    }

    .team-feature__points {
        grid-template-columns: 1fr;
    }

    .team-feature__point {
        grid-template-columns: 43px minmax(0, 1fr);
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 575.98px) {

    .about-team-section {
        padding: 52px 0 58px;
    }

    .team-feature,
    .team-feature--image-right {
        gap: 21px;
    }

    .team-feature__image {
        min-height: 260px;
        border-radius: 20px;
    }

    .team-feature__image img {
        height: 260px;
        min-height: 260px;
    }

    .team-feature__image-badge {
        right: 12px;
        bottom: 12px;
        min-width: 135px;
        padding: 10px 12px;
    }

    .team-feature__image-badge > span {
        font-size: 25px;
    }

    .team-feature__content {
        padding-left: 18px;
    }

    .team-feature__content::before {
        height: 46px;
    }

    .team-feature__eyebrow {
        margin-bottom: 7px;
        font-size: 9px;
    }

    .team-feature__content h3 {
        font-size: 27px;
    }

    .team-feature__lead {
        margin-top: 12px;
        font-size: 15px;
    }

    .team-feature__description {
        font-size: 13px;
    }

    .team-feature__points {
        margin-top: 21px;
    }

    .team-feature__point {
        padding: 10px;
    }

    .team-feature:not(:last-child)::after {
        right: 5%;
        bottom: -25px;
        left: 5%;
    }
}

/* ==========================================================
   ABOUT PREMIUM CTA — RESPONSIVE OVERRIDE
========================================================== */

@media (max-width: 991.98px) {

    .inner-contact-cta {
        padding: 78px 0;
    }

    .inner-contact-cta__content {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .inner-contact-cta__text {
        max-width: 760px;
    }

    .inner-contact-cta__actions {
        width: 100%;
        max-width: 580px;
    }
}


@media (max-width: 575.98px) {

    .inner-contact-cta {
        padding: 60px 0;
    }

    .inner-contact-cta__content {
        gap: 32px;
    }

    .inner-contact-cta h2 {
        font-size: 34px;
        line-height: 1.3;
    }

    .inner-contact-cta__text > p {
        margin-top: 16px;

        font-size: 14px;
        line-height: 1.8;
    }

    .inner-contact-cta__features {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        margin-top: 22px;
    }

    .inner-contact-cta__actions {
        padding: 15px;

        border-radius: 19px;
    }

    .inner-contact-cta__actions .btn-homie {
        min-height: 66px;

        padding: 11px 14px;
    }

    .inner-contact-cta__actions .btn-homie i {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================
   PHASE 3 — ABOUT ACHIEVEMENT RESPONSIVE
========================================================== */

@media (max-width: 1199.98px) {

    .about-achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-achievement-card {
        min-height: 250px;
    }
}


@media (max-width: 767.98px) {

    .about-achievement-section {
        padding: 64px 0 72px;
    }

    .about-achievement-heading {
        margin-bottom: 36px;
    }
}


@media (max-width: 575.98px) {

    .about-achievement-section {
        padding: 52px 0 58px;
    }

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

    .about-achievement-card {
        min-height: auto;
        padding: 22px 20px;
    }

    .about-achievement-card__number strong {
        font-size: 40px;
    }

    .about-achievement-card__number span {
        font-size: 19px;
    }
}

/* ==========================================================
   PHASE 3 — ABOUT FAQ RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {

    .about-faq-section {
        padding: 72px 0 80px;
    }

    .about-faq-intro {
        position: static;
        max-width: 720px;
        margin-bottom: 12px;
    }

    .about-faq-contact {
        max-width: 520px;
    }
}


@media (max-width: 575.98px) {

    .about-faq-section {
        padding: 54px 0 60px;
    }

    .about-faq-contact {
        align-items: flex-start;
        margin-top: 23px;
        padding: 15px;
    }

    .about-faq-contact__icon {
        width: 46px;
        height: 46px;
    }

    .about-faq-item .accordion-button {
        min-height: 68px;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
        font-size: 13px;
        line-height: 1.6;
    }

    .about-faq-number {
        width: 33px;
        height: 33px;
    }

    .about-faq-item .accordion-body {
        padding: 0 15px 18px 58px;
        font-size: 12px;
    }
}

/* ==========================================================
   ABOUT PAGE — FINAL MOBILE POLISH
========================================================== */

@media (max-width: 767.98px) {

    .about-story-section,
    .about-direction-section,
    .company-timeline-section,
    .about-team-section,
    .about-achievement-section,
    .about-strength-section,
    .about-services-section,
    .about-process-section,
    .about-faq-section {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .about-page .section-heading {
        margin-bottom: 32px;
    }

    .about-page .section-title {
        font-size: 32px;
        line-height: 1.35;
    }

    .about-page .section-description {
        font-size: 14px;
        line-height: 1.75;
    }

    .timeline-heading,
    .about-team-heading,
    .about-achievement-heading {
        margin-bottom: 34px;
    }

    .about-team-list {
        gap: 48px;
    }

    .inner-contact-cta {
        padding-top: 58px;
        padding-bottom: 58px;
    }
}


@media (max-width: 575.98px) {

    .about-page .section-title {
        font-size: 29px;
    }

    .about-page .section-label {
        font-size: 10px;
        letter-spacing: 1.6px;
    }
}

/* ==========================================================
   ABOUT TIMELINE — FINAL IMAGE CONSISTENCY
========================================================== */

@media (max-width: 991.98px) {

    .timeline-image {
        height: 300px;
        min-height: 300px;
    }

    .timeline-image img {
        height: 100%;
        min-height: 0;
    }
}


@media (max-width: 575.98px) {

    .company-timeline {
        gap: 38px;
    }

    .timeline-image {
        height: 220px;
        min-height: 220px;
        border-radius: 16px;
    }

    .timeline-image img {
        height: 100%;
        min-height: 0;
    }

    .timeline-card {
        min-height: auto;
        padding: 21px 18px;
    }
}

/* ==========================================================
   HEADER — STABLE RESPONSIVE GEOMETRY
========================================================== */

@media (max-width: 991.98px) {

    .site-header {
        position: relative;
    }

    .homie-navbar {
        height: auto;
        min-height: 76px;
        max-height: none;

        padding: 11px 0;
    }

    .homie-navbar > .container {
        height: auto;

        flex-wrap: wrap;
    }

    .homie-navbar .navbar-collapse {
        height: auto;
    }

    .homie-navbar .navbar-nav {
        height: auto;
    }

    .homie-navbar .nav-link {
        height: auto;

        padding: 11px 0;

        line-height: 1.5;
    }
}


@media (max-width: 575.98px) {

    .homie-navbar {
        min-height: 70px;
        padding: 9px 0;
    }
}