/* Genius Makina — Next.js tasarımına uyarlanmış WordPress teması */

:root {
  --primary: 215 11% 19%;
  --charcoal: 210 10% 14%;
  --steel: 215 8% 32%;
  --ash: 220 9% 46%;
  --accent: 16 100% 60%;
  --gold: 42 100% 57%;
  --background: 0 0% 100%;
  --foreground: 215 11% 19%;
  --muted: 210 20% 96%;
  --muted-fg: 220 9% 46%;
  --border: 214 15% 91%;
  --radius: 0.75rem;
  --shadow: 0 10px 40px -10px hsl(var(--primary) / 0.15);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --header-h: 4.5rem;
}

.dark {
  --background: 210 10% 10%;
  --foreground: 210 20% 96%;
  --muted: 215 11% 16%;
  --muted-fg: 220 9% 65%;
  --border: 215 11% 22%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

.gm-container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.gm-main { min-height: 50vh; padding-top: var(--header-h); }

/* Logo */
.gm-logo { display: flex; align-items: center; gap: 0.65rem; }
.gm-logo__bar {
  width: 4px; height: 2.5rem; border-radius: 2px;
  background: linear-gradient(180deg, hsl(var(--accent)), hsl(var(--gold)));
}
.gm-logo__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.04em; }
.gm-logo__tagline { display: block; font-size: 0.65rem; letter-spacing: 0.12em; color: hsl(var(--ash)); text-transform: uppercase; }
.gm-logo__mark {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--gold)));
  color: #fff; font-family: var(--font-display); font-weight: 800;
}

/* Header */
.gm-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: hsl(var(--background) / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.gm-nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.gm-nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.gm-nav__logo-full { display: none; }
@media (min-width: 640px) { .gm-nav__logo .gm-logo--compact { display: none; } .gm-nav__logo-full { display: block; } }
.gm-nav__menu { display: none; gap: 0.25rem; }
@media (min-width: 1024px) {
  .gm-nav__menu { display: flex; }
  .gm-nav__menu a {
    padding: 0.5rem 0.85rem; border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500;
    transition: background 0.2s, color 0.2s;
  }
  .gm-nav__menu a:hover { background: hsl(var(--muted)); color: hsl(var(--accent)); }
}
.gm-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.gm-nav__cta { display: none; }
@media (min-width: 768px) { .gm-nav__cta { display: inline-flex; } }
.gm-nav__toggle { display: flex; }
@media (min-width: 1024px) { .gm-nav__toggle { display: none; } }

.gm-btn-icon {
  width: 2.75rem; height: 2.75rem; border: 1px solid hsl(var(--border));
  border-radius: 0.5rem; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.gm-mobile-menu {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; width: min(320px, 90vw);
  background: hsl(var(--background)); border-left: 1px solid hsl(var(--border));
  padding: 1.5rem; z-index: 101; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.gm-mobile-menu.is-open { transform: translateX(0); }
.gm-mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; }
.gm-mobile-menu a { display: block; padding: 0.85rem 0.5rem; font-weight: 500; border-radius: 0.5rem; }
.gm-mobile-menu a:hover { background: hsl(var(--muted)); }
.gm-overlay {
  position: fixed; inset: 0; background: rgb(0 0 0 / 0.45); z-index: 99;
}

/* Buttons */
.gm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.gm-btn--lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.gm-btn--block { width: 100%; margin-top: 1rem; }
.gm-btn--accent { background: hsl(var(--accent)); color: #fff; border-color: hsl(var(--accent)); }
.gm-btn--accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.gm-btn--outline-light { border-color: rgb(255 255 255 / 0.35); color: #fff; background: transparent; }
.gm-btn--outline-light:hover { background: rgb(255 255 255 / 0.1); }
.gm-btn--outline { border-color: hsl(var(--border)); background: transparent; }
.gm-btn--outline:hover { border-color: hsl(var(--accent)); color: hsl(var(--accent)); }
.gm-btn--whatsapp { background: #25d366; color: #fff; }

/* Hero */
.gm-hero {
  background: linear-gradient(135deg, hsl(var(--charcoal)), hsl(var(--primary)) 55%, hsl(var(--steel)));
  color: #fff; padding: 4rem 0 5rem;
}
.gm-hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .gm-hero__grid { grid-template-columns: 1.2fr 1fr; } }
.gm-hero h1 { font-size: clamp(1.85rem, 4vw, 3rem); margin-bottom: 1rem; }
.gm-hero p { font-size: 1.05rem; opacity: 0.9; max-width: 36rem; }
.gm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.gm-hero__actions--center { justify-content: center; }
.gm-text-gradient {
  background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--gold)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.gm-badge {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: hsl(var(--muted)); color: hsl(var(--accent)); margin-bottom: 1rem;
}
.gm-badge--glow { background: rgb(255 107 53 / 0.15); border: 1px solid rgb(255 107 53 / 0.35); }

.gm-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gm-stat-card {
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.gm-stat-card__value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: hsl(var(--accent)); }
.gm-stat-card__label { font-size: 0.8rem; opacity: 0.85; }

/* Sections */
.gm-section { padding: 4.5rem 0; }
.gm-section--muted { background: hsl(var(--muted)); }
.gm-section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.gm-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.gm-section-head p { color: hsl(var(--muted-fg)); }
.gm-section-cta { text-align: center; margin-top: 2rem; }
.gm-lead { font-size: 1.05rem; color: hsl(var(--muted-fg)); }
.gm-text-center { text-align: center; }
.gm-muted { color: hsl(var(--muted-fg)); font-size: 0.9rem; }

.gm-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .gm-split { grid-template-columns: 1fr 1fr; } }
.gm-split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gm-split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gm-experience-badge {
  position: absolute; bottom: 1rem; left: 1rem;
  background: hsl(var(--accent)); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem;
  display: flex; flex-direction: column; line-height: 1.2;
}
.gm-experience-badge strong { font-size: 1.5rem; font-family: var(--font-display); }

.gm-feature-list { margin: 1.5rem 0; }
.gm-feature-list li { padding: 0.85rem 0; border-bottom: 1px solid hsl(var(--border)); }
.gm-feature-list strong { display: block; margin-bottom: 0.15rem; }
.gm-feature-list span { font-size: 0.9rem; color: hsl(var(--muted-fg)); }

/* Cards */
.gm-card-grid { display: grid; gap: 1.25rem; }
.gm-card-grid--3 { grid-template-columns: 1fr; }
.gm-card-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .gm-card-grid--3, .gm-card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gm-card-grid--3 { grid-template-columns: repeat(3, 1fr); } .gm-card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.gm-card {
  background: hsl(var(--background)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s;
}
.gm-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gm-card__icon { color: hsl(var(--accent)); margin-bottom: 1rem; }
.gm-card__icon svg { width: 2rem; height: 2rem; }
.gm-card h3 { font-size: 1.05rem; }
.gm-card p { font-size: 0.9rem; color: hsl(var(--muted-fg)); margin-bottom: 0; }
.gm-card--product { padding: 0; overflow: hidden; }
.gm-card__image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gm-card__body { padding: 1.25rem; }
.gm-link { color: hsl(var(--accent)); font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; display: inline-block; }

/* Clients */
.gm-clients-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 640px) { .gm-clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gm-clients-grid { grid-template-columns: repeat(5, 1fr); } }
.gm-client-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 5rem; padding: 1rem; border: 1px solid hsl(var(--border));
  border-radius: var(--radius); background: hsl(var(--background)); transition: border-color 0.2s;
}
.gm-client-card:hover { border-color: hsl(var(--accent)); }
.gm-client-card img { max-height: 2.5rem; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: all 0.2s; }
.gm-client-card:hover img { filter: none; opacity: 1; }
.gm-client-fallback { font-size: 0.75rem; font-weight: 600; text-align: center; color: hsl(var(--muted-fg)); }

/* CTA band */
.gm-cta {
  background: linear-gradient(135deg, hsl(var(--charcoal)), hsl(var(--primary)));
  color: #fff; padding: 4rem 0; text-align: center;
}
.gm-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.gm-cta p { opacity: 0.9; max-width: 36rem; margin-inline: auto 1.5rem; }

/* Page hero (inner pages) */
.gm-page-hero {
  background: linear-gradient(135deg, hsl(var(--charcoal)), hsl(var(--primary)));
  color: #fff; padding: 3rem 0; text-align: center;
}
.gm-page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.gm-page-hero p { opacity: 0.85; max-width: 40rem; margin-inline: auto; }

/* Filters */
.gm-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.gm-filter-btn {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.gm-filter-btn.is-active, .gm-filter-btn:hover {
  background: hsl(var(--accent)); color: #fff; border-color: hsl(var(--accent));
}

/* Projects grid + lightbox */
.gm-project-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gm-project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .gm-project-grid { grid-template-columns: repeat(3, 1fr); } }
.gm-project-card { border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); cursor: pointer; background: hsl(var(--background)); }
.gm-project-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.3s; }
.gm-project-card:hover img { transform: scale(1.03); }
.gm-project-card__body { padding: 1rem; }
.gm-project-card__meta { font-size: 0.75rem; color: hsl(var(--accent)); font-weight: 600; text-transform: uppercase; }

.gm-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgb(0 0 0 / 0.9);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.gm-lightbox[hidden] { display: none; }
.gm-lightbox img { max-height: 85vh; max-width: 100%; object-fit: contain; border-radius: 0.5rem; }
.gm-lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem;
  border: none; border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.25rem;
}

/* Contact */
.gm-contact-grid { display: grid; gap: 2rem; }
@media (min-width: 992px) { .gm-contact-grid { grid-template-columns: 1fr 1.2fr; } }
.gm-contact-info li { padding: 0.65rem 0; border-bottom: 1px solid hsl(var(--border)); }
.gm-contact-info a { color: hsl(var(--accent)); }
.gm-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.gm-form input, .gm-form textarea, .gm-form select {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid hsl(var(--border));
  border-radius: 0.5rem; background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: inherit; font-size: 1rem; margin-bottom: 1rem;
}
.gm-form textarea { min-height: 8rem; resize: vertical; }
.gm-form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gm-form-row { grid-template-columns: 1fr 1fr; } }
.gm-alert { padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.gm-alert--success { background: #dcfce7; color: #166534; }
.gm-alert--error { background: #fee2e2; color: #991b1b; }
.gm-map { border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); margin-top: 2rem; }
.gm-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* About timeline / values */
.gm-values-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gm-values-grid { grid-template-columns: repeat(2, 1fr); } }
.gm-value-card { padding: 1.25rem; border-left: 3px solid hsl(var(--accent)); background: hsl(var(--muted)); border-radius: 0 var(--radius) var(--radius) 0; }

/* Footer */
.gm-footer { background: hsl(var(--charcoal)); color: rgb(255 255 255 / 0.85); padding-top: 3rem; }
.gm-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.gm-footer__grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 768px) { .gm-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.gm-footer .gm-logo__tagline { color: rgb(255 255 255 / 0.5); }
.gm-footer__tagline { font-size: 0.9rem; margin: 1rem 0; max-width: 22rem; }
.gm-footer__links a, .gm-footer__contact a { opacity: 0.85; font-size: 0.9rem; }
.gm-footer__links a:hover, .gm-footer__contact a:hover { color: hsl(var(--accent)); }
.gm-footer__links li, .gm-footer__contact li { margin-bottom: 0.5rem; }
.gm-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.gm-social a {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.08); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.gm-social a:hover { background: hsl(var(--accent)); }
.gm-footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.1); padding: 1.25rem 0; font-size: 0.8rem; opacity: 0.7; }

/* Floating widgets */
.gm-whatsapp {
  position: fixed; bottom: 5.5rem; right: 1.25rem; z-index: 90;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; box-shadow: 0 4px 20px rgb(0 0 0 / 0.2);
}
.gm-scroll-top {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: none;
  background: hsl(var(--accent)); color: #fff; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.gm-scroll-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1023px) {
  .gm-hero { padding-top: 2rem; }
}
