@import url('tokens.css');

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 2px solid #f8fafc;
}

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
  --primary-color: #A10C12; /* Light blue representing insulation/water */
  --primary-dark: #7A0A0D;
  --secondary-color: #2D3748; /* Warm orange representing thermal */
  --secondary-dark: #1A202C;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --text-dark: #334155;
  --text-light: var(--text-secondary);
  --white: #ffffff;

  /* Fluid type & spacing — jetonlar: css/tokens.css */
  --section-y: clamp(3rem, 8vw, 5rem);
  --container-px: max(1rem, env(safe-area-inset-left));
  --container-pr: max(1rem, env(safe-area-inset-right));
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --dark-glass-bg: rgba(15, 23, 42, 0.85);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border-hairline: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.08);
  --corp-navy: #0a1628;

  /* Mobil menü / sabit katmanlar (küçükten büyüğe: içerik < FAB < backdrop < header) */
  --z-stacking-fab: 1030;
  --z-stacking-backdrop: 1040;
  --z-stacking-header: 1050;
  --z-stacking-drawer: 1060;
  --z-stacking-menu-toggle: 1070;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Mobilde smooth scroll ana iş parçacığını meşgul edip takılma hissini artırabilir */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 897px) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-main);
  font-size: var(--type-body);
  color: var(--text-dark);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

/* Menü açıkken FAB çekmeceyle yarışmasın; tıklama alanı kapanır */
body.nav-open .whatsapp-btn {
  opacity: 0.35;
  pointer-events: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dar ekran: backdrop-filter scroll sırasında GPU/compose maliyeti yüksek */
@media (max-width: 896px) {
  .corp-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header.scrolled:not(.header--with-corp),
  .header--with-corp.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .home .header--with-corp:not(.scrolled):not(.header-dark) .logo {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-kicker {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .whatsapp-btn {
    animation: none;
  }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  height: auto;
}

iframe,
embed,
object {
  max-width: 100%;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(1.5rem, var(--container-px));
  padding-right: max(1.5rem, var(--container-pr));
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.125rem);
  align-items: center;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.125rem);
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-bg {
  background-color: var(--surface-muted);
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(161, 12, 18, 0.045) 0%, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(45, 55, 72, 0.035) 0%, transparent 42%);
}

.section--alt {
  background: var(--surface);
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-family: var(--font-main);
}

.text-center .section-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }

.section-title {
  font-size: var(--section-title-size);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--type-lead);
  font-weight: 500;
  margin-bottom: clamp(1.75rem, 5vw, 3rem);
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 8px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(161, 12, 18, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(161, 12, 18, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(45, 55, 72, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-dark);
  box-shadow: 0 6px 18px rgba(45, 55, 72, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-stacking-header);
  /* transition: all + backdrop/padding birlikte pahalı repaint üretir */
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease,
    border-bottom-color 0.3s ease;
}

.header:not(.header--with-corp) {
  padding-top: max(1.25rem, env(safe-area-inset-top));
  padding-bottom: 1.25rem;
}

.header--with-corp {
  padding: 0;
}

.header-dark {
  background-color: var(--dark-color);
}
.header-dark .nav-link,
.header-dark .mobile-menu-btn {
  color: var(--white);
}

.header.scrolled:not(.header--with-corp) {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  padding-top: max(0.75rem, env(safe-area-inset-top));
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header--with-corp.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid var(--border-hairline);
}

.header--with-corp.scrolled .corp-bar {
  background: var(--surface-muted);
  color: var(--text-dark);
  border-bottom-color: var(--border-hairline);
  padding-top: 0;
}

.header--with-corp.scrolled .corp-bar__tag,
.header--with-corp.scrolled .corp-bar__link {
  color: var(--text-dark);
}

.header--with-corp.scrolled .corp-bar__link:hover {
  color: var(--primary-color);
}

.header--with-corp.scrolled .corp-bar__link--wa {
  color: #15803d;
}

.header--with-corp.scrolled .corp-bar__link--wa:hover {
  color: #166534;
}

.header--with-corp.scrolled .corp-bar__tag i {
  color: var(--primary-color);
}

.header--with-corp.scrolled.header-dark .header__main {
  background: transparent !important;
}

.header--with-corp.scrolled .header__main {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.header.scrolled .nav-link,
.header.scrolled .mobile-menu-btn {
  color: var(--dark-color) !important;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Kurumsal üst şerit */
.corp-bar {
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(10, 22, 40, 0.94);
  color: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: env(safe-area-inset-top);
}

.header-dark:not(.scrolled) .corp-bar {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.corp-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  min-height: 2.35rem;
}

.corp-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(248, 250, 252, 0.9);
}

.corp-bar__tag i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.corp-bar__actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.corp-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.corp-bar__link:hover {
  color: var(--white);
}

.corp-bar__link--wa {
  color: #86efac;
}

.corp-bar__link--wa:hover {
  color: #bbf7d0;
}

/* Mobilde kurumsal şerit: kompakt, satır kaydırmalı; tam gizleme yok */
@media (max-width: 768px) {
  .corp-bar {
    font-size: 0.7rem;
  }

  .corp-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.4rem 0;
    min-height: 0;
  }

  .corp-bar__tag {
    line-height: 1.35;
    font-size: 0.68rem;
  }

  .corp-bar__actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .corp-bar__link {
    font-size: 0.72rem;
  }

  .header--with-corp .header__main {
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }
}

.header__main {
  width: 100%;
}

.header--with-corp {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
}

.header--with-corp .header__main {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.header--with-corp.header-dark .header__main {
  background-color: var(--dark-color);
}

.header--with-corp .header__main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home .header--with-corp:not(.scrolled):not(.header-dark) .logo {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.home .header--with-corp:not(.scrolled):not(.header-dark) .logo h2 {
  color: transparent !important;
}

.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1.25rem;
  padding: clamp(1rem, 3vw, 1.4rem) 0;
  text-align: center;
}

@media (min-width: 900px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
}

.trust-strip__item i {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.trust-strip__item strong {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  color: var(--dark-color);
  font-weight: 700;
}

.trust-strip__item span {
  font-size: var(--type-body);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 15rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: clamp(1.35rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(161, 12, 18, 0.2);
  }
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(161, 12, 18, 0.14), rgba(161, 12, 18, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: var(--type-subheading);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.value-card p {
  font-size: var(--type-body);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.cta-corporate {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  color: var(--white);
  overflow: hidden;
}

.cta-corporate::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), #d02026);
}

.cta-corporate__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.75rem) 1rem;
}

.cta-corporate__title {
  font-family: var(--font-heading);
  font-size: var(--type-heading);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.cta-corporate__text {
  color: rgba(248, 250, 252, 0.94);
  font-size: var(--type-body);
  line-height: 1.7;
  margin-bottom: 1.65rem;
}

.cta-corporate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-kicker i {
  color: #fbbf24;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo h2 {
  margin: 0;
  font-weight: 800;
  line-height: 0;
}

/* Koyu header: logo koyu zeminde kaybolmasın */
.header-dark:not(.scrolled) .logo {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border-radius: 14px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.header-dark:not(.scrolled) .logo h2 {
  color: transparent !important;
  margin: 0 !important;
}

.header.scrolled .logo {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.header.scrolled .logo h2 {
  color: inherit;
}

.logo img {
  height: clamp(2.75rem, 8vw, 4.375rem) !important;
  width: auto !important;
  max-width: min(200px, 58vw) !important;
  max-height: 4.375rem !important;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  font-size: 1.05rem;
}

.header:not(.scrolled):not(.header-dark) .nav-link {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-backdrop {
  display: none;
  pointer-events: none;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.header:not(.scrolled):not(.header-dark) .mobile-menu-btn {
  color: var(--white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--fix-header-pad);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Ana sayfa kahraman görseli: WebP/AVIF (dosyalar eklendiğinde otomatik seçilir), CLS için renk zemin */
.hero--bg-arkaplan {
  background-color: #1e293b;
  background-image: url('../assets/images/Spray-foam-Insulation-1024x585-1.webp');
}

/* Mobilde fixed arka plan pahalıdır (repaint / performans) */
@media (max-width: 900px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.btn-whatsapp-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 2px solid rgba(37, 211, 102, 0.85);
  backdrop-filter: blur(8px);
}

.btn-whatsapp-outline:hover {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
  transform: translateY(-2px);
}

.cta-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.legal-whatsapp-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 1rem;
  max-width: 40rem;
}

.legal-whatsapp-note a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-contact-page {
  background-color: var(--white);
  /* Sabit header (position:fixed) metni kapatmasın — diğer iç sayfalardaki page-hero ile aynı boşluk */
  padding-top: calc(var(--fix-header-pad) + var(--section-y));
  padding-bottom: var(--section-y);
}

.section-subtitle--narrow {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-wrapper--whatsapp {
  align-items: stretch;
}

.contact-info__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 28px;
  font-family: var(--font-heading);
}

.contact-info__hours-title {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  font-family: var(--font-heading);
}

.info-item__h {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.info-item__p {
  opacity: 0.92;
  margin: 0;
  line-height: 1.5;
}

.contact-info__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info__link:hover {
  opacity: 1;
}

.btn-whatsapp-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
  max-width: 100%;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-whatsapp-lg:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  color: var(--white);
}

.contact-whatsapp-panel {
  padding: 8px 8px 8px 12px;
}

.contact-whatsapp-panel__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 12px;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.contact-whatsapp-panel__lead {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.65;
  font-size: 1rem;
}

.wa-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(0.95rem, 3vw, 1.15rem) clamp(1rem, 3vw, 1.25rem);
  min-height: 56px;
  background: var(--light-color);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wa-quick-card:hover {
  border-color: rgba(161, 12, 18, 0.35);
  box-shadow: 0 8px 28px rgba(161, 12, 18, 0.1);
  transform: translateY(-2px);
  color: var(--dark-color);
}

.wa-quick-card--plain {
  border-color: rgba(37, 211, 102, 0.35);
}

.wa-quick-card--plain:hover {
  border-color: #25D366;
}

.wa-quick-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wa-quick-card--plain .wa-quick-card__icon {
  background: #dcfce7;
  color: #15803d;
}

.wa-quick-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.wa-quick-card__text small {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.88rem;
}

.wa-quick-card__arrow {
  color: var(--text-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: min(420px, 55vh);
  min-height: 280px;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social-wa:hover {
  background: #25D366;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(161, 12, 18, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  color: var(--white);
  margin-top: 0.35rem;
  animation: heroFadeUp 0.5s ease forwards;
  opacity: 1;
}

.hero-title {
  font-size: var(--hero-title-size);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-color), #D02026);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--type-body);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-on-dark-soft);
  max-width: 40rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ==========================================================================
   Features / Service Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.25rem, 3vw, 1.875rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(161, 12, 18, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(161, 12, 18, 0.12);
    border-color: rgba(161, 12, 18, 0.3);
  }
}

.service-card picture {
  display: block;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-slow);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-img {
    transform: scale(1.05);
  }
}

.service-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), #D02026);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(161, 12, 18, 0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
  }
}

.service-card h3 {
  font-size: var(--type-subheading);
  margin-bottom: 12px;
  color: var(--dark-color);
}

.service-card p {
  color: var(--text-muted);
  font-size: var(--type-body);
  margin-bottom: 20px;
  flex: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  gap: 8px;
  margin-top: auto;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: clamp(220px, 55vw, 400px);
  min-height: 220px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 4vw, 1.875rem);
}

.project-overlay h3 {
  color: var(--white);
  margin-bottom: 8px;
  transform: translateY(20px);
  opacity: 0.9;
  transition: var(--transition-normal);
}

.project-overlay p {
  color: #cbd5e1;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay h3 {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-overlay p {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

/* ==========================================================================
   Projeler sayfası — vitrin düzeni
   ========================================================================== */
.page-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  padding-top: var(--fix-header-pad);
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(161, 12, 18, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #1a0608 0%, var(--dark-color) 45%, #1e293b 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-hero__crumb {
  color: rgba(248, 250, 252, 0.78);
  font-size: var(--type-body);
  margin-bottom: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-hero__crumb a {
  color: var(--text-on-dark-soft);
}

.page-hero__crumb a:hover {
  color: var(--white);
}

.page-hero__title {
  color: var(--white);
  font-size: var(--type-heading);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  text-wrap: balance;
}

.page-hero__title em {
  font-style: normal;
  color: var(--primary-color);
  text-shadow: 0 0 40px rgba(161, 12, 18, 0.45);
}

.page-hero__lead {
  color: rgba(248, 250, 252, 0.92);
  font-size: var(--type-body);
  line-height: 1.7;
  max-width: 36rem;
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Projelerimiz — modern üçlü kart grid
   -------------------------------------------------------------------------- */
.projects-page-intro {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
}

.projects-page-intro .section-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.projects-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.35rem, 3.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .projects-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .projects-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects-grid-modern > li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.projects-grid-modern .project-card-modern {
  width: 100%;
}

.project-card-modern {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 22px 48px -12px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card-modern:hover {
    transform: translateY(-6px);
    box-shadow:
      0 14px 28px -6px rgba(161, 12, 18, 0.12),
      0 36px 72px -20px rgba(15, 23, 42, 0.18);
  }
}

.project-card-modern__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--dark-color);
}

.project-card-modern__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-card-modern:hover .project-card-modern__visual img {
    transform: scale(1.06);
  }
}

.project-card-modern__index {
  position: absolute;
  bottom: 0.35rem;
  right: 0.65rem;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 9vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  user-select: none;
}

.project-card-modern__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(161, 12, 18, 0.35);
}

.project-card-modern__content {
  padding: clamp(1.35rem, 3.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.project-card-modern__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.12rem, 2.1vw, 1.32rem);
  margin: 0;
  line-height: 1.3;
  color: var(--dark-color);
}

.project-card-modern__content > p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.project-card-modern__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0.35rem 0 0;
  list-style: none;
}

.project-card-modern__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(161, 12, 18, 0.09);
  border-radius: var(--radius-full);
  padding: 0.32rem 0.7rem;
}

.project-card-modern__chips li i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* Tekil proje / vaka çalışması (Projelerimiz) */
.projects-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 960px) {
  .projects-case-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 700px) and (max-width: 959px) {
  .projects-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects-case-grid .project-case-study {
  margin-top: 0;
  display: flex;
  min-width: 0;
}

.projects-case-grid .project-case-study__inner {
  max-width: none;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.1rem, 2.5vw, 1.35rem);
}

.projects-case-grid .project-case-study__title {
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  margin-bottom: 1rem;
}

.projects-case-grid .project-case-study__body {
  font-size: 0.9rem;
  line-height: 1.68;
}

.projects-case-grid .project-case-study__body h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
}

.projects-references-foot {
  margin: clamp(1.5rem, 4vw, 2.25rem) auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.projects-references-foot a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-references-foot a:hover {
  color: var(--primary-dark);
}

.project-case-study {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
}

.project-case-study__inner {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.65rem) clamp(1.35rem, 3.5vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-md);
}

.project-case-study__inner .section-eyebrow {
  margin-bottom: 0.65rem;
}

.project-case-study__title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--dark-color);
  margin: 0 0 1.35rem;
  line-height: 1.25;
}

.project-case-study__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.project-case-study__body > p {
  margin: 0 0 1.15rem;
}

.project-case-study__body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  font-weight: 700;
  margin: 1.65rem 0 0.85rem;
  color: var(--dark-color);
  line-height: 1.35;
}

.project-case-study__body h3:first-of-type {
  margin-top: 1.35rem;
}

.project-case-study__cta {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-hairline);
  font-weight: 500;
  color: var(--text-dark) !important;
}

.project-case-study__cta a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-case-study__cta a:hover {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: auto;
    padding-top: var(--fix-header-pad);
    padding-bottom: 2.25rem;
  }
}

/* Hizmetler — istatistik kartları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: clamp(0.9rem, 2.5vw, 1.35rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.25rem);
}

.stat-card {
  text-align: center;
  padding: clamp(1.35rem, 3.5vw, 1.85rem) 1.15rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #d02026);
}

.stat-card__value {
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
  line-height: 1.1;
}

.stat-card__label {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(161, 12, 18, 0.12);
  }
}

/* ==========================================================================
   Slider (Hakkımızda)
   ========================================================================== */
.slider-container {
  position: relative;
  width: 100%;
  height: clamp(260px, 65vw, 500px);
  min-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--dark-color);
  display: block;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  pointer-events: none;
}

.slider-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--dark-color);
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-md);
  color: var(--white);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item i {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.8);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(161, 12, 18, 0.1);
  background: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--dark-color);
  color: #cbd5e1;
  padding: var(--section-y) 0 max(2.5rem, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   WhatsApp Button
   ========================================================================== */
.whatsapp-btn {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: max(1.25rem, env(safe-area-inset-left));
  background: #25D366;
  color: white;
  width: 3.75rem;
  height: 3.75rem;
  min-width: 52px;
  min-height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: var(--z-stacking-fab);
  transition: var(--transition-normal);
  animation: wa-breathe 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-btn:hover {
  animation: none;
  transform: scale(1.1) rotate(10deg);
  background: #1ebc59;
}

.whatsapp-btn:focus-visible {
  animation: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes heroFadeUp {
  0% { opacity: 0.92; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes wa-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

/* Eski pulse (box-shadow genişlemesi) her karede repaint — kaldırıldı */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-links {
    gap: clamp(0.75rem, 2vw, 2rem);
  }
  .nav-link {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  }
}

@media (max-width: 992px) {
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-1 { grid-template-columns: 1fr; }
  .projects-grid {
    gap: clamp(1rem, 3vw, 1.875rem);
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: min(100dvh, 100vh);
    padding-top: var(--fix-header-pad);
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  @media (max-height: 480px) and (orientation: landscape) {
    .hero {
      min-height: auto;
      padding-top: 4.5rem;
      padding-bottom: 2rem;
    }
    .hero-subtitle {
      margin-bottom: 1rem;
    }
  }

  .nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: var(--z-stacking-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88vw, 320px);
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    padding: max(5.5rem, calc(3.25rem + env(safe-area-inset-top))) 28px max(2rem, env(safe-area-inset-bottom));
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    transition: var(--transition-normal);
    z-index: var(--z-stacking-drawer);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .header:not(.scrolled) .nav-link {
    color: var(--dark-color);
  }
  
  .mobile-menu-btn {
    display: flex;
    z-index: var(--z-stacking-menu-toggle);
  }

  .nav-links .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.08rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }

  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  .contact-wrapper {
    padding: 28px 20px;
  }

  .contact-whatsapp-panel {
    padding: 4px 0;
  }

  .service-content {
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .service-img {
    height: clamp(180px, 42vw, 220px);
  }

  .footer-grid {
    gap: clamp(1.75rem, 5vw, 2.5rem);
  }

  .footer-brand h3 {
    font-size: clamp(1.45rem, 4vw, 1.8rem);
  }

  .slider-controls {
    padding: 12px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-y: clamp(2.5rem, 10vw, 3.5rem);
  }

  .text-center .section-title {
    display: block;
  }

  .section-title::after {
    bottom: -8px;
  }

  .map-embed {
    min-height: 240px;
    height: 50vh;
    border-radius: var(--radius-md);
  }

  .footer-bottom p {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 380px) {
  .container {
    padding-left: max(0.875rem, var(--container-px));
    padding-right: max(0.875rem, var(--container-pr));
  }

  .btn {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}
