/* İmta İnşaat - Image & Logo Sizing Overrides */

/* ===== GLOBAL MINIMAL CLEANUP ===== */
/* Hide all animated floating shapes sitewide */
.shape-mockup,
.shape-mockup.animation-infinite,
.section-animation-shape1-1,
.section-animation-shape1-2 {
    display: none !important;
}

/* Shadow title decorations - hide */
.shadow-title {
    display: none !important;
}

/* ===== IMTA HERO — CUSTOM SLIDER ===== */
.imta-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.imta-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.imta-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.90) 0%, rgba(15,52,96,0.82) 100%);
    z-index: 1;
}

.imta-hero-slides {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.imta-hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    padding-top: 120px;
    box-sizing: border-box;
}

.imta-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.imta-hero-slide .container {
    max-width: 800px;
}

.imta-hero-slide h1 {
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.imta-hero-slide p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.imta-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.imta-hero-buttons .btn {
    padding: 14px 30px;
    font-size: 15px;
}

/* Hero arrows */
.imta-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    line-height: 1;
}

.imta-hero-arrow:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.imta-hero-prev { left: 20px; }
.imta-hero-next { right: 20px; }

/* Hero dots */
.imta-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.imta-hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.imta-hero-dots span.active {
    background: var(--theme-color);
    transform: scale(1.3);
}

@media (max-width: 991px) {
    .imta-hero { height: 70vh; }
    .imta-hero-slide h1 { font-size: 2rem; }
}

@media (max-width: 767px) {
    .imta-hero { height: 80vh; }
    .imta-hero-slide { padding-top: 70px; }
    .imta-hero-slide h1 { font-size: 1.5rem; }
    .imta-hero-slide p { font-size: 0.85rem; }
    .imta-hero-arrow { width: 32px; height: 32px; font-size: 16px; }
    .imta-hero-prev { left: 8px; }
    .imta-hero-next { right: 8px; }
    .imta-hero-dots { bottom: 14px; }
    .imta-hero-buttons { flex-direction: column; align-items: center; }
}

/* Portfolio section arrows */
.portfolio-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-arrow:hover {
    background: var(--theme-color);
    color: #fff;
}

.portfolio-arrow-prev {
    left: 15px;
}

.portfolio-arrow-next {
    right: 15px;
}

@media (max-width: 767px) {
    .portfolio-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .portfolio-arrow-prev { left: 5px; }
    .portfolio-arrow-next { right: 5px; }
}

/* Remove gap between hero and about section */
.about-area-1 {
    padding-top: 40px !important;
    margin-top: 0 !important;
}

/* Fix about section - text starts at top, not centered to tall image */
.about-area-1 .row.align-items-center {
    align-items: flex-start !important;
}

/* Reduce about-thumb excessive spacing */
.about-thumb1 {
    padding-right: 60px !important;
    padding-bottom: 30px !important;
}

.about-thumb1 .about-img-1 {
    padding-right: 20px !important;
}

.about-area-1 .about-thumb1 .about-img-1 img {
    max-height: 350px !important;
}

/* Make counter box more compact */
.about-counter-wrap {
    padding: 8px 20px 20px !important;
}

.about-counter-wrap .about-counter-number {
    font-size: 50px !important;
}

.about-counter-wrap .about-counter-text {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

/* ===== BREADCRUMB - THIN NAV BAR ===== */
.breadcumb-wrapper {
    position: relative;
    background: #1a1a2e !important;
    padding: 10px 0 !important;
    min-height: auto !important;
}

.breadcumb-wrapper::before {
    display: none !important;
}

.breadcumb-wrapper .breadcumb-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.breadcumb-wrapper .breadcumb-title {
    font-size: 0.95rem !important;
    color: #fff;
    margin: 0 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.breadcumb-wrapper .breadcumb-menu {
    display: none !important;
}

@media (max-width: 767px) {
    .breadcumb-wrapper {
        padding: 8px 0 !important;
    }
    .breadcumb-wrapper .breadcumb-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .breadcumb-wrapper .breadcumb-title {
        font-size: 0.85rem !important;
    }
}

/* ===== HEADER - CLEAN ===== */
/* Fix address truncation - reduce reserved space for phone box */
.header-layout1 .header-top {
    margin-right: 300px !important;
}

@media (max-width: 1600px) {
    .header-layout1 .header-top {
        margin-right: 280px !important;
    }
}

@media (max-width: 1500px) {
    .header-layout1 .header-top {
        margin-right: 260px !important;
    }
}

@media (max-width: 1299px) {
    .header-layout1 .header-top {
        margin-right: 240px !important;
    }
}

.header-address-full a {
    white-space: normal !important;
    word-break: break-word;
    overflow: visible !important;
    text-overflow: unset !important;
    display: inline !important;
}

.header-top .header-links ul li {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Bizi Arayın box - white clean look */
.header-layout1 .navbar-right-desc {
    background: #fff !important;
    background-image: none !important;
}

.header-layout1 .navbar-right-desc .title {
    color: #333 !important;
}

.header-layout1 .navbar-right-desc .link,
.header-layout1 .navbar-right-desc a {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

.header-layout1 .navbar-right-desc .icon-btn {
    background-color: #1a1a2e !important;
    color: #fff !important;
}

/* ===== REMOVE BG FROM PROCESS AREA SHAPE ===== */
.process_shape_1-3 {
    display: none !important;
}

/* ===== REDUCE SECTION SPACING FOR CLEANER FEEL ===== */
.space {
    padding: 80px 0 !important;
}

.space-top {
    padding-top: 80px !important;
}

.space-bottom {
    padding-bottom: 80px !important;
}

@media (max-width: 991px) {
    .space {
        padding: 60px 0 !important;
    }
    .space-top {
        padding-top: 60px !important;
    }
    .space-bottom {
        padding-bottom: 60px !important;
    }
}

/* ===== REMOVE EXCESSIVE BG IMAGES FROM SECTIONS ===== */
/* Remove process section bg image - keep solid color */
.process-area-1[data-bg-src],
.process-area-1.background-image {
    background-image: none !important;
    background: #f8f9fa !important;
}

.process-area-1[data-bg-src]::before,
.process-area-1.background-image::before {
    display: none !important;
}

/* Process area text - dark on light bg */
.process-area-1 .sec-title.text-white,
.process-area-1 .sub-title.text-white {
    color: #1a1a2e !important;
}

.process-area-1 .sub-title.text-white img {
    filter: brightness(0) saturate(100%);
}

/* Testimonial area - light clean bg instead of photo */
.testimonial-area-1[data-bg-src],
.testimonial-area-1.background-image {
    background-image: none !important;
    background: #f5f5f5 !important;
}

.testimonial-area-1::before {
    display: none !important;
}

/* Counter section - clean bg */
.counter-area-1[data-bg-src],
.counter-area-1.background-image {
    background-image: none !important;
    background: #1a1a2e !important;
}

/* Team card - remove bg decoration */
.team-card[data-bg-src],
.team-card.background-image {
    background-image: none !important;
}

.portfolio-card.style2 .portfolio-card-number {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: auto;
    z-index: 2;
}

/* Projects page - uniform image sizes */
.portfolio-card.style2 .portfolio-card-thumb {
    height: 280px;
    overflow: hidden;
}

.portfolio-card.style2 .portfolio-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .portfolio-card.style2 .portfolio-card-thumb {
        height: 220px;
    }
}

.portfolio-card-details .badge {
    display: inline-block;
    margin-top: 6px;
    margin-bottom: 6px;
}

/* ===== HIZMETLER PAGE - NO HEIGHT RESTRICTIONS ===== */
.service-area-4 .service-card.style3,
.service-area-4 .service-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.service-area-4 .service-card_content {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

.service-area-4 .btn-wrap {
    position: relative !important;
    margin-top: 15px;
}

/* ===== LOGO CONSTRAINTS ===== */
/* Logo area - vertically centered in header bar, only visible on xxl */
.header-layout1 .header-navbar-logo {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0 !important;
    padding: 0 48px !important;
    top: 0;
    bottom: 0;
    height: 100%;
}

@media (min-width: 1400px) {
    .header-layout1 .header-navbar-logo {
        display: flex !important;
    }
}

@media (max-width: 1399px) {
    .header-layout1 .header-navbar-logo {
        display: none !important;
    }
}

.header-navbar-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.header-navbar-logo img {
    max-height: 55px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Logo bg area - match height */
.header-layout1 .menu-area .logo-bg {
    top: 0 !important;
    height: 100% !important;
}

.header-logo img {
    max-height: 55px !important;
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.footer-logo img {
    max-height: 55px !important;
    max-width: 180px !important;
    width: auto !important;
    object-fit: contain;
}

/* Sticky header - slightly smaller logo */
.sticky-wrapper.sticky .header-logo img,
.sticky-wrapper.sticky .header-navbar-logo img {
    max-height: 45px !important;
    max-width: 160px !important;
}

/* Mobile logo smaller */
.mobile-logo img {
    max-height: 45px !important;
    max-width: 160px !important;
    width: auto !important;
    object-fit: contain;
}

/* Logo area fix handled above */

/* Background image sections - ensure photos show nicely */
.background-image,
[data-bg-src] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Dark overlay for readability on photo backgrounds */
.footer-wrapper.footer-layout1 {
    position: relative;
}

.footer-wrapper.footer-layout1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.footer-wrapper.footer-layout1 > * {
    position: relative;
    z-index: 1;
}

/* Breadcrumb overlay - now handled in top section (solid bg, no image) */

/* Testimonial area overlay */
.testimonial-area-1 {
    position: relative;
}

.testimonial-area-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 245, 0.88);
    z-index: 0;
}

.testimonial-area-1 > * {
    position: relative;
    z-index: 1;
}

/* Service area overlay */
.service-area-1[data-bg-src],
.service-area-1.background-image {
    position: relative;
}

.service-area-1[data-bg-src]::before,
.service-area-1.background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.85);
    z-index: 0;
}

.service-area-1[data-bg-src] > *,
.service-area-1.background-image > * {
    position: relative;
    z-index: 1;
}

/* Service card text colors on dark overlay */
.service-area-1 .title-area .sec-title,
.service-area-1 .title-area p,
.service-area-1 .title-area .sub-title {
    color: #fff;
}

/* Contact form area overlay */
.contact-wrap2 {
    position: relative;
}

.contact-wrap2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.70) 0%, rgba(15, 52, 96, 0.55) 100%);
    z-index: 0;
    border-radius: inherit;
}

.contact-wrap2 > * {
    position: relative;
    z-index: 1;
}

/* Testimonial card with photo bg */
.testimonial-card[data-bg-src] {
    background-size: cover !important;
    background-position: center !important;
    position: relative;
}

.testimonial-card[data-bg-src]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 165, 37, 0.85);
    z-index: 0;
    border-radius: inherit;
}

.testimonial-card[data-bg-src] > * {
    position: relative;
    z-index: 1;
}

/* ===== HERO IMAGES ===== */
.hero-thumb img {
    max-height: 600px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ===== ABOUT SECTION IMAGES ===== */
.about-img-1 img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== CTA SECTION ===== */
.cta-thumb1-1 img {
    max-height: 450px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== WHY CHOOSE US ===== */
.wcu-thumb1-1 img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== PORTFOLIO / PROJECT CARDS ===== */
.portfolio-card-thumb img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* ===== CONTACT PAGE CARDS ===== */
.contact-page-card-thumb img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}

/* ===== SERVICE DETAILS ===== */
.service-thumb img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== TEAM CARDS ===== */
.team-card_img img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
}

/* ===== TESTIMONIAL ===== */
.testi-card-thumb img {
    max-height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-details-thumb img {
    max-height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* ===== GENERAL IMAGE OVERFLOW PREVENTION ===== */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent images from breaking layout */
.container img,
.row img {
    max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-thumb img {
        max-height: 400px;
    }
    .about-img-1 img,
    .cta-thumb1-1 img,
    .wcu-thumb1-1 img {
        max-height: 350px;
    }
}

@media (max-width: 767px) {
    .hero-thumb img {
        max-height: 300px;
    }
    .about-img-1 img,
    .cta-thumb1-1 img,
    .wcu-thumb1-1 img {
        max-height: 280px;
    }
    .header-logo img,
    .header-navbar-logo img {
        max-height: 45px !important;
        max-width: 140px !important;
    }
}

/* ===== TEAM CARDS WITHOUT PHOTOS ===== */
.team-card {
    min-height: 200px;
}

.team-card .team-card_content {
    padding: 30px 0;
}

/* Hero bg - handled in top section */

/* Shape images - all hidden via global rule above */

/* Hero background - handled in top section */

/* ===== PROJECT FILTER MENU ===== */
.portfolio-menu.filter-menu-active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0;
}

.portfolio-menu.filter-menu-active button {
    background: transparent;
    border: 2px solid var(--theme-color);
    color: #1a1a2e;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.portfolio-menu.filter-menu-active button:hover,
.portfolio-menu.filter-menu-active button.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
    box-shadow: 0 4px 15px rgba(232, 165, 37, 0.4);
}

/* ===== PROJECT STATUS BADGES ===== */
.badge.bg-status-tamamlandi,
.badge.bg-status-devam_eden,
.badge.bg-status-ruhsat_asamasinda,
.badge.bg-status-proje_asamasinda {
    display: inline-block !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    letter-spacing: 0.3px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}
.badge.bg-status-tamamlandi { background-color: #198754 !important; color: #fff !important; }
.badge.bg-status-devam_eden { background-color: var(--theme-color) !important; color: #fff !important; }
.badge.bg-status-ruhsat_asamasinda { background-color: #0dcaf0 !important; color: #1a1a2e !important; }
.badge.bg-status-proje_asamasinda { background-color: #6f42c1 !important; color: #fff !important; }

/* ===== SERVICE CARD SHADOW TEXT FIX ===== */
.service-card.style3 {
    position: relative;
    overflow: hidden;
}

.service-card-shadow-text {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(232, 165, 37, 0.15);
    z-index: 0;
    pointer-events: none;
}

.service-card.style3 .service-card_content {
    position: relative;
    z-index: 1;
}

/* ===== CONTACT FORM TEXT READABILITY ===== */
.contact-wrap2 .sec-title,
.contact-wrap2 .sub-title,
.contact-wrap2 .contact-form-wrap {
    color: #fff;
}

.contact-wrap2 .form-control,
.contact-wrap2 .form-select {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.contact-wrap2 .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ===== MAP GRAYSCALE REMOVAL ===== */
.map-sec {
    filter: none !important;
    -webkit-filter: none !important;
}

.map-sec iframe {
    filter: none !important;
    -webkit-filter: none !important;
    width: 100%;
    min-height: 450px;
    border: 0;
}

/* ===== PROJECT DETAILS PAGE ===== */
.project-page-thumb {
    position: relative;
}

.project-page-thumb .sidebar-area {
    position: relative;
    margin-top: 30px;
}

.project-details-area .single-page .project-page-thumb > img {
    border-radius: 16px;
    max-height: 500px;
    object-fit: cover;
}

/* ===== PROJECT GALLERY ===== */
.project-gallery {
    margin-top: 40px;
    margin-bottom: 40px;
}

.project-gallery h3 {
    margin-bottom: 20px;
}

.project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.project-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.project-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.project-gallery .gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 767px) {
    .project-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .portfolio-menu.filter-menu-active button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== PROCESS CARD WRAP EQUAL HEIGHT ===== */
.process-card-wrap .row {
    display: flex;
    flex-wrap: wrap;
}

.process-card-wrap .row > [class*="col-"] {
    display: flex;
}

.process-card-wrap .process-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.process-card-wrap .process-card .process-card-title {
    min-height: 52px;
}

.process-card-wrap .process-card .process-card-text {
    flex: 1;
}

@media (max-width: 767px) {
    .process-card-wrap .process-card {
        min-height: auto;
    }
    .process-card-wrap .process-card .process-card-title {
        min-height: auto;
    }
}

/* ===== CONTACT PAGE CARDS EQUAL HEIGHT ===== */
.contact-page-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-page-card .contact-page-card-details {
    flex: 1;
}

.contact-page-card .contact-page-card-thumb {
    margin-top: auto;
}

/* ===== CONTACT WRAP OVERLAY (same as hero) ===== */
.contact-wrap2.background-image::before {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.70) 0%, rgba(15, 52, 96, 0.55) 100%) !important;
}

/* ===== TESTI CARD THUMB FOR FAVICON ===== */
.testi-card-thumb img {
    max-height: 60px !important;
    max-width: 60px !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
}
