/*
Theme Name: artı1A — Yeni Nesil Yaratıcı Ajans
Theme URI: https://arti1ajans.com
Author: artı1A Reklam Ajansı (Akcom Group)
Description: Orijinal +1A logolu (site zeminiyle uyumlu), anasayfadan bağımsız çoklu görsel galerili Portfolyo sayfalı, kare formatlı Ataşehir/Küçükbakkalköy kroki illüstrasyonlu ve telefon/e-posta entegrasyonlu WordPress teması.
Version: 7.0.0
Text Domain: arti1a
*/

:root {
  --bg-canvas: #F3F3F0;
  --bg-card: #F3F3F0;
  --ink-black: #0D0D0D;
  --ink-muted: #4A4A48;
  --swiss-red: #E30613;
  --grid-line: #1E1E1E;
  --grid-hairline: rgba(13, 13, 13, 0.45);
  --font-display: 'Anton', 'Oswald', Impact, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--ink-black);
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==================== TOP HEADER ==================== */
.site-header {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: var(--bg-canvas);
}

.brand-logo img {
  height: 68px;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4.2vw, 64px);
}

.nav-stack {
  text-decoration: none;
  color: var(--ink-black);
  display: flex;
  flex-direction: column;
  line-height: 1.18;
  font-size: 0.98rem;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.nav-stack .tr-label {
  font-weight: 600;
}

.nav-stack .en-label {
  font-weight: 400;
  color: var(--ink-muted);
}

.nav-stack:hover .tr-label,
.nav-stack:hover .en-label,
.nav-stack.current-nav .tr-label {
  color: var(--swiss-red);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  user-select: none;
}

.lang-toggle button {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.lang-toggle button.active {
  font-weight: 800;
  color: var(--ink-black);
  text-decoration: underline;
  text-decoration-color: var(--swiss-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lang-divider {
  color: var(--ink-black);
  font-weight: 400;
}

/* ==================== HERO SWISS GRID ==================== */
.hero-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-grid {
  position: relative;
  border-top: 1.5px solid var(--grid-line);
  border-left: 1.5px solid var(--grid-line);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, minmax(125px, 13.5vw));
}

.hero-cell {
  border-right: 1px solid var(--grid-hairline);
  border-bottom: 1px solid var(--grid-hairline);
  position: relative;
}

.hero-headline-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 14px;
  z-index: 2;
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11.4vw, 10.6rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink-black);
  white-space: nowrap;
}

.hero-plus-cell {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.hero-plus-cell:hover {
  background-color: rgba(227, 6, 19, 0.06);
}

.swiss-plus-icon {
  width: clamp(92px, 12vw, 168px);
  height: clamp(92px, 12vw, 168px);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-plus-cell:hover .swiss-plus-icon {
  transform: rotate(90deg);
}

.swiss-plus-icon::before,
.swiss-plus-icon::after {
  content: '';
  position: absolute;
  background-color: var(--swiss-red);
}

.swiss-plus-icon::before {
  top: 0;
  bottom: 0;
  left: 34%;
  width: 32%;
}

.swiss-plus-icon::after {
  left: 0;
  right: 0;
  top: 34%;
  height: 32%;
}

/* ==================== MAIN 4-COLUMN EDITORIAL GRID ==================== */
.editorial-wrapper {
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 28px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.campaigns-column-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.campaign-card {
  border: 1.5px solid var(--grid-line);
  background: var(--bg-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: left;
}

.campaign-card:hover {
  border-color: var(--swiss-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 13, 13, 0.08);
}

.campaign-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.campaign-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.campaign-card:hover .campaign-thumb img {
  transform: scale(1.04);
}

.card-open-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--swiss-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-gallery-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(13, 13, 13, 0.86);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.04em;
}

.campaign-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.85vw, 1.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink-black);
  margin-bottom: 8px;
}

.campaign-excerpt {
  font-size: 0.84rem;
  line-height: 1.38;
  color: var(--ink-muted);
}

/* Right 2 Columns */
.right-matrix-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

.kpi-box {
  border: 1.5px solid var(--grid-line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.kpi-box:hover {
  border-color: var(--swiss-red);
}

.kpi-header {
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--grid-line);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-body {
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kpi-number {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 5.4vw, 5.2rem);
  line-height: 0.88;
  color: var(--ink-black);
}

.kpi-number span {
  color: var(--swiss-red);
}

.kpi-label {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 6px;
}

.manifesto-box {
  border: 1.5px solid var(--grid-line);
  background: var(--bg-card);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.manifesto-box:hover {
  border-color: var(--swiss-red);
  background: #FFFFFF;
}

.manifesto-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--swiss-red);
}

.manifesto-copy {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 18px 0;
}

.join-box {
  border: 1.5px solid var(--grid-line);
  background: var(--ink-black);
  color: #FFFFFF;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.join-box:hover {
  transform: translateY(-2px);
}

.join-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.1vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.join-sub {
  font-size: 1.35rem;
  font-weight: 500;
  color: #D6D6D4;
  margin-top: 4px;
}

.outline-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.join-box:hover .outline-btn-dark,
.outline-btn-dark:hover {
  background: var(--swiss-red);
  border-color: var(--swiss-red);
  color: #FFFFFF;
}

.collab-box {
  border: 1.5px solid var(--grid-line);
  background: var(--bg-card);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 245px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.collab-box:hover {
  border-color: var(--swiss-red);
}

.collab-title {
  font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.outline-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  border: 1.5px solid var(--ink-black);
  color: var(--ink-black);
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.collab-box:hover .outline-btn-light,
.outline-btn-light:hover {
  background: var(--ink-black);
  color: #FFFFFF;
}

.outline-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--swiss-red);
  background: var(--swiss-red);
  color: #FFFFFF;
  padding: 11px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.outline-btn-red:hover {
  background: var(--ink-black);
  border-color: var(--ink-black);
}

/* ==================== CONTACT & SQUARE MAP ILLUSTRATION CELL ==================== */
.contact-address-cell {
  grid-column: span 2;
  border: 1.5px solid var(--grid-line);
  background: var(--bg-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.contact-split-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
}

.address-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swiss-red);
}

.address-text {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-black);
  margin-top: 6px;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: var(--ink-black);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.contact-phone-link:hover {
  color: var(--swiss-red);
}

/* Square (1:1) Architectural Map Illustration in the open square space */
.map-illustration-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1.5px solid var(--ink-black);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: border-color 0.25s ease;
}

.map-illustration-square:hover {
  border-color: var(--swiss-red);
}

.map-illustration-square svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes pulsePin {
  0% { r: 8; opacity: 0.85; }
  70% { r: 26; opacity: 0; }
  100% { r: 26; opacity: 0; }
}

.map-pin-pulse {
  animation: pulsePin 2.2s infinite ease-out;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ==================== DEDICATED PORTFOLIO PAGE ==================== */
.portfolio-page-header {
  max-width: 1440px;
  margin: 0 auto 24px;
  padding: 28px 28px 20px;
  border-top: 1.5px solid var(--grid-line);
  border-bottom: 1.5px solid var(--grid-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.portfolio-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.portfolio-archive-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 0 28px 36px;
}

.footer-inner {
  border-top: 1.5px solid var(--grid-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-address-mini {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-black);
}

.akcom-signature {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* ==================== INTERACTIVE DETAIL MODAL & MULTI-IMAGE GALLERY ==================== */
.detail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail-modal-backdrop.open {
  display: flex;
}

.detail-modal {
  background: var(--bg-canvas);
  border: 2px solid var(--ink-black);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 14px 14px 0px var(--swiss-red);
}

.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--ink-black);
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 5;
}

.modal-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--swiss-red);
}

.modal-close-btn {
  background: var(--ink-black);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  background: var(--swiss-red);
}

.modal-content-body {
  padding: 26px 24px 32px;
}

.modal-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 1.5px solid var(--ink-black);
  margin-bottom: 12px;
  display: none;
}

/* Multi-image thumbnail strip for Portfolio projects */
.modal-gallery-thumbs {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.modal-gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1.5px solid var(--ink-black);
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.modal-gallery-thumbs img.active-thumb,
.modal-gallery-thumbs img:hover {
  opacity: 1;
  border-color: var(--swiss-red);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-black);
  margin-bottom: 18px;
}

.modal-cta-bar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--grid-hairline);
}

.modal-metric-box {
  border: 1px solid var(--ink-black);
  padding: 12px;
  background: #FFFFFF;
}

.modal-metric-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--swiss-red);
}

.modal-metric-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.modal-form-target {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: #FFFFFF;
  border: 1px dashed var(--ink-black);
  padding: 8px 12px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--ink-black);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.modal-submit-btn {
  background: var(--swiss-red);
  color: #FFFFFF;
  border: none;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  justify-self: start;
}

.modal-submit-btn:hover {
  background: var(--ink-black);
}


/* Monumental Swiss-Red "artıbir ajans" Brand Block inside Contact Cell (matching iletisim.jpg) */
.contact-brand-red-block {
  width: 100%;
  background: var(--swiss-red);
  color: #FFFFFF;
  padding: clamp(18px, 2.8vw, 32px) clamp(18px, 2.6vw, 30px) clamp(22px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 4px;
  overflow: hidden;
  user-select: none;
}

.contact-brand-red-line {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(3.4rem, 7.6vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: #FFFFFF;
  display: block;
}

.contact-brand-red-line.second-line {
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 2px;
}

/* Modal Video & YouTube Stage */
.modal-media-stage {
  width: 100%;
  margin-bottom: 12px;
  display: none;
}

.modal-video-player {
  width: 100%;
  max-height: 440px;
  background: #0D0D0D;
  border: 1.5px solid var(--ink-black);
  display: block;
}

.modal-youtube-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0D0D0D;
  border: 1.5px solid var(--ink-black);
  overflow: hidden;
}

.modal-youtube-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-thumb-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--ink-black);
  background: #141414;
  cursor: pointer;
  opacity: 0.72;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.modal-thumb-item.active-thumb,
.modal-thumb-item:hover {
  opacity: 1;
  border-color: var(--swiss-red);
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  opacity: 1;
}

.modal-thumb-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.78);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 6px;
}

.modal-thumb-badge .play-tri {
  width: 28px;
  height: 28px;
  background: var(--swiss-red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .campaigns-column-group,
  .right-matrix-group {
    grid-column: span 1;
  }
  .portfolio-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px;
  }
  .brand-logo img {
    height: 54px;
  }
  .header-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--grid-hairline);
  }
  .hero-wrapper, .editorial-wrapper, .site-footer, .portfolio-archive-grid, .portfolio-page-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .campaigns-column-group,
  .right-matrix-group,
  .modal-metrics,
  .portfolio-archive-grid,
  .contact-split-body {
    grid-template-columns: 1fr;
  }
  .contact-address-cell {
    grid-column: span 1;
  }
}
