/* Erigo - Equal height cards and image areas */

/* Site logo sizing */
.main-menu-two__logo img,
.mobile-nav__content .logo-box img,
.xs-sidebar-group .content-inner .logo img {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-widget__logo img,
.footer-widget__logo-two img {
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar .brand-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar .brand-logo-mini img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

/* Preloader logo size */
.preloader__image {
    background-size: 220px auto !important;
}

/* Contact info boxes — match original theme (overlapping outline icons) */
.contact-info-section {
    position: relative;
    display: block;
    padding: 40px 0 110px;
    overflow: visible;
    z-index: 1;
}

.contact-info-section .erigo-equal-cards {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.contact-info-section .erigo-equal-cards > [class*="col-"] {
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 55px;
}

.contact-info-section .single-contact-info-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    margin-top: 45px;
    padding: 65px 28px 40px;
    background-color: #2a2b2d;
    border-radius: 10px;
    overflow: visible;
    z-index: 1;
}

.contact-info-section .single-contact-info-section .icon {
    position: absolute !important;
    top: -40px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #1f2022 !important;
    border: 1px solid var(--tecture-base) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    z-index: 2;
}

.contact-info-section .single-contact-info-section .icon span,
.contact-info-section .single-contact-info-section .icon i {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: var(--tecture-base) !important;
    background: none !important;
    border: none !important;
    transform: none !important;
}

.contact-info-section .single-contact-info-section .icon span::before,
.contact-info-section .single-contact-info-section .icon i::before {
    font-size: 32px !important;
    line-height: 1 !important;
    color: var(--tecture-base) !important;
}

.contact-info-section .single-contact-info-section__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-height: 0;
}

.contact-info-section .single-contact-info-section__content .text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    width: 100%;
}

.contact-info-section .single-contact-info-section__content .text h3 {
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
    color: var(--tecture-base) !important;
    text-transform: none;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 12px;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-value,
.contact-info-section .single-contact-info-section__content .text .contact-info-value p {
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff !important;
    margin: 0 0 22px;
    font-weight: 500;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-value a {
    color: #ffffff !important;
    text-decoration: none;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-value a:hover {
    color: var(--tecture-base) !important;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-link span {
    font-size: 12px !important;
    color: inherit !important;
}

.contact-info-section .single-contact-info-section__content .text .contact-info-link:hover {
    color: var(--tecture-base) !important;
}

@media (max-width: 991px) {
    .contact-info-section {
        padding: 20px 0 80px;
    }

    .contact-info-section .single-contact-info-section__content {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .contact-info-section .single-contact-info-section {
        padding: 58px 22px 32px;
    }

    .contact-info-section .single-contact-info-section .icon {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        min-height: 70px !important;
        top: -35px !important;
    }

    .contact-info-section .single-contact-info-section .icon span,
    .contact-info-section .single-contact-info-section .icon i,
    .contact-info-section .single-contact-info-section .icon span::before,
    .contact-info-section .single-contact-info-section .icon i::before {
        font-size: 28px !important;
    }
}

/* Services cards */
.services-one .erigo-equal-cards {
    display: flex;
    flex-wrap: wrap;
}

.services-one .erigo-equal-cards > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.services-one .services-one__single {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.services-one .services-one__content-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 540px;
}

.services-one .services-one__title {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-one .services-one__img {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.services-one .services-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-one .services-one__text {
    min-height: 72px;
    flex: 1;
    margin-bottom: 0;
}

.services-one .services-one__btn {
    margin-top: auto;
    flex-shrink: 0;
}

/* Projects cards */
.projects-page .erigo-equal-cards {
    display: flex;
    flex-wrap: wrap;
}

.projects-page .erigo-equal-cards > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.projects-page .project-two__single {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.projects-page .project-two__img {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    flex-shrink: 0;
    overflow: hidden;
}

.projects-page .project-two__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-page .project-two__content {
    min-height: 84px;
    flex-shrink: 0;
    align-items: center;
}

.projects-page .project-two__title {
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Team cards */
.team-one .erigo-team-cards {
    display: flex;
    flex-wrap: wrap;
}

.team-one .erigo-team-cards > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.team-one .team-one__sinlge {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.team-one .team-one__img {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    overflow: hidden;
}

.team-one .team-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-one .team-one__content {
    flex: 1;
    min-height: 140px;
}

@media (max-width: 991px) {
    .services-one .services-one__content-box {
        min-height: 500px;
    }

    .services-one .services-one__img {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }

    .projects-page .project-two__img {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }
}

/* About images fixed sizes */
.about-one__img-list li:nth-child(1) .about-one__img {
    width: 380px;
    max-width: 380px;
    height: 620px;
}

.about-one__img-list li:nth-child(2) .about-one__img {
    width: 380px;
    max-width: 380px;
    height: 582px;
}

.about-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 991px) {
    .about-one__img-list li:nth-child(1) .about-one__img,
    .about-one__img-list li:nth-child(2) .about-one__img {
        width: 100%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 380 / 620;
    }
}

/* About text width fix */
.about-one__content {
    padding-right: 40px !important;
    padding-bottom: 40px !important;
}

.about-one__text {
    max-width: 620px;
    margin-bottom: 0;
    word-wrap: break-word;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: block;
    width: 100%;
}

@media (max-width: 575px) {
    .services-one .services-one__content-box {
        min-height: auto;
    }

    .services-one .services-one__img {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

    .projects-page .project-two__img {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }
}

/* Contact page social icons */
.contact-page__social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.contact-page__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--fistudy-base, #c9a227);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.contact-page__social a:hover {
    opacity: 0.85;
    color: #fff;
}

/* Floating WhatsApp button */
.erigo-whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366 !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.erigo-whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

.erigo-whatsapp-float:hover {
    color: #fff !important;
    background: #1ebe57 !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
}

@media (max-width: 575px) {
    .erigo-whatsapp-float {
        left: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .erigo-whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Project details split layout */
.project-details__split-box {
    align-items: stretch;
    gap: 30px;
}

.project-details__split-item {
    flex: 1 1 50%;
    max-width: calc(50% - 15px);
}

/* Project gallery */
.project-details__gallery .projects-one__img-box {
    aspect-ratio: 475 / 550;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
}

.project-details__gallery .projects-one__img {
    aspect-ratio: 475 / 550;
    height: auto !important;
    overflow: hidden;
}

.project-details__gallery .projects-one__img img {
    aspect-ratio: 475 / 550;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    display: block;
}

.project-details__cover-col img {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 475 / 550;
    height: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
    display: block;
}

.project-details__cover-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-details__info-col {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px 25px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .project-details__split-box {
        flex-direction: column;
    }

    .project-details__split-item {
        max-width: 100%;
    }

    .project-details__cover-col img {
        max-width: 100%;
        aspect-ratio: 475 / 550;
        height: auto;
    }
}

/* Navbar tweaks (main-menu-two) */
.main-menu-two__logo {
    padding: 28px 0 !important;
}

.main-menu-two .main-menu__list>li {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.main-menu.main-menu-two .main-menu__list>li>a {
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

.main-menu.main-menu-two .main-menu__list>li+li {
    margin-left: 40px !important;
}

.main-menu-two__free-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #1c1810 !important;
    background: linear-gradient(135deg, #e8d9b5 0%, #c9a227 42%, #d4bc6e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(201, 162, 39, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    overflow: visible;
}

.main-menu-two__free-quote-btn::before,
.main-menu-two__free-quote-btn::after {
    display: none;
}

.main-menu-two__free-quote-btn:hover {
    color: #1c1810 !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), 0 3px 10px rgba(201, 162, 39, 0.34);
}

.main-menu-two__mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-menu-two__search-and-nav-sidebar-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 1199px) {
    .main-menu-two__left,
    .main-menu-two__logo,
    .stricky-header.main-menu-two .main-menu-two__left,
    .stricky-header.main-menu-two .main-menu-two__logo {
        display: none !important;
    }

    .main-menu-two__right,
    .stricky-header.main-menu-two .main-menu-two__right {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .main-menu-two__free-quote-btn,
    .stricky-header.main-menu-two .main-menu-two__free-quote-btn {
        display: none !important;
    }

    .main-menu-two__search-and-nav-sidebar-icon,
    .stricky-header.main-menu-two .main-menu-two__search-and-nav-sidebar-icon {
        display: flex !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .main-menu-two .mobile-nav__toggler:hover,
    .stricky-header.main-menu-two .mobile-nav__toggler:hover {
        color: var(--tecture-white);
    }
}

/* Service details - fix header image sizing */
.service-details__img {
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 6px;
}

.service-details__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 991px) {
    .service-details__img {
        height: 380px;
    }
}

/* Homepage scroll-driven hero */
.home-scroll-sequence-page .theme-border-left,
.home-scroll-sequence-page .theme-border-right {
    display: none;
}

.home-scroll-sequence-page .main-header-two {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 40;
    background: transparent;
}

.home-scroll-sequence-page .main-header-two .section-shape-1 {
    display: none;
}

.home-scroll-sequence-page .stricky-header {
    z-index: 45;
}

.hero-sequence {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #050505;
}

.hero-sequence__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-sequence__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.38) 100%);
    pointer-events: none;
}

.hero-sequence__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 0 0 72px;
    pointer-events: none;
}

.hero-sequence__content-inner {
    max-width: 760px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.09) 0%, rgba(0, 0, 0, 0.025) 48%, rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.hero-sequence__title {
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(44px, 6vw, 96px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.hero-sequence__text {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-sequence__loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .hero-sequence__content {
        padding-bottom: 52px;
    }

    .hero-sequence__content-inner {
        padding: 16px 16px;
        border-radius: 20px;
    }

    .hero-sequence__title {
        font-size: clamp(34px, 11vw, 62px);
    }

    .hero-sequence__text {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* SEO content blocks */
.erigo-page-intro,
.erigo-page-intro-block .erigo-page-intro {
    max-width: 920px;
    margin: 0 auto 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
}

.erigo-page-intro-block {
    padding: 10px 0 0;
}

.services-one .erigo-page-intro,
.projects-page .erigo-page-intro {
    margin-bottom: 28px;
}

.erigo-seo-local {
    position: relative;
    padding: 90px 0 70px;
}

.erigo-seo-local__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.erigo-seo-local__lead {
    margin: 18px auto 34px;
    max-width: 960px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.85;
    text-align: center;
}

.erigo-seo-local__grid {
    margin-top: 10px;
}

.erigo-seo-local__card {
    height: 100%;
    padding: 28px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.erigo-seo-local__card h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 24px;
}

.erigo-seo-local__card p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.erigo-seo-local__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.erigo-seo-local__tags li {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.14);
    color: #e8d9b5;
    font-size: 13px;
    line-height: 1.3;
}

.erigo-seo-local__keywords {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.contact-one__seo-text {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

/* TikTok icon (Font Awesome 5.8 font file has no TikTok glyph) */
.fab.fa-tiktok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    position: relative;
    font-size: inherit;
    line-height: 1;
}

.fab.fa-tiktok:before {
    content: "";
    display: block;
    width: 0.92em;
    height: 0.92em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M448 209.9a210.1 210.1 0 0 1-122.8-39.3v178.8A162.6 162.6 0 1 1 185 227.4v80.2a81.6 81.6 0 1 0 71.9 80.5V0h88a121.2 121.2 0 0 0 1.9 22.2 122.2 122.2 0 0 0 53.9 80.2 121.4 121.4 0 0 0 67.3 27.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000' d='M448 209.9a210.1 210.1 0 0 1-122.8-39.3v178.8A162.6 162.6 0 1 1 185 227.4v80.2a81.6 81.6 0 1 0 71.9 80.5V0h88a121.2 121.2 0 0 0 1.9 22.2 122.2 122.2 0 0 0 53.9 80.2 121.4 121.4 0 0 0 67.3 27.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .erigo-seo-local {
        padding: 70px 0 50px;
    }

    .erigo-seo-local__card {
        margin-bottom: 18px;
    }
}
