/*
   Elazığ Merkez Sıhhi Tesisat — Mobile CSS
   iOS & Android tam uyumluluk
   Breakpoints: 1200 / 1024 / 768 / 480 / 360
*/

/* ============================================================
   1. GLOBAL iOS / ANDROID FIXES
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* iOS momentum scroll */
  -webkit-overflow-scrolling: touch;
}

/* Prevent double-tap zoom on buttons/links */
a, button, input, select, textarea {
  touch-action: manipulation;
}

/* iOS input zoom fix — minimum 16px */
input, textarea, select {
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* Better tap targets — minimum 44×44px */
a, button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a, .nav-links a {
  min-height: 44px;
}

/* Image fix */
img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

/* iOS safe area — floating elements */
.whatsapp-float {
  bottom: calc(88px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
}
.back-to-top {
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: calc(16px + env(safe-area-inset-left));
  right: auto;
}

/* Footer bottom safe area */
.footer-bottom {
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* Navbar safe area top */
.navbar {
  padding-top: env(safe-area-inset-top);
}

/* ============================================================
   2. NAVBAR — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: 64px;
  }

  .nav-container {
    padding: 0 16px;
    min-height: 64px;
  }

  /* Mobile menu — full screen overlay */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 320px;
    background: rgba(5, 8, 15, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(80px + env(safe-area-inset-top)) 24px 40px;
    gap: 2px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.6);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 14px 18px;
    width: 100%;
    border-radius: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(37, 99, 235, 0.15);
    color: #fff;
  }

  /* Hamburger — 44px touch target */
  .hamburger {
    display: flex;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
  }

  .hamburger span {
    display: block;
    height: 2px;
    width: 22px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* CTA button in nav */
  .nav-right .btn-primary {
    display: none;
  }

  .nav-phone {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.85rem;
  }

  .nav-phone span {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;
  }

  .logo-svg {
    height: 30px;
  }
}

/* ============================================================
   3. HERO SECTION — MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content-wrap {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    /* iOS Safari 100vh fix */
    min-height: 100svh;
    min-height: -webkit-fill-available;
    min-height: 100vh;
    padding: 100px 0 60px;
  }

  .hero-content {
    text-align: center;
    padding: 0 4px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 8px 16px;
    margin: 0 auto 20px;
    display: inline-flex;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin-top: 32px;
    padding: 16px;
  }

  .stat {
    flex: 1 1 45%;
    min-width: 120px;
    padding: 12px 16px;
    text-align: center;
  }

  .stat-divider {
    display: none;
  }

  .stat-num {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 88px 0 48px;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem) !important;
  }

  .hero-stats {
    padding: 12px;
  }

  .stat {
    flex: 1 1 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .stat:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   4. TICKER
   ============================================================ */

@media (max-width: 768px) {
  .ticker-item {
    padding: 0 20px;
    font-size: 0.78rem;
  }

  .ticker-track {
    animation-duration: 28s;
  }
}

/* ============================================================
   5. SERVICES GRID — MOBILE
   ============================================================ */

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card {
    padding: 0;
  }

  .service-card-inner {
    padding: 16px 16px 18px;
  }

  .service-card-img {
    height: 160px;
    margin: 0;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 0;
    flex-direction: column;
  }

  .service-card-inner {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .service-card-img {
    display: none;
  }

  .service-card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin-bottom: 0;
  }

  .service-card h3 {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  .service-card p {
    font-size: 0.78rem;
    margin-bottom: 0;
  }

  .service-card-link {
    display: none;
  }
}

/* ============================================================
   6. STATS BAND
   ============================================================ */

@media (max-width: 768px) {
  .stats-band {
    padding: 32px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .stat-item {
    padding: 28px 16px;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 1.9rem !important;
  }

  .stat-label {
    font-size: 0.72rem;
  }
}

/* ============================================================
   7. WHY US / VISUAL SECTION
   ============================================================ */

@media (max-width: 1024px) {
  .why-grid,
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .visual-photo-wrap {
    max-height: 300px;
    border-radius: 16px;
  }

  .float-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .why-features {
    gap: 10px;
  }

  .why-feature {
    padding: 14px 14px;
  }

  .why-feature h4 {
    font-size: 0.9rem;
  }

  .why-feature p {
    font-size: 0.8rem;
  }
}

/* ============================================================
   8. PROCESS SECTION
   ============================================================ */

@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .process-connector {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }

  .process-step {
    padding: 24px 16px;
  }

  .process-num {
    font-size: 1.8rem;
  }

  .process-step h3 {
    font-size: 0.95rem;
  }

  .process-step p {
    font-size: 0.78rem;
    display: none;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 18px 16px;
  }

  .process-num {
    font-size: 2rem;
    flex-shrink: 0;
    min-width: 48px;
  }

  .process-step p {
    display: block;
    font-size: 0.8rem;
  }
}

/* ============================================================
   9. GALLERY STRIP
   ============================================================ */

@media (max-width: 1024px) {
  .gallery-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 768px) {
  .gallery-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gs-item.wide,
  .gs-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-strip-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 8px;
  }
}

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */

@media (max-width: 768px) {
  .testimonials-track {
    gap: 16px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .t-controls {
    margin-top: 24px;
  }

  .t-dot {
    width: 10px;
    height: 10px;
  }

  .t-dot.active {
    width: 28px;
  }
}

/* ============================================================
   11. CTA SECTION
   ============================================================ */

@media (max-width: 768px) {
  .cta-section {
    padding: 64px 0;
  }

  .cta-content h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ============================================================
   12. BLOG GRID (Ana Sayfa)
   ============================================================ */

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card.featured {
    grid-column: span 1;
  }

  .blog-card-img {
    height: 200px;
  }

  .blog-card-body {
    padding: 20px;
  }
}

/* ============================================================
   13. FOOTER — MOBILE
   ============================================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    padding: 52px 0 36px;
  }

  .footer-brand p {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .footer-links ul li a {
    font-size: 0.85rem;
    padding: 6px 0;
    min-height: 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    font-size: 0.78rem;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }

  .social-links {
    gap: 8px;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   14. PAGE HERO (İç Sayfalar)
   ============================================================ */

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 52px;
  }

  .page-hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.2;
  }

  .page-hero-content p {
    font-size: 0.95rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 88px 0 40px;
  }

  .page-hero-content h1 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
}

/* ============================================================
   15. HİZMETLER SAYFASI
   ============================================================ */

@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .service-detail-grid.reverse {
    direction: ltr;
  }

  .service-detail-grid.reverse > * {
    direction: ltr;
  }

  .service-img-box {
    max-width: 100%;
    height: 260px;
    border-radius: 16px;
  }

  .service-img-box img {
    border-radius: 16px;
  }

  .service-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .service-detail-section {
    padding: 48px 0;
  }

  .service-detail-section + .service-detail-section {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .service-img-box {
    height: 220px;
  }

  .service-sub-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .service-sub-item {
    font-size: 0.82rem;
    padding: 8px 12px;
  }

  .faq-item summary {
    font-size: 0.95rem;
    padding: 16px 16px;
    min-height: 52px;
  }

  .faq-item p {
    font-size: 0.85rem;
    padding: 0 16px 16px;
  }
}

@media (max-width: 480px) {
  .service-sub-list {
    grid-template-columns: 1fr;
  }

  .service-img-box {
    height: 200px;
  }

  .service-content h2 {
    font-size: 1.3rem;
  }
}

/* ============================================================
   16. HAKKIMIZDA SAYFASI
   ============================================================ */

@media (max-width: 1024px) {
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-visual {
    order: -1;
  }

  .story-stats-card {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 16px;
    display: inline-flex;
    width: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .about-story-grid {
    gap: 24px;
  }

  .story-text h2 {
    font-size: 1.5rem;
  }

  .story-text p {
    font-size: 0.9rem;
  }

  /* Timeline — tek kolon */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 18px;
    top: 0;
    bottom: 0;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 52px;
    padding-right: 0;
    text-align: left !important;
    margin-bottom: 28px;
  }

  .timeline-item.right {
    flex-direction: column !important;
  }

  .timeline-dot {
    position: absolute;
    left: 10px;
    top: 2px;
    width: 18px;
    height: 18px;
  }

  .timeline-content {
    max-width: 100%;
    text-align: left !important;
  }

  .timeline-content h4 {
    font-size: 0.95rem;
  }

  .timeline-content p {
    font-size: 0.82rem;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .team-photo-wrap {
    height: 180px;
  }

  .team-card-body {
    padding: 14px;
  }

  .team-card-body h3 {
    font-size: 0.95rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .value-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .team-photo-wrap {
    height: 150px;
  }

  .cert-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cert-card {
    padding: 16px;
  }
}

/* ============================================================
   17. GALERİ SAYFASI
   ============================================================ */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .gallery-filters {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .gallery-filter-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
    min-height: 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 10px;
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Touch: overlay göster */
  .gallery-item .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  }

  .gallery-overlay .gallery-zoom {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 8px;
  }

  .gallery-info .gallery-caption {
    font-size: 0.72rem;
  }
}

/* ============================================================
   18. BLOG SAYFASI
   ============================================================ */

@media (max-width: 1024px) {
  .blog-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-sidebar {
    display: none;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post .blog-post-img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-post .blog-post-img {
    height: 220px;
    border-radius: 12px 12px 0 0;
  }

  .featured-post-body {
    padding: 24px 20px;
  }

  .featured-post-body h2 {
    font-size: 1.2rem;
  }

  .blog-card-page .blog-card-img {
    height: 180px;
  }

  .blog-card-page-body {
    padding: 18px 16px;
  }

  .blog-card-page-body h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .featured-post .blog-post-img {
    height: 180px;
  }

  .blog-card-page .blog-card-img {
    height: 160px;
  }
}

/* ============================================================
   19. İLETİŞİM SAYFASI
   ============================================================ */

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .contact-cards-section {
    padding: 40px 0 0;
  }

  .contact-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-info-card {
    padding: 20px 16px;
  }

  .cic-icon {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .contact-info-card h3 {
    font-size: 0.9rem;
  }

  .contact-info-card p,
  .cic-link {
    font-size: 0.78rem;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-embed-container iframe {
    height: 260px;
  }

  .map-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .working-hours {
    padding: 20px 18px;
  }

  .hours-row {
    font-size: 0.85rem;
    padding: 10px 0;
  }

  .social-contact-box {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
  }

  .cic-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .map-embed-container iframe {
    height: 220px;
  }

  .contact-form-wrap {
    padding: 20px 16px;
  }

  .input-wrap input,
  .input-wrap textarea,
  .input-wrap select {
    padding: 12px 14px 12px 42px;
  }
}

/* ============================================================
   20. BÖLÜM BAŞLIKLARI — GENEL
   ============================================================ */

@media (max-width: 768px) {
  .section-tag {
    font-size: 0.7rem;
    padding: 5px 14px;
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .section-sub {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 4px;
  }

  .section-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.7rem) !important;
  }
}

/* ============================================================
   21. BUTONLAR — DOKUNMA OPTİMİZASYONU
   ============================================================ */

@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 13px 22px;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  .btn-lg {
    min-height: 54px;
    padding: 15px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    min-height: 50px;
    width: 100%;
    justify-content: center;
  }

  .btn + .btn {
    margin-top: 0;
  }
}

/* ============================================================
   22. FLOATING BUTONLAR
   ============================================================ */

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 1.4rem;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(14px + env(safe-area-inset-right));
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }

  .whatsapp-float span {
    display: none;
  }

  .back-to-top {
    left: calc(14px + env(safe-area-inset-left));
    right: auto;
    width: 44px;
    height: 44px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(14px + env(safe-area-inset-right));
  }
}

/* ============================================================
   23. FORM ELEMANLARI — iOS OPTİMİZASYON
   ============================================================ */

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  /* iOS zoom önleme — mutlak minimum 16px */
  font-size: max(16px, 1rem);
}

/* iOS select arrow */
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2360a5fa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

/* Checkbox tap target */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* ============================================================
   24. PERFORMANS — ANIMASYON KISITLAMA
   ============================================================ */

/* Pil/güç tasarrufu modu — animasyonları azalt */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticker-track {
    animation: none;
  }
}

/* GPU hızlandırma — kaydırmalı öğeler */
.ticker-track,
.testimonials-track,
.gallery-item img,
.service-card-img img,
.hero-bg-image,
.nav-links {
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ============================================================
   25. KÜÇÜK EKRANLAR (360px — Galaxy S serileri)
   ============================================================ */

@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 1.6rem !important;
  }

  .service-card-icon {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .contact-info-card h3 {
    font-size: 0.82rem;
  }

  .gallery-grid {
    grid-auto-rows: 110px;
  }

  .logo-svg {
    height: 26px;
  }

  .btn {
    font-size: 0.85rem;
    padding: 11px 16px;
  }
}

/* ============================================================
   26. LANDSCAPE MOD — MOBİL
   ============================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem !important;
  }

  .nav-links {
    padding-top: 70px;
    overflow-y: auto;
  }

  .page-hero {
    padding: 80px 0 36px;
  }
}

/* ============================================================
   27. iOS ÖZEL DÜZELTMELER
   ============================================================ */

/* Safari'de position: sticky sorun */
@supports (-webkit-touch-callout: none) {
  .navbar {
    position: -webkit-sticky;
    position: sticky;
  }

  /* iOS Safari 100vh fix */
  .hero {
    min-height: -webkit-fill-available;
  }

  /* Safari backdrop-filter */
  .navbar,
  .nav-links,
  .glass-card,
  .contact-info-card,
  .service-card {
    -webkit-backdrop-filter: blur(20px);
  }
}

/* ============================================================
   28. ANDROID CHROME ÖZEL
   ============================================================ */

/* Chrome Android — address bar scroll fix */
@media screen and (max-width: 768px) {
  .hero {
    min-height: 100dvh; /* Dynamic viewport height */
  }
}

/* ============================================================
   29. PRINT (Opsiyonel)
   ============================================================ */

@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .ticker-section,
  .hero-bg-image,
  .cta-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
