/* Wellar Yapı Mimarlık — site utilities */
html {
  scroll-behavior: smooth;
}

.site-logo img {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(52vw, 200px);
  object-fit: contain;
  transition: opacity .25s ease;
}

.site-logo:hover img {
  opacity: .85;
}

.site-logo--menu img {
  height: 48px;
  max-width: 240px;
}

.site-logo--footer img {
  height: 42px;
  max-width: 220px;
}

@media (min-width: 768px) {
  .site-logo img {
    height: 40px;
    max-width: 220px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
}

.media-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.gallery-card {
  flex: 0 0 auto;
  width: min(85vw, 720px);
}

@media (min-width: 768px) {
  .gallery-card {
    width: 560px;
  }
}

@media (min-width: 1024px) {
  .gallery-card {
    width: 720px;
  }
}

body {
  overscroll-behavior: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a09;
}

::-webkit-scrollbar-thumb {
  background: #4e4639;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out both;
}

.animate-slide-up {
  animation: slideUp 1s ease-out both;
}

.nav-link[aria-current="page"] {
  color: #e9c178;
  border-bottom: 1px solid #e9c178;
  padding-bottom: 0.25rem;
}

#mobile-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Header */
.site-header {
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(18px);
}

.site-header--home {
  background: linear-gradient(to bottom, rgba(10, 10, 9, 0.55), transparent);
  border-bottom-color: transparent !important;
  backdrop-filter: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(233, 193, 120, 0.55);
  color: #f5f0e6;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.header-cta:hover {
  background: #e9c178;
  border-color: #e9c178;
  color: #0a0a09;
}

/* Home hero */
.home-hero__veil {
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.78) 0%, rgba(10, 10, 9, 0.45) 48%, rgba(10, 10, 9, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 10, 9, 0.35) 0%, rgba(10, 10, 9, 0.15) 40%, rgba(10, 10, 9, 0.72) 100%);
}

.hero-btn {
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, filter .25s ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn--primary {
  background: #f5f0e6;
  color: #0a0a09;
}

.hero-btn--primary:hover {
  background: #e9c178;
}

.hero-btn--wa {
  background: #25d366;
  color: #fff;
}

.hero-btn--wa:hover {
  filter: brightness(1.05);
}

.hero-btn--ghost {
  background: rgba(20, 20, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f0e6;
  backdrop-filter: blur(8px);
}

.hero-btn--ghost:hover {
  border-color: rgba(233, 193, 120, 0.7);
  color: #e9c178;
}

/* Projects masonry */
.projects-masonry {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 768px) {
  .projects-masonry {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

.project-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: #161512;
}

@media (min-width: 768px) {
  .project-card {
    margin-bottom: 1.5rem;
  }
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
}

.project-card--tall {
  aspect-ratio: 4 / 5;
}

.project-card--medium {
  aspect-ratio: 16 / 11;
}

.project-card--short {
  aspect-ratio: 16 / 10;
}

.project-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 9, 0.72) 0%, rgba(10, 10, 9, 0.15) 42%, rgba(10, 10, 9, 0.55) 100%);
  transition: opacity .4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card:hover .project-card__shade {
  opacity: 0.92;
}

.project-card__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 2rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .project-card__content {
    padding: 1.85rem 1.85rem 2.25rem;
  }
}

.project-card__cat {
  display: block;
  margin-bottom: 0.7rem;
  color: #e9c178;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 0;
  color: #f5f0e6;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.project-card__rule {
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-top: 0.9rem;
  background: #e9c178;
  transition: width .35s ease;
}

.project-card:hover .project-card__rule {
  width: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-in,
  .animate-slide-up,
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
