:root {
  --header-height: 84px;
  --footer-height: 64px;
  --content-max: 1180px;
  --ink: #f6fbff;
  --muted: rgba(246, 251, 255, 0.74);
  --panel: rgba(3, 28, 41, 0.66);
  --panel-strong: rgba(3, 28, 41, 0.9);
  --line: rgba(0, 168, 200, 0.24);
  --accent: #00a8c8;
  --accent-light: #49d6ea;
  --accent-dark: #006f8c;
  --brand-navy: #041722;
  --brand-deep: #062233;
  --brand-teal: #0b586d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--brand-navy);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.site-footer {
  position: fixed;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-color: var(--line);
  background: linear-gradient(90deg, rgba(3, 14, 23, 0.94), rgba(4, 40, 56, 0.84));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header {
  top: 0;
  min-height: var(--header-height);
  padding: 16px max(22px, calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  min-width: 176px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 154px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 168, 200, 0.18));
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 168, 200, 0.42);
  border-radius: 8px;
  padding: 0;
  background: rgba(0, 168, 200, 0.12);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(73, 214, 234, 0.76);
  background: rgba(0, 168, 200, 0.2);
  outline: none;
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-item {
  position: relative;
}

.has-dropdown::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  height: 14px;
  content: "";
}

.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: rgba(248, 251, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(0, 168, 200, 0.34);
  background: rgba(0, 168, 200, 0.13);
  color: #ffffff;
  outline: none;
}

.nav-link-active {
  border-color: rgba(0, 168, 200, 0.38);
  background: rgba(0, 168, 200, 0.15);
  color: #ffffff;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 240px;
  gap: 4px;
  border: 1px solid rgba(0, 168, 200, 0.24);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.dropdown a {
  border-radius: 7px;
  padding: 11px 12px;
  color: rgba(248, 251, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(0, 168, 200, 0.16);
  color: #ffffff;
  outline: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-shell {
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

.document-page {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: hidden;
  background-color: var(--brand-navy);
  background-image: var(--document-image-main);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-page {
  --document-image-main: url("../../anasayfa/sayfa_main.png");
  --document-image-tablet: url("../../anasayfa/sayfa_tablet.png");
  --document-image-mobile: url("../../anasayfa/sayfa_mobil.png");
}

.about-page {
  --document-image-main: url("../../hakkimizda/sayfa_main.png");
  --document-image-tablet: url("../../hakkimizda/sayfa_tablet.png");
  --document-image-mobile: url("../../hakkimizda/sayfa_mobil.png");
}

.values-page {
  --document-image-main: url("../../degerler/sayfa_main.png");
  --document-image-tablet: url("../../degerler/sayfa_tablet.png");
  --document-image-mobile: url("../../degerler/sayfa_mobil.png");
}

.references-page {
  --document-image-main: url("../../referanslar/sayfa_main.png");
  --document-image-tablet: url("../../referanslar/sayfa_tablet.png");
  --document-image-mobile: url("../../referanslar/sayfa_mobil.png");
}

.contact-page {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  padding: clamp(24px, 3vw, 42px) max(22px, calc((100vw - var(--content-max)) / 2));
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3, 15, 24, 0.97), rgba(5, 48, 67, 0.92) 56%, rgba(0, 96, 117, 0.86)),
    radial-gradient(circle at 78% 20%, rgba(0, 168, 200, 0.2), transparent 34%);
}

.contact-page::before {
  position: absolute;
  inset: auto -12vw -22vw -10vw;
  height: 42vw;
  min-height: 320px;
  content: "";
  background: linear-gradient(90deg, rgba(0, 168, 200, 0.22), rgba(73, 214, 234, 0.1));
  filter: blur(70px);
  transform: rotate(-4deg);
}

.contact-layout {
  position: relative;
  z-index: 1;
}

.contact-hero {
  display: none !important;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

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

.contact-card {
  display: grid;
  min-height: 160px;
  align-content: space-between;
  gap: 12px;
  border: 1px solid rgba(0, 168, 200, 0.22);
  border-radius: 8px;
  padding: 20px;
  background: rgba(3, 28, 41, 0.7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(0, 168, 200, 0.58);
  background: rgba(4, 43, 60, 0.82);
  outline: none;
  transform: translateY(-2px);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  color: #ffffff;
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-card:not(.contact-card-wide) strong {
  font-size: clamp(1rem, 1.28vw, 1.1rem);
}

.contact-card small {
  color: rgba(248, 251, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 700;
}

.map-frame {
  position: relative;
  min-height: 408px;
  overflow: hidden;
  border: 1px solid rgba(0, 168, 200, 0.22);
  border-radius: 8px;
  background: rgba(3, 28, 41, 0.54);
  box-shadow: var(--shadow);
}

.map-frame::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  content: "Google Harita yükleniyor";
  color: rgba(248, 251, 255, 0.62);
  font-weight: 800;
}

.map-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 408px;
  border: 0;
  filter: saturate(0.9) contrast(0.98);
}

.map-frame-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
}

.map-frame-link:focus-visible {
  outline: 2px solid rgba(73, 214, 234, 0.86);
  outline-offset: -4px;
}

.map-open-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(0, 168, 200, 0.52);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(3, 28, 41, 0.88);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.map-open-link:hover,
.map-open-link:focus-visible {
  border-color: rgba(73, 214, 234, 0.84);
  outline: none;
}

.products-page {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  padding: clamp(24px, 3vw, 42px) max(22px, calc((100vw - var(--content-max)) / 2));
  background:
    linear-gradient(135deg, rgba(3, 15, 24, 0.98), rgba(5, 48, 67, 0.92) 58%, rgba(0, 96, 117, 0.82)),
    radial-gradient(circle at 20% 78%, rgba(0, 168, 200, 0.18), transparent 36%);
}

.products-hero {
  display: grid;
  width: min(100%, 720px);
  gap: 12px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.products-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.products-hero p {
  margin: 0;
  color: rgba(248, 251, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.products-loading {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.product-card-link {
  min-width: 0;
}

.product-card-preview {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  align-content: end;
  border: 1px solid rgba(0, 168, 200, 0.24);
  border-radius: 8px;
  background-color: var(--brand-deep);
  background-image:
    linear-gradient(180deg, rgba(3, 15, 24, 0.02), rgba(3, 15, 24, 0.72)),
    var(--product-image-main);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(3, 15, 24, 0.78));
}

.product-card-link:hover .product-card-preview,
.product-card-link:focus-visible .product-card-preview {
  border-color: rgba(73, 214, 234, 0.7);
  box-shadow: 0 24px 68px rgba(0, 168, 200, 0.18);
  transform: translateY(-3px);
}

.product-card-link:focus-visible {
  outline: none;
}

.product-card-title {
  position: relative;
  z-index: 1;
  padding: 18px;
  color: #ffffff;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 900;
  line-height: 1.16;
}

.product-detail-page {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  overflow: hidden;
  background: var(--brand-navy);
}

.product-detail-visual {
  position: absolute;
  inset: 0;
  background-color: var(--brand-navy);
  background-image: var(--product-image-main);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  margin: -1px;
  white-space: nowrap;
}

.site-footer {
  bottom: 0;
  min-height: var(--footer-height);
  padding: 12px max(22px, calc((100vw - var(--content-max)) / 2));
  border-top: 1px solid var(--line);
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer > :not(p):not(.footer-spacer),
.site-footer .footer-links {
  display: none !important;
}

.footer-spacer {
  width: 1px;
  height: 1px;
}

@media (max-width: 1100px) {
  .document-page {
    background-image: var(--document-image-tablet, var(--document-image-main));
  }

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

  .product-card-preview {
    background-image:
      linear-gradient(180deg, rgba(3, 15, 24, 0.02), rgba(3, 15, 24, 0.72)),
      var(--product-image-tablet, var(--product-image-main));
  }

  .product-detail-visual {
    background-image: var(--product-image-tablet, var(--product-image-main));
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 86px;
    --footer-height: 82px;
  }

  .site-header {
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .site-header.nav-ready .main-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 14px;
    left: auto;
    display: grid;
    width: min(372px, calc(100vw - 28px));
    max-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 168, 200, 0.24);
    border-radius: 8px;
    padding: 0;
    background: rgba(3, 28, 41, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      padding 180ms ease,
      transform 180ms ease;
  }

  .site-header.nav-ready.nav-open .main-nav {
    max-height: calc(100vh - var(--header-height) - 14px);
    overflow-y: auto;
    padding: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header.nav-ready .main-nav::-webkit-scrollbar {
    width: 6px;
  }

  .site-header.nav-ready .main-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(73, 214, 234, 0.34);
  }

  .nav-item {
    width: 100%;
  }

  .site-header.nav-ready .main-nav > .nav-link,
  .site-header.nav-ready .main-nav > .nav-item {
    width: 100%;
  }

  .has-dropdown::after {
    display: none;
  }

  .has-dropdown > .nav-link::after {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
  }

  .has-dropdown.is-open > .nav-link::after {
    transform: rotate(-135deg) translate(-2px, -1px);
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-color: transparent;
    padding: 0 14px;
    background: transparent;
    font-size: 0.96rem;
    text-align: left;
  }

  .nav-link-active {
    border-color: rgba(0, 168, 200, 0.5);
    background: rgba(0, 168, 200, 0.14);
  }

  .site-header.nav-ready .has-dropdown .dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: 0;
    gap: 4px;
    overflow: hidden;
    border: 0;
    padding: 0 0 0 10px;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition:
      max-height 220ms ease,
      opacity 180ms ease,
      padding 180ms ease;
  }

  .site-header.nav-ready .has-dropdown.is-open .dropdown {
    max-height: 330px;
    padding-top: 4px;
    padding-bottom: 6px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-header.nav-ready .dropdown a {
    display: block;
    width: 100%;
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(0, 168, 200, 0.08);
    color: rgba(248, 251, 255, 0.8);
    font-size: 0.84rem;
    font-weight: 800;
  }

  .contact-page {
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    padding-top: 26px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .product-card-preview {
    min-height: 300px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

}

@media (max-width: 640px) {
  :root {
    --header-height: 84px;
    --footer-height: 86px;
  }

  .document-page {
    background-image: var(
      --document-image-mobile,
      var(--document-image-tablet, var(--document-image-main))
    );
  }

  .site-header,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand-logo {
    width: 136px;
  }

  .contact-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

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

  .product-card-preview {
    background-image:
      linear-gradient(180deg, rgba(3, 15, 24, 0.02), rgba(3, 15, 24, 0.72)),
      var(--product-image-mobile, var(--product-image-tablet, var(--product-image-main)));
    min-height: 300px;
  }

  .product-detail-visual {
    background-image: var(--product-image-mobile, var(--product-image-tablet, var(--product-image-main)));
  }

  .contact-card {
    min-height: 136px;
    padding: 18px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 300px;
  }
}
