:root {
  --bg: #090909;
  --surface: #121212;
  --surface-soft: #191919;
  --text: #f6f2ea;
  --muted: #a8a096;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #c9a35c;
  --gold-soft: #f1d8a4;
  --dark: #050505;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 163, 92, 0.16), transparent 28%),
    linear-gradient(135deg, #070707, #151515 52%, #090909);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.86);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #111 0 50%, var(--gold) 50% 100%);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  color: rgba(246, 242, 234, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(201, 163, 92, 0.14);
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-select,
.music-toggle {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  padding: 0 12px;
}

.language-select option {
  background: #111;
  color: #fff;
}

.music-toggle.is-playing {
  border-color: var(--gold);
  background: var(--gold);
  color: #090909;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.home-hero {
  position: relative;
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.96), rgba(9, 9, 9, 0.68), rgba(9, 9, 9, 0.92)),
    linear-gradient(0deg, var(--bg), transparent 34%);
}

.hero-content,
.split-section,
.product-detail,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 840px;
  font-size: clamp(2.8rem, 6.5vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
}

.hero-copy p:not(.eyebrow),
.section-head p,
.page-hero-inner p,
.card p,
.product-card p,
.detail-panel p,
.contact-card strong,
.form-message {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-visual,
.image-panel,
.detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual img,
.image-panel img,
.detail-image img {
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 0 24px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn-dark { background: var(--gold); color: #090909; }
.btn-primary:hover, .btn-dark:hover { background: var(--gold-soft); }
.btn-outline { border-color: rgba(255,255,255,0.18); color: var(--text); background: rgba(255,255,255,0.04); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.section {
  padding: clamp(78px, 8vw, 118px) 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.28);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2,
.page-hero-inner h1,
.detail-panel h2,
.info-card h2,
.cta-inner h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
}

.section-head p,
.page-hero-inner p {
  margin-top: 16px;
}

.category-grid,
.service-grid,
.product-grid,
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.product-card,
.info-card,
.contact-card,
.contact-form,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.card,
.info-card,
.contact-card,
.contact-form,
.detail-panel {
  padding: clamp(24px, 4vw, 36px);
}

.card {
  min-height: 220px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.product-card:hover {
  border-color: rgba(201, 163, 92, 0.55);
  transform: translateY(-4px);
}

.card .number {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-weight: 800;
}

.card h3,
.product-card h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.card p,
.product-card p {
  margin-top: 10px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111;
  cursor: pointer;
}

.gallery-card.large {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-card:hover img {
  transform: scale(1.055);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.74), transparent 62%);
  opacity: 0.85;
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px;
}

.gallery-caption span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-caption strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.masonry-gallery {
  columns: 3 280px;
  column-gap: 18px;
}

.masonry-gallery .gallery-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 18px;
}

.masonry-gallery .gallery-card img {
  height: auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0 15px;
}

.filter-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: #090909;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.card-content {
  padding: 24px;
}

.card-content span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 32px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9,9,9,0.96), rgba(9,9,9,0.72)),
    url("../img/gallery/01_Pergola_Sistemleri/pergola_gece_01.jpg") center/cover;
  padding: clamp(76px, 10vw, 130px) 0;
}

.page-hero.compact {
  padding: clamp(62px, 8vw, 96px) 0;
}

.detail-image img {
  height: clamp(390px, 48vw, 620px);
}

.detail-panel h3 {
  margin-top: 28px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  color: var(--muted);
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-card span,
.contact-form label span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.34);
  color: var(--text);
  outline: none;
  padding: 14px 15px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.form-message {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 800;
}

.section-map {
  padding-top: 0;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.cta-section {
  border-top: 1px solid var(--line);
  background: #050505;
  padding: clamp(58px, 7vw, 86px) 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 28px;
}

.site-footer h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
}

.footer-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: rgba(246,242,234,0.48);
}

.whatsapp-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #168c4c;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.88);
  padding: 20px;
}

.lightbox.open {
  display: grid;
}

.lightbox-content {
  width: min(1100px, 100%);
  max-height: 90svh;
  border: 1px solid var(--line);
  background: #090909;
  box-shadow: var(--shadow);
}

.lightbox-content img {
  width: 100%;
  max-height: 75svh;
  object-fit: contain;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.lightbox-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1080px) {
  .category-grid,
  .service-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: 70px;
    padding: 12px 0;
  }

  .nav-toggle {
    display: grid;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #090909;
    box-shadow: var(--shadow);
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .hero-content,
  .split-section,
  .product-detail,
  .contact-layout,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img,
  .image-panel img {
    height: 330px;
  }

  .footer-grid,
  .cta-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .category-grid,
  .service-grid,
  .product-grid,
  .form-row,
  .cinema-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 58px 0;
  }

  .hero-copy h1,
  .page-hero-inner h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .button-row,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .gallery-card.large {
    grid-row: span 1;
  }

  .whatsapp-button {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
