/* =============================================
   Bonzet İnşaat - Custom Styles
   ============================================= */

/* Base */
html {
    font-size: 18px;
}

body {
    font-family: 'ProximaNova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #222222;
    overflow-x: hidden;
}

/* Swiper Customizations */
.hero-slider .swiper-slide {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slider .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
}

/* Keep first slide visible before Swiper JS initializes (prevents hidden hero) */
.hero-slider:not(.swiper-initialized) .swiper-slide:first-child {
    opacity: 1 !important;
    pointer-events: auto !important;
}

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

.hero-dots .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-dots .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dots .swiper-pagination-bullet-active {
    background: #ff6418;
    transform: scale(1.2);
}

/* Hero arrows — alt köşelerde konumlandırıldı, her ekranda görünür */

/* Services Carousel */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.services-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.services-slider .swiper-slide {
    height: 548px;
}

.services-slider .slide-content {
    position: relative;
    z-index: 2;
}

/* Header — transparent overlay by default */
#site-header-wrap {
    background: transparent;
}

/* Logo swap: two logos cross-fade on scroll */
.header-logo-wrap {
    display: block;
    height: 120px;
    overflow: hidden;
    transition: height 0.3s ease;
}

.header-logo--default {
    height: 120px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.header-logo--scrolled {
    height: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-inner {
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Scrolled: hide big logo, show small logo */
#site-header-wrap.header-scrolled .header-logo-wrap {
    height: 50px;
}

#site-header-wrap.header-scrolled .header-logo--default {
    opacity: 0;
    height: 0;
    pointer-events: none;
}

#site-header-wrap.header-scrolled .header-logo--scrolled {
    opacity: 1;
    pointer-events: auto;
}

#site-header-wrap.header-scrolled .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

#site-header-wrap.header-scrolled {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Scrolled state: recolor header elements to dark */
#site-header-wrap.header-scrolled .header-slogan {
    color: #898989;
}

#site-header-wrap.header-scrolled .header-link {
    color: #34477c;
}

#site-header-wrap.header-scrolled .header-link:hover {
    color: #ff6418;
}

#site-header-wrap.header-scrolled .header-separator {
    color: rgba(52, 71, 124, 0.3);
}

/* Hamburger Menu */
.hamburger-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    padding: 8px 14px;
    transition: all 0.3s;
}

.hamburger-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 18px;
    gap: 0;
}

.hamburger-lines span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 2.5px 0;
    transition: all 0.3s;
    border-radius: 1px;
}

/* Scrolled state */
#site-header-wrap.header-scrolled .hamburger-btn {
    border-color: rgba(52, 71, 124, 0.3);
}

#site-header-wrap.header-scrolled .hamburger-btn:hover {
    border-color: rgba(52, 71, 124, 0.6);
    background: rgba(52, 71, 124, 0.04);
}

#site-header-wrap.header-scrolled .hamburger-lines span {
    background: #34477c;
}

#site-header-wrap.header-scrolled .hamburger-btn .header-link {
    color: #34477c;
}

.hamburger-btn.is-active .hamburger-lines span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.is-active .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active .hamburger-lines span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(107, 40, 122, 0.94);
    z-index: 1;
}

.mobile-menu-overlay .menu-content {
    position: relative;
    z-index: 2;
}

/* Sub-page banner */
.sub-page-banner {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sub-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* Sub-page menu bar */
.sub-page-menu {
    background: #2597bc;
    height: 70px;
}

.sub-page-menu a {
    color: #ffffff;
    font-size: 1.375rem;
    transition: color 0.3s;
}

.sub-page-menu a:hover,
.sub-page-menu a.active {
    color: #222222;
}

.sub-page-menu .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 20px;
}

/* Contact info bar */
.contact-info-bar {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

/* Footer */
.site-footer {
    background: #f1f1f1;
}

.call-us-bar {
    background-size: cover;
    background-position: center;
}

/* Project card hover */
.project-card {
    overflow: hidden;
}

.project-card img {
    transition: transform 0.4s ease;
}

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

/* Team member card */
.team-card img {
    transition: transform 0.4s ease;
}

.team-card:hover img {
    transform: scale(1.03);
}

/* Team bio expand/collapse */
.team-bio-content {
    transition: max-height 0.5s ease;
    overflow: hidden;
}

.team-bio-content.bio-expanded {
    overflow: visible;
}

.team-bio-content .bio-fade {
    transition: opacity 0.3s ease;
}

/* Certificate card */
.certificate-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Certificate PDF Modal */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cert-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.cert-modal-container {
    position: relative;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.cert-modal.is-open .cert-modal-container {
    transform: scale(1) translateY(0);
}

.cert-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #34477c;
    gap: 16px;
    flex-shrink: 0;
}

.cert-modal-body {
    flex: 1;
    background: #f5f5f5;
    overflow: hidden;
}

@media (max-width: 768px) {
    .cert-modal-container {
        width: 96vw;
        height: 90vh;
    }

    .cert-modal-header {
        padding: 12px 16px;
    }

    .cert-modal-header h3 {
        font-size: 0.875rem;
    }
}

/* Contact Form 7 on dark background */
.contact-form-dark .wpcf7-form label,
.contact-form-dark .wpcf7-form span {
    color: #fff;
    font-family: 'DINNextCYR', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form-dark .wpcf7-form input[type="text"],
.contact-form-dark .wpcf7-form input[type="email"],
.contact-form-dark .wpcf7-form input[type="tel"],
.contact-form-dark .wpcf7-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'DINNextCYR', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.contact-form-dark .wpcf7-form input::placeholder,
.contact-form-dark .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-dark .wpcf7-form input:focus,
.contact-form-dark .wpcf7-form textarea:focus {
    border-color: #009344;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.contact-form-dark .wpcf7-form input[type="submit"] {
    width: 100%;
    background: #009344;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-family: 'DINNextCYR', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form-dark .wpcf7-form input[type="submit"]:hover {
    background: #007a38;
}

.contact-form-dark .wpcf7-form p {
    margin-bottom: 12px;
}

.contact-form-dark .wpcf7-response-output {
    color: #fff !important;
    background: rgba(255, 100, 24, 0.15);
    border: 2px solid #ff6418 !important;
    border-radius: 8px;
    padding: 12px 16px !important;
    margin-top: 16px !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form-dark .wpcf7-response-output:empty {
    display: none !important;
}

.contact-form-dark .wpcf7-mail-sent-ok {
    background: rgba(46, 194, 126, 0.2) !important;
    border-color: #2ec27e !important;
}

.contact-form-dark .wpcf7-not-valid-tip {
    color: #ffb380 !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    margin-top: 6px;
    display: block !important;
    background: rgba(255, 100, 24, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #ff6418;
}

.contact-form-dark .wpcf7-form input.wpcf7-not-valid,
.contact-form-dark .wpcf7-form textarea.wpcf7-not-valid {
    border-color: #ff6418 !important;
    background: rgba(255, 100, 24, 0.08) !important;
}

/* Suppress browser native :invalid styling before CF7 validates */
.contact-form-dark .wpcf7-form input:invalid:not(.wpcf7-not-valid),
.contact-form-dark .wpcf7-form textarea:invalid:not(.wpcf7-not-valid) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    outline: none;
}

.contact-form-dark .wpcf7-acceptance .wpcf7-list-item-label {
    color: #fff;
}

/* Pagination */
.page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    display: inline-flex;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: 'DINNextCYR', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
}

.page-numbers a {
    background: #fff;
    color: #474747;
    border: 1px solid #e5e5e5;
}

.page-numbers a:hover {
    background: #009344;
    color: #fff;
    border-color: #009344;
}

.page-numbers .current {
    background: #009344;
    color: #fff;
    border: 1px solid #009344;
}

/* WordPress overrides */
img {
    max-width: 100%;
    height: auto;
}

.wp-block-image {
    margin: 0;
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #4f7863;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: #3d5e4d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider .swiper-slide {
        min-height: 500px;
    }

    .hero-slider .swiper-pagination {
        right: 15px;
    }

    .services-slider .swiper-slide {
        height: 350px;
    }

    /* Shrink header logo on tablet to prevent overlap with banner title */
    .header-logo-wrap {
        height: 80px;
    }

    .header-logo--default {
        height: 80px;
    }

    .sub-page-banner {
        height: 220px;
        padding-top: 90px;
    }

    .sub-page-menu a {
        font-size: 1rem;
    }

    .sub-page-menu .separator {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider .swiper-pagination {
        display: none;
    }

    .hero-slider .swiper-slide {
        min-height: 400px;
    }

    .hero-slider .slide-content h2 {
        font-size: 1.5rem;
    }

    .hero-slider .slide-content p {
        font-size: 1rem;
    }

    .services-slider .swiper-slide {
        height: 350px;
    }

    /* Shrink header logo on mobile to prevent overlap with banner title */
    .header-logo-wrap {
        height: 70px;
    }

    .header-logo--default {
        height: 70px;
    }

    .sub-page-banner {
        height: 200px;
        padding-top: 100px;
    }

    .sub-page-menu {
        height: auto;
        padding: 12px 0;
    }

    .sub-page-menu a {
        font-size: 0.875rem;
    }

    .sub-page-menu .separator {
        margin: 0 6px;
    }
}

/* =============================================
   Project Detail Page
   ============================================= */

/* Hero */
.project-hero {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Gallery Bento Grid */
.project-gallery-grid {
    display: grid;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.project-gallery-grid--1 {
    grid-template-columns: 1fr;
    grid-template-rows: 420px;
}

.project-gallery-grid--2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px;
}

.project-gallery-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
}

.project-gallery-grid--3 .project-gallery-item--hero {
    grid-row: 1 / 3;
}

.project-gallery-grid--4 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
}

.project-gallery-grid--4 .project-gallery-item--hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.project-gallery-grid--many {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 260px 260px;
}

.project-gallery-grid--many .project-gallery-item--hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Gallery Item */
.project-gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.project-gallery-item img {
    transition: transform 0.6s ease;
}

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

/* Gallery hover overlay */
.project-gallery-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
    z-index: 2;
}

.project-gallery-hover i {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.project-gallery-item:hover .project-gallery-hover {
    background: rgba(0, 0, 0, 0.3);
}

.project-gallery-item:hover .project-gallery-hover i {
    opacity: 1;
    transform: scale(1);
}

/* Gallery "+X more" overlay */
.project-gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background 0.3s ease;
}

.project-gallery-item:hover .project-gallery-more {
    background: rgba(0, 0, 0, 0.7);
}

/* GLightbox bonzet skin overrides */
.glightbox-clean .gslide-description {
    background: transparent;
}

.glightbox-clean .gslide-title {
    font-family: 'ProximaNova', sans-serif;
    color: #fff;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: rgba(0, 147, 68, 0.8);
    border-radius: 50%;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: rgba(0, 147, 68, 1);
}

.glightbox-clean .gclose {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

/* Responsive: Gallery */
@media (max-width: 768px) {
    .project-hero {
        height: 45vh;
        min-height: 280px;
    }

    .project-gallery-grid--3,
    .project-gallery-grid--4,
    .project-gallery-grid--many {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .project-gallery-grid--3 .project-gallery-item--hero,
    .project-gallery-grid--4 .project-gallery-item--hero,
    .project-gallery-grid--many .project-gallery-item--hero {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .project-gallery-grid--1 {
        grid-template-rows: 280px;
    }

    .project-gallery-grid--2 {
        grid-template-rows: 240px;
    }
}

@media (max-width: 480px) {
    .project-hero {
        height: 40vh;
        min-height: 240px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
    }

    .project-gallery-grid .project-gallery-item {
        height: 220px;
        grid-column: auto;
        grid-row: auto;
    }
}

/* Print styles */
@media print {
    .site-header,
    #site-header-wrap,
    .mobile-menu-overlay,
    .scroll-top-btn,
    .call-us-bar,
    .site-footer,
    .contact-info-bar,
    .sub-page-menu,
    .hero-slider,
    .services-section,
    .references-slider,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev,
    nav[aria-label="Breadcrumb"] {
        display: none !important;
    }

    .sub-page-banner {
        height: auto;
        min-height: 0;
        background-image: none !important;
        padding: 20px 0;
    }

    .sub-page-banner::before {
        display: none;
    }

    .sub-page-banner h1 {
        color: #000 !important;
        font-size: 24pt;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after,
    a[href^="tel"]::after {
        content: "";
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .project-card,
    .certificate-card {
        break-inside: avoid;
        box-shadow: none !important;
    }
}
