/* ==========================================================================
   TÜRELİ ŞİRKETLER GRUBU — RESPONSIVE MASTER DESIGN SYSTEM (responsive.css)
   ========================================================================== */

/* Global Anti-Overflow Rules */
html,
body {
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   1. TABLET & LAPTOP (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Navigation Bar */
  .desktop-only {
    display: none !important;
  }

  .mobile-only-header {
    display: flex !important;
  }

  .cls-3f00d2 {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 350 !important;
  }

  .cls-c06300 {
    height: 64px;
  }

  .cls-3ef80b {
    height: 32px;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 360;
    cursor: pointer;
  }

  .mobile-menu-btn * {
    pointer-events: none;
  }

  /* Mobile Menu Drawer */
  #mobile-menu {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 64px) !important;
    z-index: 340 !important;
    background: var(--navy) !important;
    padding: 2rem 1.5rem !important;
    overflow-y: auto !important;
    display: none;
    flex-direction: column;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  #mobile-menu.active {
    display: flex !important;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-nav-link {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s, padding-left 0.2s;
  }

  .mobile-nav-link:hover {
    color: var(--amber);
    padding-left: 0.5rem;
  }

  /* About / Kurumsal Section */
  .cls-54351a {
    grid-template-columns: 1fr !important;
    gap: 3.5rem !important;
    margin-bottom: 4rem !important;
  }

  .cls-9c59d6 {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  /* Grid Reductions */
  .cls-691671 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cls-ae13e0 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cls-31a24b {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .values-grid-nef {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem 2rem !important;
    margin-top: 2.5rem !important;
  }

  .cls-268b07 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Footer 4-col to 2-col */
  footer div[style*="grid-template-columns: 1.5fr 1fr 1fr 1.2fr"],
  footer div[style*="grid-template-columns: 1.4fr 1fr 1fr 1.2fr"],
  .cls-1722ef {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }

  /* ---- Projeler listesi (pl-) ---- */
  .pl-hero {
    height: clamp(320px, 46vw, 420px) !important;
    min-height: 320px !important;
  }

  .pl-grid {
    gap: 2rem 1.25rem !important;
  }

  .pl-card.is-featured {
    grid-template-columns: 1fr !important;
  }

  .pl-card.is-featured .pl-card-media {
    min-height: 260px !important;
  }

  .pl-card.is-featured .pl-card-body {
    padding: 1.5rem 1.35rem 1.4rem !important;
  }

  /* ---- Proje detay (pd-) ---- */
  .pd-hero {
    height: clamp(340px, 50vw, 460px) !important;
    min-height: 340px !important;
  }

  .pd-hero-content {
    padding-bottom: 6.5rem !important;
  }

  .pd-kunye {
    grid-template-columns: 1fr 1fr !important;
  }

  .pd-kunye-item:nth-child(2n) {
    border-right: none !important;
  }

  .pd-kunye-item:nth-child(-n+2) {
    border-bottom: 1px solid #eceae5 !important;
  }

  .pd-about-grid,
  .pd-sheet-grid,
  .pd-sheet-note,
  .pd-contact-grid {
    grid-template-columns: 1fr !important;
  }

  .pd-about-grid { gap: 2rem !important; }
  .pd-sheet-grid { gap: 1.5rem !important; }
  .pd-sheet-note { gap: 1.25rem !important; align-items: start !important; }
  .pd-contact-grid { gap: 2.25rem !important; }

  .pd-about-media::after {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. MOBILE PHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Slider Container */
  .cls-1d25d2 {
    height: 82vh !important;
    min-height: 480px !important;
    max-height: 620px !important;
    max-width: 100vw !important;
  }

  .cls-5a0d8d {
    padding-bottom: 4.5rem !important;
  }

  /* Hero Content Scaled Down For Mobile */
  .hero-slide-tag {
    font-size: 0.72rem !important;
    margin-bottom: 0.65rem !important;
    gap: 0.5rem !important;
  }

  .hero-slide-tag::before {
    width: 16px !important;
  }

  .hero-slide-title {
    font-size: clamp(1.65rem, 6.8vw, 2.25rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.65rem !important;
    letter-spacing: 0 !important;
  }

  .hero-slide-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    margin-bottom: 1.25rem !important;
    color: rgba(246, 244, 239, 0.8) !important;
  }

  .hero-cta-group {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: auto !important;
    justify-content: flex-start !important;
  }

  .hero-btn-primary {
    padding: 0.7rem 1.35rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em !important;
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .hero-btn-secondary {
    padding: 0.7rem 1.35rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em !important;
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  /* Slider Bottom Bar */
  .cls-2c16d3 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .cls-ac2540 {
    padding: 0.5rem 1.25rem !important;
    gap: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cls-f27d20 {
    font-size: 0.72rem !important;
  }

  /* Section Padding — yatay boşluk container'dan gelir (istatistik full kalır) */
  .cls-d4ac16,
  .cls-088e1b,
  .cls-803ed5,
  #degerlerimiz,
  .values-master-section,
  .projects-master-section,
  .news-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cls-d4ac16,
  .cls-088e1b,
  #degerlerimiz,
  .values-master-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .values-grid-nef {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
  }

  /* About Experience Badge */
  .cls-a2f035 {
    top: -8px !important;
    right: 0 !important;
    padding: 0.85rem 1rem !important;
  }

  .cls-453766 {
    font-size: 1.85rem !important;
  }

  .cls-a5e267 {
    font-size: 0.62rem !important;
  }

  /* General Grid to 1-col */
  .cls-691671,
  .cls-ae13e0,
  .cls-31a24b,
  .cls-64b090,
  .cls-b6db0f,
  .cls-0f636d,
  .cls-d0ed12,
  .two-col,
  .three-col,
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .cls-268b07 {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.5rem 1rem !important;
  }

  /* Footer to 1-col */
  footer div[style*="grid-template-columns: 1.5fr 1fr 1fr 1.2fr"],
  footer div[style*="grid-template-columns: 1.4fr 1fr 1fr 1.2fr"],
  footer div[style*="grid-template-columns: 1fr 1fr"],
  /* Modern Projects Section Mobile */
  .projects-master-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .projects-header-wrap {
    margin-bottom: 1.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 1rem !important;
  }

  .projects-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 2.5rem !important;
  }

  .proj-card-item,
  .proj-card-item.featured {
    grid-column: auto !important;
    min-height: 330px !important;
  }

  .proj-info-overlay {
    padding: 1.25rem !important;
  }

  .proj-title,
  .proj-card-item.featured .proj-title {
    font-size: 1.25rem !important;
  }

  .proj-desc {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  /* News Section Mobile Padding */
  .news-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .news-section-inner {
    padding: 0 !important;
    max-width: var(--container-max) !important;
    box-sizing: border-box !important;
  }

  /* Search Drawer Mobile Tuning */
  .search-modal-drawer {
    padding: 1.25rem 1rem 1.25rem !important;
  }

  .search-modal-title {
    font-size: 1.05rem !important;
  }

  .search-input-wrap {
    padding: 3px 3px 3px 10px !important;
  }

  .search-text-input {
    font-size: 0.88rem !important;
  }

  .search-submit-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.78rem !important;
  }

  .popular-search-tag {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
  }

  .search-res-item {
    padding: 0.5rem 0.65rem !important;
  }

  /* Kurumsal / Banner Mobile Tweaks */
  .holding-hero-banner {
    padding: 7.5rem 0 3.5rem 0 !important; /* Top accounts for 64px fixed header */
  }
  .holding-hero-title {
    font-size: 1.8rem !important;
  }
  .holding-hero-subtitle {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem;
  }
  .holding-breadcrumb {
    font-size: 0.65rem !important;
    margin-bottom: 0.8rem;
  }

  /* Corporate Hub Layout */
  .corp-intro-section { padding: 50px 0 30px 0 !important; }
  .corp-intro-text { font-size: 1.1rem !important; margin-bottom: 20px !important; }

  .tureli-hub-section {
    padding: 50px 0 60px 0 !important;
  }
  .tureli-hub-container {
    gap: 40px !important;
  }
  .tureli-hub-col {
    gap: 40px !important;
  }
  .tureli-hub-img {
    height: 180px !important;
    margin-bottom: 15px !important;
  }
  .tureli-hub-title {
    font-size: 1.4rem !important;
  }
  .tureli-hub-desc {
    font-size: 0.95rem !important;
  }
  .tureli-bg-text {
    font-size: 35vw !important;
  }

  /* Global Corporate Mobile Reset (Typography & Padding) */
  .corp-detail-section h2, .tureli-hub-section h2, .corp-contact-section h2, .corp-intro-section h2, .corp-dir-section h2 {
    font-size: 1.6rem !important;
    margin-bottom: 20px !important;
  }
  .corp-detail-section h3, .tureli-hub-section h3, .corp-contact-section h3, .corp-intro-section h3, .corp-dir-section h3 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
  }
  .corp-detail-section p, .tureli-hub-section p, .corp-contact-section p, .corp-intro-section p, .corp-dir-section p,
  .corp-detail-section div, .tureli-hub-section div, .corp-contact-section div, .corp-intro-section div, .corp-dir-section div {
    /* Target text blocks inside these sections to scale down font-size */
  }
  
  /* Specifically target the rich text and paragraphs */
  .corp-detail-section p, .corp-contact-section p, .tureli-hub-section p, .corp-intro-section p, .corp-dir-section p,
  .corp-detail-section [style*="font-size: 1.15rem"],
  .corp-detail-section [style*="font-size: 1.05rem"],
  .corp-contact-section [style*="font-size: 1.1rem"] {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  
  /* specifically target spans that are subtitles or tags */
  .corp-detail-section span, .corp-contact-section span, .tureli-hub-section span, .corp-intro-section span, .corp-dir-section span {
    font-size: 0.85rem !important;
  }

  /* Section paddings — yatay boşluk container değişkeninden gelir */
  .corp-detail-section, .tureli-hub-section, .corp-contact-section, .corp-dir-section {
    padding: 50px 0 !important;
  }
  .corp-detail-container, .tureli-hub-container, .corp-contact-container, .corp-dir-container {
    gap: 30px !important;
  }
  .corp-detail-excerpt {
    font-size: 1.2rem !important;
    margin-bottom: 30px !important;
  }
  .corp-detail-title {
    font-size: 1.6rem !important;
  }
  .corp-nav-section {
    padding: 25px 0 !important;
  }

  /* Mobile Bottom Navigation */
  .corp-nav-container {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .corp-nav-separator {
    width: 100% !important;
    height: 1px !important;
    background: #e1e4e8 !important;
    margin: 5px 0 !important;
  }
  .corp-nav-link {
    font-size: 0.85rem !important;
    text-align: center !important;
    width: 100% !important;
    padding: 8px 0 !important;
  }

  /* ---- Projeler listesi (pl-) ---- */
  .pl-hero {
    height: clamp(280px, 58vw, 360px) !important;
    min-height: 280px !important;
  }

  .pl-hero-inner {
    padding: 3rem 1.25rem !important;
  }

  .pl-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 2rem 0 1.25rem !important;
  }

  .pl-filters {
    width: 100% !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .pl-filter {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  .pl-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding-bottom: 3rem !important;
  }

  .pl-card.is-featured {
    grid-column: auto !important;
  }

  .pl-card.is-featured .pl-card-media {
    min-height: 220px !important;
  }

  .pl-card-title {
    font-size: 1.2rem !important;
  }

  .pl-card.is-featured .pl-card-title {
    font-size: 1.35rem !important;
  }

  .pl-card-foot {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* ---- Proje detay (pd-) ---- */
  .pd-hero {
    height: clamp(300px, 62vw, 400px) !important;
    min-height: 300px !important;
  }

  .pd-hero-content {
    padding-bottom: 5.5rem !important;
  }

  .pd-hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
  }

  .pd-hero-crumb {
    font-size: 0.65rem !important;
    flex-wrap: wrap !important;
  }

  /* Künye: dikey yığın yerine tek satırlık kompakt kayıtlar */
  .pd-kunye-wrap {
    margin-top: -32px !important;
  }

  .pd-kunye {
    grid-template-columns: 1fr !important;
    box-shadow: 0 8px 24px rgba(6, 21, 41, 0.08) !important;
  }

  .pd-kunye-item {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.7rem !important;
    padding: 0.85rem 1rem !important;
    border-right: none !important;
    border-bottom: 1px solid #eceae5 !important;
  }

  .pd-kunye-item:last-child {
    border-bottom: none !important;
  }

  .pd-kunye-icon {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 0 !important;
  }

  .pd-kunye-label {
    margin-bottom: 0 !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.08em !important;
  }

  .pd-kunye-value {
    font-size: 0.95rem !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .pd-about {
    padding-top: 40px !important;
  }

  .pd-about-title {
    font-size: 1.4rem !important;
  }

  .pd-sheet-line {
    grid-template-columns: 1fr !important;
    gap: 0.15rem !important;
  }

  .pd-sheet-note {
    padding-left: 1rem !important;
  }

  .pd-gallery-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .pd-gallery-item {
    flex: 0 0 calc((100% - 14px) / 2) !important;
    max-width: calc((100% - 14px) / 2) !important;
  }

  .pd-faq-item summary {
    font-size: 0.95rem !important;
    gap: 0.85rem !important;
  }

  .pd-faq-answer {
    padding-right: 0 !important;
    font-size: 0.92rem !important;
  }

  .pd-contact-form {
    padding: 1.5rem 1.25rem !important;
  }

  .pd-lightbox {
    padding: 1rem !important;
  }

  .pd-lightbox-nav {
    width: 38px !important;
    height: 38px !important;
  }

  .pd-lightbox-nav--prev { left: 0.5rem !important; }
  .pd-lightbox-nav--next { right: 0.5rem !important; }
}

/* --------------------------------------------------------------------------
   3. SMALL PHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-slide-title {
    font-size: 1.65rem !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
  }

  .hero-slide-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .hero-cta-group {
    gap: 0.4rem !important;
    width: auto !important;
    display: inline-flex !important;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.76rem !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .display-xl,
  .cls-f99512,
  .cls-16e1fe,
  .cls-cce83e {
    font-size: 1.75rem !important;
  }

  .search-popular-tags {
    gap: 0.35rem !important;
  }

  /* ---- Projeler listesi (pl-) ---- */
  .pl-hero-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }

  .pl-hero-sub {
    font-size: 0.9rem !important;
  }

  .pl-card-desc {
    font-size: 0.88rem !important;
  }

  /* ---- Proje detay (pd-) ---- */
  .pd-hero-title {
    font-size: 1.55rem !important;
    line-height: 1.22 !important;
  }

  .pd-gallery-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .pd-gallery-controls {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  .pd-sheet-note-body,
  .pd-about-text {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }

  .pd-sheet-link,
  .pd-about-link {
    white-space: normal !important;
  }

  .pd-field input,
  .pd-field textarea {
    font-size: 16px !important; /* iOS zoom engelle */
  }
}
