/* =========================
   ERCENLER YAPI MARKET CSS
   ========================= */

:root {
  --primary: #103060;
  --primary-dark: #0b2448;
  --primary-soft: rgba(16, 48, 96, .08);

  --text: #0f172a;
  --muted: #64748b;

  --bg: #f6f7fb;
  --card: #ffffff;
  --border: rgba(148, 163, 184, .35);

  --radius-lg: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, .06);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  color: #fff;
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand h2 {
  margin: 0;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.2px;
}

.tagline {
  margin: 4px 0 0;
  font-weight: 300;
  opacity: .92;
  font-size: 13px;
}

/* =========================
   NAVBAR
   ========================= */

.links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-block;
  transition: background .18s ease, transform .18s ease;
}

.links a:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.links a.active {
  background: rgba(255, 255, 255, .18);
}

.header-phone {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .12);
  padding: 9px 12px;
  border-radius: 14px;
  transition: background .18s ease, transform .18s ease;
}

.header-phone:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

/* =========================
   LAYOUT HELPERS
   ========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.section-title {
  margin: 8px 0 14px;
  font-weight: 600;
  color: var(--primary);
  font-size: 22px;
  letter-spacing: -.3px;
}

/* =========================
   HERO
   ========================= */

.hero {
  background:
    radial-gradient(circle at top right, rgba(16, 48, 96, .15), transparent 35%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid rgba(148, 163, 184, .25);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 28px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-label {
  display: inline-block;
  color: var(--primary);
  background: rgba(16, 48, 96, .08);
  border: 1px solid rgba(16, 48, 96, .14);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.7px;
}

.hero p {
  margin: 16px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 48, 96, .18);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(16, 48, 96, .18);
}

.btn-secondary.dark {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}

.btn-secondary.dark:hover {
  background: rgba(255, 255, 255, .18);
}

.hero-info {
  display: grid;
  gap: 12px;
}

.hero-info div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.hero-info strong {
  display: block;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 4px;
}

.hero-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   SERVICES
   ========================= */

.services {
  padding-top: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

.service-card i {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.service-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   GALLERY / PROJECTS
   ========================= */

.gallery {
  padding-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .08);
}

.card h4 {
  margin: 10px 0 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: #020617;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Clickable media wrapper */
.img-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}

/* IMG + VIDEO aynı ölçü */
.img-btn img,
.img-btn .card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}

.img-btn .card-media {
  background: #000;
}

.img-btn:hover img,
.img-btn:hover .card-media {
  transform: scale(1.02);
  opacity: .94;
}

/* =========================
   PROCESS
   ========================= */

.process {
  padding-top: 8px;
  padding-bottom: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.process-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(16, 48, 96, .08);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.process-item h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}

.process-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   CONTACT CTA
   ========================= */

.contact-cta {
  margin-top: 22px;
  background: var(--primary);
  color: #fff;
}

.contact-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 30px;
}

.contact-cta h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
}

.contact-cta p {
  margin: 0;
  opacity: .88;
  font-size: 14px;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CTA içindeki butonları arka plandan ayırıyoruz */
.contact-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.contact-cta .btn-primary:hover {
  background: #f8fafc;
}

.contact-cta .btn-secondary.dark {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* =========================
   LIGHTBOX
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.lightbox.show {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.lightbox-content {
  position: relative;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#lightboxImg,
#lightboxVideo {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  transition: background .18s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .22);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, .35);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.5;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
  color: var(--primary);
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.instagram-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instagram-link i {
  font-size: 20px;
  color: var(--primary);
}

.instagram-link span {
  font-size: 15px;
  color: var(--primary);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand {
    max-width: calc(100% - 150px);
  }

  .links {
    width: 100%;
    order: 3;
  }

  .links ul {
    justify-content: flex-start;
    gap: 8px;
  }

  .links a {
    font-size: 13px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, .10);
  }

  .header-phone {
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 140px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand {
    max-width: 100%;
  }

  .brand h2 {
    font-size: 18px;
  }

  .tagline {
    font-size: 12.5px;
  }

  .header-phone {
    width: auto;
  }

  .hero-inner {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .services-grid,
  .process-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 20px;
  }

  .contact-cta-inner {
    align-items: flex-start;
  }

  .contact-buttons {
    width: 100%;
  }

  .contact-buttons a {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 24px 18px;
    font-size: 14px;
  }

  .site-footer p {
    margin: 0 0 8px;
    font-size: 14px;
  }

  .site-footer a {
    font-size: 14px;
  }

  .instagram-link span {
    font-size: 14px;
  }

  .instagram-link i {
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 25px;
  }

  .links a {
    font-size: 12.5px;
    padding: 6px 8px;
  }

  .card h4 {
    font-size: 15px;
  }
}
/* =========================
   RESPONSIVE HAMBURGER MENU
   ========================= */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, .18);
}

/* Desktop düzen */
@media (min-width: 761px) {
  .links {
    display: block !important;
  }
}

/* Mobil düzen */
@media (max-width: 760px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
  }

  .brand {
    max-width: 100%;
  }

  .brand h2 {
    font-size: 18px;
  }

  .tagline {
    font-size: 12px;
    line-height: 1.4;
  }

  .header-phone {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 14px;
  }

  .header-phone span {
    display: none;
  }

  .header-phone i {
    font-size: 17px;
  }

  .menu-toggle {
    display: flex;
  }

  .links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .site-header.menu-open .links {
    display: block;
  }

  .links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .links li {
    width: 100%;
  }

  .links a {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 11px 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .10);
  }

  .links a::after {
    content: "›";
    font-size: 18px;
    opacity: .7;
  }

  .links a:hover {
    background: rgba(255, 255, 255, .16);
    transform: none;
  }
}

@media (max-width: 420px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .brand h2 {
    font-size: 17px;
  }

  .tagline {
    font-size: 11.5px;
  }
}

/* =========================
   CONTACT PHONE FIX
   ========================= */

.contact-content {
  max-width: 620px;
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-width: 210px;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .08);
}

.contact-phone i {
  font-size: 14px;
}

.contact-phone:hover {
  background: rgba(255, 255, 255, .20);
}

/* Contact alanındaki butonlar düzgün dursun */
.contact-buttons {
  align-items: center;
}

/* Mobilde telefon numaraları kaybolmasın */
@media (max-width: 560px) {
  .contact-phone-list {
    width: 100%;
    margin-top: 18px;
  }

  .contact-phone {
    width: 100%;
    max-width: none;
    justify-content: center;
    font-size: 15px;
    padding: 12px 14px;
  }

  .contact-phone span {
    display: inline !important;
  }

  .contact-phone i {
    font-size: 15px;
  }
}

/* =========================
   SENCAR SOFTWARE SIGNATURE
   ========================= */

.site-footer .sencar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #103060;
  font-size: 14px;
  font-weight: 500;
  transition: transform .18s ease, opacity .18s ease;
}

.site-footer .sencar-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
  opacity: .92;
}

.created-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
}

.sencar-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #103060;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.sencar-brand i {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #103060;
  color: #fff !important;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(16, 48, 96, .18);
}

/* Mobilde daha tatlı dursun */
@media (max-width: 560px) {
  .site-footer .sencar-link {
    gap: 6px;
  }

  .created-text {
    font-size: 13px;
  }

  .sencar-brand {
    font-size: 15px;
  }
}