:root {
  --color-primary: #dd183b;
  --color-primary-dark: #b8122f;
  --color-primary-light: #ff4d6a;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-bg-peach: #fff5f0;
  --color-bg-peach-light: #ffe8dc;
  --color-white: #ffffff;
  --color-dark: #0a0f1a;
  --color-border: #e2e8f0;
  --color-surface: #f8fafc;
  --container-width: 1200px;
  --header-height: 80px;
  --font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--container-width));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.logo img {
  width: 200px;
  max-height: 64px;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo:hover img {
  opacity: 0.85;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover {
  color: var(--color-primary);
  background: var(--color-bg-peach);
}

.nav-desktop a.active {
  color: var(--color-white);
  background: var(--color-primary);
}

.nav-desktop a.active:hover {
  color: var(--color-white);
  background: var(--color-primary-dark);
}

.header-cta {
  display: none;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.menu-toggle:hover {
  background: var(--color-primary-dark);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px 20px;
  border-top: 1px solid var(--color-border);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile a {
  display: block;
  padding: 14px 12px;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-primary);
  background: var(--color-bg-peach);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(221, 24, 59, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(221, 24, 59, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Section utilities ── */
.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(221, 24, 59, 0.08);
  border-radius: 999px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.section-subtitle {
  margin: 0 0 48px;
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

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

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* ── Hero banner ── */
.hero-banner {
  background: var(--color-white);
  padding: 32px 0 0;
}

.hero-banner__image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── About section ── */
.hero-section {
  background: var(--color-bg-peach);
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  order: -1;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-content h1,
.page-hero h1,
.page-title {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.hero-content .lead {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  color: var(--color-text);
}

.hero-content p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.hero-content p:last-child {
  margin-bottom: 0;
}

.hero-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--color-dark);
  padding: 48px 0;
}

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

.stat-item {
  text-align: center;
  padding: 0 16px;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.stat-number span {
  color: var(--color-primary-light);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ── TSE ── */
.tse-section {
  background: var(--color-bg-peach);
  padding: 0 0 72px;
}

.tse-block {
  padding: 32px 36px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.tse-block h3 {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.tse-block blockquote {
  margin: 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.tse-block blockquote p {
  margin: 0 0 8px;
}

/* ── Services ── */
.services-section {
  padding: 80px 0;
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  position: relative;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-card__number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
}

.service-card-body {
  padding: 28px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.service-card p {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a2744 100%);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  text-align: left;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
}

.cta-inner p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.75);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-text {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--color-bg-peach) 0%, var(--color-white) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0;
  max-width: 560px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* ── Products ── */
.products-section {
  padding: 64px 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.product-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sabit eşit kutu (3:2) — görsel kutuya zorlanır, kutu boyutu değişmez */
.product-item-media {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 66.666%;
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
  border: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
}

.product-item-media:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.products-section .product-item-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

/* Ürün lightbox (native dialog — her zaman ekran ortasında) */
.product-lightbox {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(960px, 94vw);
  max-height: 90dvh;
  width: 100%;
  background: transparent;
  overflow: visible;
}

.product-lightbox::backdrop {
  background: rgba(10, 15, 26, 0.92);
}

.product-lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 48px 56px;
}

.product-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.product-lightbox-content img {
  display: block;
  max-width: min(900px, 88vw);
  max-height: calc(90dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.product-lightbox-caption {
  margin: 0;
  color: var(--color-white);
  font-size: 0.95rem;
  text-align: center;
  max-width: 640px;
}

.product-lightbox-close,
.product-lightbox-prev,
.product-lightbox-next {
  position: fixed;
  z-index: 1;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.product-lightbox-close:hover,
.product-lightbox-prev:hover,
.product-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.product-lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
}

.product-lightbox-prev,
.product-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
}

.product-lightbox-prev {
  left: 12px;
}

.product-lightbox-next {
  right: 12px;
}

@media (max-width: 640px) {
  .product-lightbox-inner {
    padding: 40px 16px;
  }

  .product-lightbox-prev {
    left: 4px;
  }

  .product-lightbox-next {
    right: 4px;
  }

  .product-lightbox-prev,
  .product-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

.product-item-body {
  padding: 20px 22px 24px;
}

.product-item-body h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.product-description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-specs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.product-specs strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.product-specs p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.products-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
}

/* ── References ── */
.references-section {
  padding: 64px 0 80px;
}

.references-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.reference-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  min-height: 140px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.reference-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.reference-item img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.reference-item:hover img {
  filter: grayscale(0%);
}

/* ── Contact ── */
.contact-section {
  padding: 64px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-card {
  padding: 36px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-peach);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

.contact-card p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-card a {
  color: var(--color-text);
}

.contact-card a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ── */
.site-footer {
  flex-shrink: 0;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer-brand .footer-logo-wrap {
  display: inline-flex;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
}

.footer-brand img {
  width: 160px;
  margin-bottom: 0;
}

.footer-brand p {
  margin: 0;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-primary-light);
}

.footer-contact-item a,
.footer-contact-item span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

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

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(221, 24, 59, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.5s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
  }
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item:nth-child(odd) {
    border-left: none;
  }

  .stat-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

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

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.3fr);
    gap: 56px;
  }

  .hero-visual {
    order: 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 921px) {
  .logo img {
    width: 220px;
    max-height: 72px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .header-cta {
    display: block;
  }

  .nav-mobile {
    display: none !important;
  }

  .references-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
