:root {
  --bg: #f5efe5;
  --surface: rgba(252, 247, 240, 0.38);
  --surface-strong: #fffaf2;
  --panel: #1b1916;
  --panel-soft: #27231e;
  --text: #231f1a;
  --muted: #6f6559;
  --line: rgba(35, 31, 26, 0.12);
  --accent: #bd7b45;
  --accent-deep: #8b4d1d;
  --shadow: 0 24px 60px rgba(41, 28, 15, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --anchor-offset: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

html::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(35, 31, 26, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 26, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  z-index: -1;
}

main section[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  padding-top: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(189, 123, 69, 0.18), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(101, 76, 50, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, #efe4d5 100%);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

body::after {
  position: fixed;
  inset: -16px;
  background-image: url("assets/bg-tv-unitesi-8.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(0.5px) saturate(1.34) contrast(1.16) brightness(1.05);
  opacity: 0.7;
  transform: scale(1.02);
  transition: opacity 520ms ease;
  content: "";
  pointer-events: none;
  z-index: -3;
}

body::before {
  position: fixed;
  inset: -16px;
  background-image: url("assets/bg-mutfak-5.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(0.5px) saturate(1.08) contrast(1.34) brightness(0.74);
  opacity: 0;
  transform: scale(1);
  transition: opacity 520ms ease;
  content: "";
  pointer-events: none;
  z-index: -2;
}

body.bg-alt::before {
  opacity: 0.78;
}

body.bg-alt::after {
  opacity: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 56px;
}

body > .site-header {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, calc((100vw - 1180px) / 2), 120px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0 0 28px 28px;
  backdrop-filter: none;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 132px;
  height: 86px;
  overflow: hidden;
  background: rgba(255, 248, 236, 0.45);
  border: 1px solid rgba(216, 177, 91, 0.72);
  box-shadow: 0 10px 24px rgba(28, 20, 14, 0.28);
  flex-shrink: 0;
  border-radius: 18px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand strong {
  display: block;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1rem;
}

.brand small {
  color: var(--text);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 42px;
}

.hero-copy,
.trust-bar,
.workflow-strip,
.service-card,
.split-section,
.project-card,
.process-grid article,
.cta-section,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow);
  background: var(--surface);
  backdrop-filter: none;
}

.hero-copy {
  grid-column: 1;
  padding: 42px;
  border-radius: var(--radius-lg);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.62);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.hero-metrics span,
.service-card p,
.split-copy p,
.feature-list p,
.project-card p,
.process-grid p,
.contact-card p {
  color: var(--text);
  line-height: 1.7;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
}

.trust-bar strong {
  display: block;
  margin-bottom: 8px;
}

.trust-bar span {
  color: var(--text);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
}

.workflow-strip h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 700;
}

.workflow-strip p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.section {
  margin-top: 28px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  color: var(--text);
}

.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.service-grid,
.project-grid,
.process-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.service-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.contact-card,
.process-grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.service-card h3,
.project-card h3,
.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.gallery-section {
  margin-top: 28px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(35, 31, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.76);
  color: var(--text);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
  background: rgba(255, 250, 242, 0.95);
}

.gallery-filter.is-active {
  border-color: rgba(139, 77, 29, 0.5);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8ef;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 14px 30px rgba(35, 21, 10, 0.14);
  cursor: zoom-in;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(13, 10, 7, 0.76));
  content: "";
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff7ed;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.gallery-item-placeholder {
  display: flex;
  align-items: flex-end;
  border-style: solid;
  cursor: default;
  background:
    linear-gradient(rgba(35, 31, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 26, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(189, 123, 69, 0.22), transparent 48%),
    radial-gradient(circle at 82% 22%, rgba(101, 76, 50, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 239, 228, 0.86));
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.gallery-item-placeholder::after {
  display: none;
}

.gallery-item-more {
  cursor: pointer;
  background:
    radial-gradient(circle at 90% 10%, rgba(211, 149, 96, 0.28), transparent 46%),
    linear-gradient(145deg, rgba(48, 32, 18, 0.92), rgba(19, 13, 9, 0.96));
}

.gallery-item-more::after {
  display: none;
}

.gallery-more-link {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  padding: 20px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.35)),
    transparent;
  color: #fff7ed;
  cursor: pointer;
}

.gallery-more-link strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gallery-more-link p {
  margin: 0;
  color: rgba(255, 239, 221, 0.92);
  font-size: 0.94rem;
}

.gallery-more-link:hover,
.gallery-more-link:focus-visible {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48)),
    transparent;
}

.gallery-placeholder {
  width: 100%;
  padding: 18px;
  border-top: 1px solid rgba(35, 31, 26, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.28), rgba(255, 248, 239, 0.9));
  backdrop-filter: blur(4px);
  text-align: left;
}

.gallery-placeholder strong {
  display: block;
  font-size: 1.08rem;
  color: var(--text);
}

.gallery-placeholder p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 24ch;
}

body.no-scroll .site-header {
  z-index: 1;
}

body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 6, 4, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2400;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 1080px);
  max-height: 88vh;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
  background: #17120e;
}

.lightbox-caption {
  margin-top: 10px;
  color: #f3e8db;
  text-align: center;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.9);
  color: #2a1d12;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.92);
  color: #2a1d12;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  background: rgba(252, 247, 240, 0.34);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feature-list strong {
  display: block;
  margin-bottom: 8px;
}

.project-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.project-card span {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-card::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: rgba(189, 123, 69, 0.08);
  content: "";
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid article strong {
  display: block;
  margin-bottom: 12px;
}

.cta-section {
  margin-top: 28px;
  padding: 42px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(189, 123, 69, 0.22), transparent 42%),
    rgba(252, 247, 240, 0.34);
}

.cta-section .button {
  margin-top: 22px;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card a {
  color: var(--text);
  font-weight: 600;
}

.contact-card-address p {
  color: var(--text);
}

.site-footer {
  padding: 28px 0 0;
  text-align: center;
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .split-section,
  .service-grid,
  .gallery-grid,
  .project-grid,
  .process-grid,
  .contact-grid,
  .trust-bar,
  .workflow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    align-items: start;
  }

  .gallery-item {
    aspect-ratio: 5 / 4;
  }

  .process-grid article:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 24px;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  body > .site-header {
    border-radius: 0 0 22px 22px;
    padding: 14px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 116px;
    height: 76px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    background: rgba(252, 247, 240, 0.96);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .hero,
  .hero-metrics,
  .trust-bar,
  .workflow-strip,
  .service-grid,
  .project-grid,
  .split-section,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-filters {
    gap: 8px;
  }

  .gallery-filter {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero-copy,
  .section,
  .cta-section {
    padding: 26px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-image {
    max-height: 72vh;
  }

  .workflow-strip {
    padding: 18px;
  }

  .workflow-strip h3 {
    font-size: 1.15rem;
  }

  .process-grid article:last-child {
    grid-column: auto;
  }
}
