/* Nur Elektrik & Otomasyon — UI */
:root {
  --bg-deep: #f3f3f3;
  --bg: #ffffff;
  --bg-elevated: #fafafa;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --text: #111111;
  --text-muted: #5a5a5a;
  --accent: #c41e3a;
  --accent-hover: #e11d2e;
  --accent-soft: rgba(196, 30, 58, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 104px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-bg {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.text-accent {
  color: var(--accent-hover);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 8000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo-img {
  height: 88px;
  width: auto;
  max-width: min(400px, 78vw);
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav-scroll {
  display: contents;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--text);
}

.nav-cta {
  display: flex;
  gap: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 52px;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: var(--bg-deep);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-deep);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
  /* Daha kısa hero: açılışta altta Hizmetlerimiz bölümü de görünsün (içerik uzunsa alan büyür) */
  min-height: clamp(300px, 46svh, 460px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: url("../assets/hero-section.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(196, 30, 58, 0.11) 0%, transparent 46%),
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.9) 36%,
      rgba(255, 255, 255, 0.68) 70%,
      rgba(255, 255, 255, 0.48) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-trust li {
  position: relative;
  padding-left: 1.35rem;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head-left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.85rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-head-left .section-title::after {
  margin-left: 0;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  box-shadow: var(--shadow);
}

.card-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-compact .card-title {
  font-size: 1.05rem;
}

.card-system {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-system-media {
  aspect-ratio: 16 / 10;
  min-height: 10rem;
  background: linear-gradient(160deg, #f0f0f0 0%, #e8e8e8 100%);
  overflow: hidden;
  position: relative;
}

.card-system-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.card-system-body {
  padding: 1.2rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card-system .card-title {
  font-size: 1.05rem;
}

.card-system .card-text {
  font-size: 0.95rem;
  line-height: 1.55;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 2.5rem;
  align-items: start;
}

.about-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .about-head {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }
}

.about-logo {
  height: 72px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
  flex-shrink: 0;
}

.about-head-text {
  margin: 0 !important;
  max-width: none;
}

.about-head-text .section-title {
  margin-bottom: 0;
}

.about-head-text .section-title::after {
  margin-top: 0.65rem;
}

.about-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.about-content p strong {
  color: var(--text);
}

.checklist {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-hover);
  font-weight: 700;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-block {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-muted {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* References */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.ref-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.ref-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
}

.ref-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.ref-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.ref-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, #fff5f6 35%, var(--bg) 100%);
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.cta-text {
  margin: 0;
  color: var(--text-muted);
  max-width: 46ch;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0.35rem 0 0;
}

.contact-dl a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.contact-dl a:hover {
  color: var(--accent-hover);
}

.map-card .btn {
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    text-align: left;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.footer-logo {
  height: 56px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  display: block;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

@media (min-width: 640px) {
  .footer-copy {
    justify-content: flex-start;
  }
}

.footer-copy-sep {
  opacity: 0.45;
  user-select: none;
}

.footer-credit {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.footer-credit:hover {
  color: var(--accent);
}

/* FAB WhatsApp */
.fab-wa {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.fab-wa:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
  }
}

.nav-backdrop {
  display: none;
}

@media (max-width: 720px) {
  .card-grid-2,
  .card-grid-3,
  .ref-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9990;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header {
    --header-h: 156px;
    z-index: 10000;
    height: var(--header-h);
  }

  .header-inner {
    position: relative;
    z-index: 10002;
  }

  .logo,
  .nav-toggle {
    position: relative;
    z-index: 10003;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 9995;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 1rem;
    flex-shrink: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    max-width: 20rem;
  }

  .nav-list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: center;
    color: var(--text);
  }

  .nav-list a:hover,
  .nav-list a.is-active {
    color: var(--accent);
  }

  .nav-cta {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.5rem;
    padding-top: 1rem;
    flex-shrink: 0;
    width: 100%;
    max-width: 20rem;
  }

  .nav-cta .btn {
    width: 100%;
    text-align: center;
  }

  .logo-img {
    height: 112px;
    max-width: min(520px, 88vw);
  }
}
