/*
Theme Name:        Aras Grup İnşaat
Theme URI:         https://arasgrup.com.tr
Author:            Aras Grup İnşaat A.Ş.
Description:       Custom corporate theme for Aras Grup İnşaat.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      7.0
Requires PHP:      8.0
License:           Proprietary
Text Domain:       aras-grup
*/

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: #F5F3EE;
    color: #1A1A1A;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; display: block; }

::selection { background: #C8A96E; color: #0D0D0D; }

/* ── Brand Tokens ── */
:root {
    --brand-gold:     #C8A96E;
    --brand-dark:     #0D0D0D;
    --brand-charcoal: #1A1A1A;
    --brand-muted:    #7A7A7A;
    --brand-light:    #F5F3EE;
}

/* ── Navbar ── */
#navbar {
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.4s ease;
}
#navbar.inner-page {
    background: rgba(13,13,13,0.97);
}
#navbar.scrolled {
    background: rgba(13,13,13,0.97) !important;
    box-shadow: 0 2px 30px rgba(0,0,0,0.4);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}
.nav-link {
    position: relative;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    padding-bottom: 2px;
    transition: color 0.3s;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: #C8A96E;
    transition: width 0.35s ease;
}
.nav-link:hover,
.nav-link.active { color: #C8A96E; }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Decorative ── */
.gold-rule {
    display: inline-block;
    width: 48px; height: 1px;
    background: #C8A96E;
    vertical-align: middle;
    margin-right: 12px;
}
.breadcrumb-sep::before {
    content: '/';
    margin: 0 0.5rem;
    color: rgba(200,169,110,0.5);
}

/* ── Hero Swiper ── */
.hero-swiper,
.swiper {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}
.swiper-slide { position: relative; overflow: hidden; }
.swiper-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease;
}
.swiper-slide-active img { transform: scale(1); }
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.4) !important;
    width: 28px !important; height: 2px !important;
    border-radius: 0 !important; opacity: 1 !important;
    transition: background 0.3s, width 0.3s !important;
}
.swiper-pagination-bullet-active {
    background: #C8A96E !important;
    width: 52px !important;
}

/* ── Slide Content ── */
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.78) 100%);
}
.slide-content {
    position: absolute;
    bottom: 18%; left: 8%;
    max-width: 680px;
    z-index: 2;
}
.slide-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem; font-weight: 300;
    color: rgba(200,169,110,0.12);
    position: absolute; bottom: -1rem; right: -2rem;
    pointer-events: none; user-select: none; z-index: 1;
}

/* ── Scroll Down ── */
.scroll-down { animation: bounce 2s infinite; }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ── Blueprint BG ── */
.blueprint-bg {
    background-color: #0D1117;
    background-image:
        linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Stat Block (Anasayfa) ── */
.stat-block { border-left: 1px solid rgba(200,169,110,0.3); }

/* ── Project Rows ── */
.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}
.project-row:nth-child(even) .project-img  { order: 2; }
.project-row:nth-child(even) .project-text { order: 1; }
.project-img { overflow: hidden; aspect-ratio: 4/3; }
.project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.project-row:hover .project-img img { transform: scale(1.04); }
.project-text {
    background: #1A1A1A;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 4rem 4.5rem;
}
.project-tag {
    font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: #C8A96E;
    font-weight: 500; display: block;
}

/* ── Service Card ── */
.service-card {
    border: 1px solid rgba(200,169,110,0.15);
    transition: border-color 0.35s, transform 0.35s, background 0.35s;
    cursor: pointer;
}
.service-card:hover {
    border-color: #C8A96E;
    background: #1A1A1A !important;
    transform: translateY(-6px);
}

/* ── Gallery Swiper ── */
.gallery-thumb .swiper-slide {
    cursor: pointer; opacity: 0.5;
    transition: opacity 0.3s;
    aspect-ratio: 4/3; overflow: hidden;
}
.gallery-thumb .swiper-slide-thumb-active { opacity: 1; }
.gallery-main .swiper-slide { aspect-ratio: 16/10; }
.gallery-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px;
    background: rgba(13,13,13,0.6);
    border: 1px solid rgba(200,169,110,0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.gallery-nav-btn:hover { background: #C8A96E; }
.gallery-nav-btn:hover svg { color: #0D0D0D; }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
    position: fixed; bottom: 2rem; right: 2rem;
    z-index: 997; display: flex; align-items: center;
}
.whatsapp-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.72rem; font-weight: 500;
    white-space: nowrap; color: #fff;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1rem 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 0; overflow: hidden; opacity: 0;
    transition: max-width 0.4s ease, opacity 0.35s ease;
    pointer-events: none;
}
.whatsapp-fab:hover .whatsapp-label { max-width: 260px; opacity: 1; }
.whatsapp-btn {
    width: 56px; height: 56px; background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    flex-shrink: 0; position: relative; text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}
.whatsapp-btn::before {
    content: ''; position: absolute; inset: 0;
    background: #25D366; opacity: 0.3;
    animation: wa-ripple 2.2s infinite;
}
@keyframes wa-ripple {
    0%   { transform: scale(1); opacity: 0.4; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}
.whatsapp-btn svg { width: 26px; height: 26px; fill: #fff; position: relative; z-index: 1; }

/* ── Newsletter ── */
.newsletter-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,169,110,0.25);
    color: #fff; outline: none;
    transition: border-color 0.3s;
    font-family: 'Barlow', sans-serif; font-weight: 300;
}
.newsletter-input:focus { border-color: #C8A96E; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }

/* ── Footer ── */
footer { background: #0D0D0D; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li a,
footer .footer-link {
    color: rgba(255,255,255,0.45);
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem; font-weight: 300;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.2rem 0;
}
footer ul li a:hover,
footer .footer-link:hover { color: #C8A96E; }
footer h5 {
    color: #fff !important;
    font-family: 'Barlow', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.25em;
    text-transform: uppercase; font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ── Hakkımızda Stat ── */
.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600; color: #C8A96E; line-height: 1;
}

/* ── Utility Fallbacks ── */
.bg-brand-charcoal { background-color: #1A1A1A; }
.bg-brand-light     { background-color: #F5F3EE; }
.bg-brand-dark      { background-color: #0D0D0D; }
.bg-brand-slate     { background-color: #2C2C2C; }
.bg-brand-gold      { background-color: #C8A96E; }
.text-brand-gold    { color: #C8A96E; }
.text-brand-dark    { color: #0D0D0D; }
.text-brand-muted   { color: #7A7A7A; }

/* ── WP Fixes ── */
.wp-site-blocks { padding: 0 !important; }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute !important;
    height: 1px; width: 1px; overflow: hidden;
}

/* ══════════════════════════════════════
   MOBİL RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Navbar */
    #navbar { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

    /* Hero */
    .hero-swiper, .swiper { height: 100svh !important; }
    .slide-content {
        bottom: 14% !important;
        left: 1.25rem !important;
        right: 1.25rem !important;
        max-width: calc(100% - 2.5rem) !important;
    }
    .slide-content h1 { font-size: clamp(2rem, 9vw, 3.25rem) !important; }
    .slide-content p  { font-size: 0.85rem !important; }
    .slide-number { display: none !important; }

    /* Stats */
    .stat-block {
        border-left: none !important;
        border-top: 1px solid rgba(200,169,110,0.2) !important;
        padding: 1.25rem 1rem !important;
    }
    .stat-block:first-child { border-top: none !important; }

    /* Project rows */
    .project-row { grid-template-columns: 1fr !important; }
    .project-row:nth-child(even) .project-img,
    .project-row:nth-child(even) .project-text { order: unset !important; }
    .project-img { aspect-ratio: 16/9 !important; }
    .project-text { padding: 2rem 1.5rem !important; }

    /* WhatsApp */
    .whatsapp-fab  { bottom: 1.25rem !important; right: 1.25rem !important; }
    .whatsapp-btn  { width: 48px !important; height: 48px !important; }
    .whatsapp-btn svg { width: 22px !important; height: 22px !important; }

    /* İletişim */
    .contact-grid  { grid-template-columns: 1fr !important; padding: 2.5rem 1.25rem !important; }
    .form-row      { grid-template-columns: 1fr !important; }
    .map-wrap iframe { height: 320px !important; }
    .map-pin {
        left: 1rem !important; right: 1rem !important;
        top: auto !important; bottom: 1rem !important;
        transform: none !important; min-width: unset !important;
    }

    /* Projeler */
    #projects-grid { grid-template-columns: 1fr !important; }
    #projects-grid article[style*="grid-column"] { grid-column: span 1 !important; }

    /* Footer */
    footer .grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 480px) {
    .slide-content h1 { font-size: 1.9rem !important; line-height: 1.15 !important; }
    .slide-content p  { display: none !important; }
}