:root {
  --blue: #037ebb;
  --blue-dark: #026492;
  --navy: #07283a;
  --ink: #122838;
  --muted: #3e5563;
  --line: #d5e4ee;
  --ice: #e7f3f9;
  --paper: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(7, 40, 58, 0.12);
  --radius: 18px;
  --header: 74px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: Outfit, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

h1 {
  margin: 0.15em 0 0.25em;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 700;
}

h2 {
  margin: 0.15em 0 0.4em;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 600;
}

h3 {
  margin: 0 0 0.3em;
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  background: var(--blue);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #c5e6f6;
}

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

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 76px 0;
  scroll-margin-top: var(--header);
}

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

.section-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(7, 40, 58, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue-dark);
  background: var(--ice);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  height: clamp(420px, 68vh, 640px);
  object-fit: cover;
  object-position: center;
}

.hero-card {
  position: relative;
  z-index: 1;
  margin-top: -68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 28px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions,
.contact-actions,
.channel-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.btn-whatsapp {
  background: #0f7a63;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #0c6452;
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.about p {
  color: var(--muted);
  font-size: 1.125rem;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 8px 8px 8px 0;
  display: grid;
  gap: 14px;
}

.facts li {
  background: var(--ice);
  border-radius: 14px;
  padding: 16px 18px;
}

.facts strong {
  display: block;
  font-family: var(--display);
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.facts span {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.bento {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas:
    "el elektrik elektrik"
    "el kaynak kaynak"
    "bag kesici genel";
  gap: 14px;
}

.tile-el { grid-area: el; }
.tile-elektrik { grid-area: elektrik; }
.tile-kaynak { grid-area: kaynak; }
.tile-bag { grid-area: bag; }
.tile-kesici { grid-area: kesici; }
.tile-genel { grid-area: genel; }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.tile-photo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.tile-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  flex: none;
  background: var(--ice);
}

.tile-el .tile-media {
  flex: 1 1 auto;
  height: auto;
  min-height: 250px;
}

.tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile-el img {
  object-position: center 18%;
}

.tile-elektrik img {
  object-position: center 28%;
}

.tile-media:hover img {
  transform: scale(1.04);
}

.tile-caption,
.tile-text,
.tile-catalog > div {
  padding: 16px 18px 18px;
}

.tile-caption p,
.tile-text p,
.tile-catalog p {
  color: var(--muted);
}

.tile-catalog {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding-left: 8px;
}

.tile-catalog img {
  width: 100%;
  height: 176px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 12px;
}

.tile-text {
  padding: 18px 18px 20px;
}

.tile-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ice);
  color: var(--blue);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-text h3 {
  margin-top: 12px;
}

.gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 18%;
}

.gallery figcaption {
  padding: 12px 16px 14px;
  font-weight: 600;
  color: var(--navy);
}

.brand-label {
  margin-top: 26px;
  color: var(--muted);
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.brands li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  color: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

address {
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
  margin: 8px 0 18px;
}

.channels:empty {
  display: none;
}

.hours {
  margin: 0 0 14px;
}

.hours span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.hours strong,
.hours a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.hours a:hover {
  color: var(--blue-dark);
}

.phone-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: #0f7a63;
  color: #fff;
}

.wa-icon svg {
  width: 20px;
  height: 20px;
}

.hours a.wa-icon,
.hours a.wa-icon:hover {
  color: #fff;
  background: #0f7a63;
}

.hours a.wa-icon:hover {
  background: #0c6452;
}

.contact-actions {
  margin-top: 4px;
}

.channels + .contact-actions,
.channels .channel-buttons {
  margin-top: 0;
}

.channels:not(:empty) {
  margin-bottom: 12px;
}

.map-wrap {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ice);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: var(--navy);
  color: #d5e6f0;
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  gap: 6px;
}

.footer-inner img {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-inner p {
  margin: 0;
}

.footer-year {
  margin-top: 8px;
  color: #9db4c3;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "el el"
      "elektrik elektrik"
      "kaynak kaynak"
      "bag kesici"
      "genel genel";
  }

  .about,
  .contact-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: -40px;
  }

  .tile-el .tile-media {
    height: 280px;
    flex: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(7, 40, 58, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
  }

  .brand img {
    height: 34px;
  }

  .hero-media img {
    height: 340px;
  }

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

  .gallery img {
    height: 380px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-card {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "el"
      "elektrik"
      "kaynak"
      "bag"
      "kesici"
      "genel";
  }

  .tile-catalog {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .container {
    width: min(1120px, calc(100% - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile-media img {
    transition: none;
  }

  .tile-media:hover img {
    transform: none;
  }
}
