/* =====================================================
   ORLOFF HOME PAGE — MOBILE OVERRIDES
   Place at the very end of the stylesheet
===================================================== */

/* HEADER / TABLET */
@media (max-width: 1050px) {
    .or-header-container {
        width: 100%;
        min-height: 76px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center;
        gap: 10px !important;
        padding: 10px 15px !important;
    }

    .or-header-logo,
    .or-header-logo a {
        min-width: 0;
        max-width: 100%;
    }

    .or-header-logo img {
        width: 100% !important;
        max-width: 240px !important;
        max-height: 55px !important;
        object-fit: contain;
        object-position: left center;
    }

    .or-header-right {
        gap: 7px;
    }

    .or-header-contact {
        display: none;
    }

    .or-menu-open,
    .or-mobile-menu-header {
        display: flex !important;
    }

    .or-page-overlay,
    .or-submenu-toggle {
        display: block !important;
    }

    .or-menu-open span {
        background: #0378be !important;
    }

    .or-main-menu > ul {
        display: block !important;
    }
}

/* PHONE */
@media (max-width: 767px) {

    /* Prevent wide section content from stretching the page */
    .od-projects,
    .or-about,
    .or-neighborhoods,
    .or-property-search,
    .or-client-paths,
    .or-blog-section {
        width: 100%;
        max-width: 100%;
    }

    /* HEADER */
    .or-header-container {
        min-height: 72px;
        padding: 9px 14px !important;
    }

    .or-header-logo img {
        max-width: 210px !important;
        max-height: 50px !important;
    }

    .or-menu-open {
        width: 36px;
        height: 40px;
        flex: 0 0 36px;
    }

    /* VIDEO HERO */
    .po-hero {
        height: 100svh;
        min-height: 600px;
    }

    .po-hero .po-hero-inner {
        width: 100%;
        padding: 100px 18px 80px;
    }

    .po-hero .po-hero-content {
        width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .po-hero .po-hero-title {
        max-width: 100%;
        margin: 0 0 25px;
        font-size: clamp(46px, 11vw, 62px);
        line-height: 1;
    }

    .po-hero .po-search-area {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .po-hero .po-search-box {
        width: 100%;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 6px;
    }

    .po-hero .po-search-input {
        min-width: 0;
        height: 50px;
        font-size: 12px;
    }

    .po-hero .po-search-btn {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 48px;
        margin-top: 5px;
    }

    /* NEW & PRE-CONSTRUCTION */
    .od-projects {
        padding: 65px 0;
    }

    .od-projects-container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .od-projects-header {
        display: block;
        margin-bottom: 30px;
    }

    .od-heading-left {
        display: block;
    }

    .od-heading-number {
        display: none;
    }

    .od-heading-title {
        max-width: 100%;
        font-size: clamp(39px, 10vw, 52px);
        line-height: 1.05;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .od-heading-title em {
        display: block;
        margin-left: 0;
        font-size: 0.9em;
    }

    .od-heading-right {
        max-width: 100%;
        margin-top: 22px;
        padding: 0;
    }

    .od-heading-right p {
        font-size: 13px;
        line-height: 1.7;
    }

    .od-project-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 14px;
    }

    .od-project-card,
    .od-project-card:first-child,
    .od-project-card:nth-child(6),
    .od-project-card:nth-child(7) {
        grid-column: auto;
        grid-row: auto;
        height: 320px;
    }

    .od-project-content,
    .od-project-card:first-child .od-project-content {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

    .od-project-content h3,
    .od-project-card:first-child .od-project-content h3 {
        font-size: 31px;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .od-projects-footer {
        margin-top: 30px;
    }

    .od-view-all {
        width: 100%;
        min-width: 0;
    }

    /* EXPERT REPRESENTATION */
    .or-about-grid {
        display: block;
        min-height: 0;
    }

    .or-about-visual {
        min-height: 330px;
    }

    .or-about-signature {
        min-width: 0;
        padding: 16px 20px;
    }

    .or-about-content {
        display: block;
        width: 100%;
        padding: 55px 20px 65px;
    }

    .or-about-content::after {
        display: none;
    }

    .or-about-number {
        top: 25px;
        right: 20px;
        font-size: 54px;
    }

    .or-about-title {
        max-width: 100%;
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.05;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .or-about-title em {
        display: block;
        margin-left: 0;
    }

    .or-about-lead,
    .or-about-copy {
        max-width: 100%;
    }

    .or-about-lead {
        font-size: 21px;
    }

    .or-about-copy {
        font-size: 13px;
        line-height: 1.75;
    }

    .or-about-services {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .or-service {
        padding: 15px 8px;
    }

    .or-service:first-child {
        padding-left: 0;
    }

    .or-service p {
        font-size: 8px;
        overflow-wrap: anywhere;
    }

    .or-about-button {
        max-width: 100%;
    }

    /* FEATURED NEIGHBORHOODS */
    .or-neighborhoods {
        padding: 65px 0;
    }

    .or-neighborhoods-container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .or-neighborhoods-header {
        display: block;
        margin-bottom: 30px;
    }

    .or-neighborhoods-heading {
        display: block;
    }

    .or-section-number {
        display: none;
    }

    .or-section-title {
        max-width: 100%;
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.05;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .or-section-title em {
        display: block;
        margin-left: 0;
    }

    .or-neighborhoods-intro {
        max-width: 100%;
        margin-top: 22px;
        padding: 0;
    }

    .or-neighborhoods-intro p {
        font-size: 13px;
        line-height: 1.7;
    }

    .or-neighborhood-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 14px;
    }

    .or-neighborhood-card,
    .or-neighborhood-card:nth-child(4),
    .or-neighborhood-card:nth-child(5) {
        grid-column: auto;
        height: 310px;
    }

    .or-neighborhood-content {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

    .or-neighborhood-content h3 {
        font-size: 32px;
        overflow-wrap: anywhere;
    }

    .or-neighborhoods-footer {
        margin-top: 30px;
    }

    .or-neighborhoods-button {
        width: 100%;
        min-width: 0;
    }

    /* PROPERTY SEARCH / HOME EVALUATION */
    .or-search-layout {
        display: block;
        min-height: 0;
    }

    .or-search-visual {
        min-height: 360px;
    }

    .or-search-visual-content {
        max-width: 100%;
        padding: 55px 22px;
    }

    .or-search-form-side {
        display: block;
        padding: 45px 20px 55px;
    }

    .or-search-form-wrap {
        width: 100%;
        max-width: 100%;
    }

    .or-search-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .or-search-full {
        grid-column: auto;
    }

    /* BUYING / SELLING CARDS */
    .or-client-paths {
        padding: 65px 0;
    }

    .or-client-paths-container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .or-client-paths-header {
        margin-bottom: 30px;
    }

    .or-paths-heading {
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.05;
    }

    .or-paths-heading em {
        margin-left: 0;
    }

    .or-paths-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .or-path-card,
    .or-path-card-buying {
        min-height: 360px;
        margin-top: 0;
    }

    /* MARKET INSIGHTS / BLOG */
    .or-blog-section {
        padding: 65px 0;
    }

    .or-blog-container {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .or-blog-header {
        display: block;
        margin-bottom: 30px;
    }

    .or-blog-heading {
        display: block;
    }

    .or-blog-number {
        display: none;
    }

    .or-blog-heading h2 {
        font-size: clamp(40px, 10vw, 52px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .or-blog-heading h2 em {
        margin-left: 0;
    }

    .or-blog-intro {
        max-width: 100%;
        margin-top: 22px;
    }

    .or-blog-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 14px;
    }

    .or-blog-card,
    .or-blog-card:first-child {
        grid-row: auto;
        height: 330px;
    }

    /* SMALLER FLOATING SOCIAL BAR */
    .or-floating-social {
        top: auto;
        right: 8px;
        bottom: 100px;
        width: 40px;
        gap: 8px;
        padding: 9px 4px;
        transform: none;
    }

    .or-floating-social::before,
    .or-floating-social::after,
    .or-floating-social-label {
        display: none;
    }

    .or-floating-social a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .or-header-logo img {
        max-width: 170px !important;
    }

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

    .or-service,
    .or-service:first-child {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }
}

@media (max-width: 1050px) {
    .or-mobile-menu-header { display: flex !important; }
    .or-menu-open { display: flex !important; }
    .or-page-overlay { display: block !important; }

    .or-navigation-panel .or-main-menu > ul {
        display: block !important;
    }

    .or-navigation-panel .or-main-menu > ul > li {
        padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .or-navigation-panel .or-main-menu > ul > li > a {
        display: flex !important;
        align-items: center;
        min-height: 56px;
        padding: 14px 48px 14px 0;
        color: #fff !important;
        font-family: "Montserrat", sans-serif !important;
        font-size: 13px !important;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: 1px;
        text-align: left;
        text-transform: uppercase;
        text-decoration: none;
    }

    .or-navigation-panel .or-submenu-toggle {
        display: block !important;
    }

    .or-navigation-panel .or-submenu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: none !important;
        width: 100%;
        min-width: 0 !important;
        max-height: none !important;
        margin: 0 0 14px;
        padding: 4px 0 4px 14px !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        border: 0 !important;
        border-left: 2px solid #37c435 !important;
        background: rgba(255, 255, 255, 0.09) !important;
        box-shadow: none !important;
    }

    .or-navigation-panel .or-has-dropdown.submenu-open > .or-submenu {
        display: block !important;
        transform: none !important;
    }

    .or-navigation-panel .or-submenu li a {
        display: block;
        padding: 11px 12px !important;
        color: #fff !important;
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.45;
        letter-spacing: 0.6px;
        text-decoration: none;
    }

    .or-navigation-panel .or-submenu li a:hover,
    .or-navigation-panel .or-submenu li a:focus-visible {
        padding-left: 12px !important;
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12);
    }
}